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 harsh srivastava <ha...@gmail.com> on 2011/05/03 13:55:50 UTC
How to fix the number of searched terms for a field
Hi All,
I want to know any inbuilt method in lucene that can help me to fix the
number of searched terms for a given field e.g.
Suppose I have given content:(text1 text2 text3 text4 text5) to search and
want to limit it to 3 words only i.e. content:(text1 text2 text3)
Please help.
Thanks,
Harsh
Re: How to fix the number of searched terms for a field
Posted by Erick Erickson <er...@gmail.com>.
Why do you want to do this? I'm wondering if this is an XY problem...
See: http://people.apache.org/~hossman/#xyproblem
Best
Erick
On Tue, May 3, 2011 at 7:55 AM, harsh srivastava <ha...@gmail.com> wrote:
> Hi All,
>
>
> I want to know any inbuilt method in lucene that can help me to fix the
> number of searched terms for a given field e.g.
> Suppose I have given content:(text1 text2 text3 text4 text5) to search and
> want to limit it to 3 words only i.e. content:(text1 text2 text3)
>
> Please help.
>
> Thanks,
> Harsh
>
---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org