rnewson / couchdb-lucene

Enables full-text searching of CouchDB documents using Lucene
Apache License 2.0
769 stars 147 forks source link

Does couchdb-lucene offer faceting features, like counts etc? #275

Closed ykodgule closed 5 years ago

ykodgule commented 5 years ago

If I have a field say "category" in all the documents, and the values of this field may vary between 10 different values. I would like to fetch the counts of each category type. Does couchdb-lucene support this faceting? If yes, please suggest how can I use it?

rnewson commented 5 years ago

Sorry, it does not.

sansato commented 5 years ago

map/reduce index can give counts like this for entire database, not inside subset of records from arbitrary query.