lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Benjamin Heilbrunn <>
Subject Re: A interesting question (search by number of terms)
Date Thu, 21 Jan 2010 12:20:57 GMT
Try BooleanQuery.setMinimumNumberShouldMatch

2010/1/21 Phan The Dai <>:
> Hi everyone, I need you support with this question:
> Assuming that I have some terms, such as: ("A", "B", "C", "D", "E")
> How to search documents that contain a number of terms in that list
> but do not care what terms are.
> For example, any documents that include any 3 terms in the above list are
> matched.
> Please show me a query in Lucene or a solution.
> Thank you much for soon answer, I need it as soon as possible.
> Regards.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message