How to fix the number of searched terms for a field

2011-05-03 Thread harsh srivastava
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,

Re: How to fix the number of searched terms for a field

2011-05-03 Thread Erick Erickson
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 harshc...@gmail.com wrote: Hi All, I want to know any inbuilt method in lucene that can help me to fix the