Help on Phrase Prefix query

2004-12-06 Thread Mahendra
Hi, Presently i am working on a requirement in my application, to do the search using lucene as follows, Users enters phrase prefix query text. The query should be constructed as follows, - a PhrasePrefixQuery based on the user entered text, for eg FieldA - a termquery based on another field,

Re: Help on Phrase Prefix query

2004-12-06 Thread Erik Hatcher
Mahendra, Could you provide a concrete, and simple, example of what you're trying to achieve? It would help me understand what you're after. Any Query implementation works fine as a clause within a BooleanQuery, there is nothing special to do for a PhrasePrefixQuery in this regard.

Re: Help on Phrase Prefix query

2004-12-06 Thread Mahendra
Hi Erik, Thanks for responding. I have attached a sample java file for the sample implementation. -regards, mahendra On Mon, 6 Dec 2004 08:19:54 -0500, Erik Hatcher [EMAIL PROTECTED] wrote: Mahendra, Could you provide a concrete, and simple, example of what you're trying to achieve? It

Re: Help on Phrase Prefix query

2004-12-06 Thread Erik Hatcher
On Dec 6, 2004, at 11:05 PM, Mahendra wrote: Thanks for responding. I have attached a sample java file for the sample implementation. Please convert this program to building the index using RAMDirectory also. I cannot run it as it is because it relies on an external index using a Windows path