You can always throw an exception in the collector to stop the collection
process.

Anton

On Tue, Jul 28, 2015 at 4:26 AM, Muhammad Ismail <it.is.ism...@gmail.com>
wrote:

> Can we skip matching lucene document by using custom collector or some
> other way. Like I want to bring all document created by user xxx on
> specific date but after we got a match, we want to run some logic which
> figure out either the document is acceptable or not. We cannot specify
> criteria in lucene query as we have to compare creation dates of documents.
>
> Like I have a index with book title & rating [in number], I want to find
> all books which have word "smart" in title also book with highest rating.
> Like 2 books having word "smart" in title but one has rating 5 & other has
> rating 12 then i want only 1 record i.e. book with rating 12
> I am using Lucene 3.0
>
> --
> Thanks
> Muhammad Ismail
>

Reply via email to