Re: Re: wild card with keyword fileld

2005-07-20 Thread Ian Lea
Rahul Looks like you've got the args mixed up in your qp calls. I think it should be: QueryParser qp = new QueryParser("keywords",analyzer); qp.setLowercaseWildcardTerms(false); Query query = qp.parse(line); -- Ian. On 20 Jul 2005 14:06:32 -, Rahul D Thakare <[EMAIL PROTECTED]> wrote

Re: Re: wild card with keyword fileld

2005-07-20 Thread Rahul D Thakare
  Erik/Ian I tried using query.parse(String) did't return any result also my query.toString() returns mainboard:keywords if i give the keyword as mainboard. pls see the changed code again. PerFieldAnalyzerWrapper analyzer = new PerFieldAnalyzerWrapper( new StandardAnalyzer() ); analyze

Re: Re: wild card with keyword fileld

2005-07-20 Thread Ian Lea
What does query.toString() show in each case? I still think you should try lowercasing everything, if only to see if it helps. If it does you could either keep it or figure out what you need to do. -- Ian. On 20 Jul 2005 05:22:29 -, Rahul D Thakare <[EMAIL PROTECTED]> wrote: > > > >

Re: Re: wild card with keyword fileld

2005-07-19 Thread Rahul D Thakare
  Hi Ian, Yes, I did implement Eric's suggestion last week, but couldn't help. I am using a demo program from Lucene.jar to test this, let me put a code here. doc.add(Field.Keyword("keywords", "MAIN BOARD")); while indexing and for retrieving PerFieldAnalyzerWrapper analyzer = new PerF