I'm adding these fields when I store data in Lucene:
$index->addField(Zend_Search_Lucene_Field::Keyword('id', $entry->id));
$index->addField(Zend_Search_Lucene_Field::Keyword('type', $entry->type));
How can make a query to retrieve only data with a certain type?
I tried:
$query = "type IN ('a', 'b', 'c')"; // get data that has either of these types
$this->query->addSubquery(Zend_Search_Lucene_Search_QueryParser::parse($query), true);
but it doesn't work...