I am working on a store search API using Lucene.
I need to show store search results for each city, a combination of conditions with its frequency in brackets ... for example:
Los Angles,CA (450)
Atlanta,GA (212)
Boston, MA (78)
.
.
.
At the moment, my search results return about 7000 Lucene documents, on average, if the user says "Show me all the stores." In this case, I show about 800 unique City, State entries, as shown above.
I override the HitCollectorclass method Collectand extract the vectors as follows:
var vectors = _reader.GetTermFreqVectors(doc);
Then I repeat this collection and calculate the frequency for each unique combination of City, State.
... Lucene?
, , , Lucene, /.
!