lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ian Lea" <ian....@gmail.com>
Subject Re: Retrieving documents that match atleast n query terms
Date Mon, 04 Feb 2008 11:44:54 GMT
BooleanQuery.setMinimumNumberShouldMatch(int min) sounds exactly what you need.


--
Ian.
ian.lea@gmail.com


On Jan 30, 2008 6:43 PM, Dipsy Kapoor <dipsykapoor@gmail.com> wrote:
> Hi,
>
> I am using a BooleanQuery of the form:
>    T1 OR T2 OR T3 OR ...... Tn
> to search on a  field in Lucene.
>
> Is there a way to force the search to return documents that match at
> least say 5 of the query Terms?
>
> Thanks,
> Dipsy Kapoor
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Mime
View raw message