Hello

We're trying to implement 'facet counting' on top of
Zend_Search_Lucene - wondering if anyone else has tried? We're aiming
for a facets response similar to Solr's but using only
Zend_Search_Lucene.

Challenges:
We've 100,000s of documents, all unstored fields except database id
(to reduce index size), but we've found in our array of
Zend_Search_Lucene_Search_QueryHit only stored fields can be obtained
from the document.
We've about 8 different field types - but even if we store (go from
unStored to text), to produce a facet view (terms list, with count N,
of FieldType X in result set) we would have to traverse the entire
result set, even if we are only presenting say 15 hits per 'page'.

What we want is to somehow create an array merge of a dynamically
created Terms Frequency for the entire result set against the
dictionary to get the actual (unstored values).  But I don't think
that there is any reference to unstored fields, nor any direct access
to dictionary / segments  at the moment at which an array of hits is
produced from

$index = Zend_Search_Lucene::open('/data/my_index');
$hits = $index->find($query);

or am I missing something?

kindest regards

James

Reply via email to