CouchDB-Lucene get distinct rows from search

181 Views Asked by At

I have duplicated rows in my Lucene's index and I whant to retreive only distinct datas with the search.

  • I think that I can't build the index without the duplicated datas because they are not stored in the same CouchDB table (JSON document). But maybe I am missing something, and it's possible to test whether one element is already indexed or not before returning it from the index function.

  • If not, is it possible to retreive only distinct values from an index which contains duplicated datas?

Regards, Mickaël

1

There are 1 best solutions below

1
On BEST ANSWER

CouchDB-Lucene does not currently support "DISTINCT" or deduplication.