You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@lucene.apache.org by Phan The Dai <th...@gmail.com> on 2010/01/21 12:02:31 UTC
A interesting question (search by number of terms)
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.
Re: A interesting question (search by number of terms)
Posted by Phan The Dai <th...@gmail.com>.
Oh, it is nice.
Thank you much!
On Thu, Jan 21, 2010 at 9:20 PM, Benjamin Heilbrunn <be...@gmail.com>wrote:
> Try BooleanQuery.setMinimumNumberShouldMatch
>
> 2010/1/21 Phan The Dai <th...@gmail.com>:
> > 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: java-user-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org
>
>
Re: A interesting question (search by number of terms)
Posted by Benjamin Heilbrunn <be...@gmail.com>.
Try BooleanQuery.setMinimumNumberShouldMatch
2010/1/21 Phan The Dai <th...@gmail.com>:
> 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: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org