Thanks Anton for your suggestion, also if we specify 2 criteria in search
query, can we identify which criteria causes the match ?

On Tue, Jul 28, 2015 at 9:04 PM, Anton Zenkov <azen...@crimsonhexagon.com>
wrote:

> 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
> >
>



-- 
Thanks
Muhammad Ismail
cell (PAK) : +92.322.5100362
cell (Sweden): +46 700-321-521
e-mail: it.is.ism...@gmail.com

This message may contain confidential and/or privileged information.  If
you are not the addressee or authorized to receive this for the addressee,
you must not use, copy, disclose or take any action based on this message
or any information herein.  If you have received this message in error,
please advise the sender immediately by reply e-mail and delete this
message.  Thank you for your cooperation.

Reply via email to