Re: Index searching problem

2010-01-27 Thread Simon Willnauer
t;content". Could that cause your problem? simon > > > >> Date: Wed, 27 Jan 2010 12:47:57 +0100 >> Subject: Re: Index searching problem >> From: simon.willna...@googlemail.com >> To: java-user@lucene.apache.org >> >> Do you open the searcher  / reader aft

RE: Index searching problem

2010-01-27 Thread Asif Nawaz
open. I think the problem may exists in query parser. I am using following code QueryParser parser = new QueryParser("content", analyzer); Query query = parser.parse(queryString);Hits hits = is.search(query); > Date: Wed, 27 Jan 2010 12

RE: Index searching problem

2010-01-27 Thread Asif Nawaz
returns 0 hits :( > Date: Wed, 27 Jan 2010 12:47:57 +0100 > Subject: Re: Index searching problem > From: simon.willna...@googlemail.com > To: java-user@lucene.apache.org > > Do you open the searcher / reader after you call commit on the writer? > > simon > > On Wed

Re: Index searching problem

2010-01-27 Thread Ian Lea
Why??? >> Hits hits = se.performSearch("significance");System.out.println("hits length >> = "+ hits.length()); >> >> >> >> >> >> >> >> >> >> >> >>> Date: Wed, 27 Jan 2010 10:45:27 +0100 >

Re: Index searching problem

2010-01-27 Thread Simon Willnauer
But in my > program it returns no of hits = 0. Why??? > Hits hits = se.performSearch("significance");System.out.println("hits length > = "+ hits.length()); > > > > > > > > > > > >> Date: Wed, 27 Jan 2010 10:45:27 +0100 >> Subject: R

RE: Index searching problem

2010-01-27 Thread Asif Nawaz
"+ hits.length()); > Date: Wed, 27 Jan 2010 10:45:27 +0100 > Subject: Re: Index searching problem > From: simon.willna...@googlemail.com > To: java-user@lucene.apache.org > > do you close your index writer or commit it before you open your searcher? > > one more th

Re: Index searching problem

2010-01-27 Thread Simon Willnauer
do you close your index writer or commit it before you open your searcher? one more thing, if you search for "Hotel" you might not find anything if the querystring is not passed through the StandardAnalyzer you use for indexing. (well, or another analyzer that does lowercasing). BTW. you email is