Issue with search() Help Appreciated.

2007-04-09 Thread Lokeya
I have indexed the docs successfully under the directory "LUCENE" under current directory, which have segments, _1.cfs and deletable. Now trying to use the following code to search the index but not getting any HITS. But when I try to read through Reader and get the document with field mentioned

Re: Issue with search() Help Appreciated.

2007-04-09 Thread Daniel Naber
On Tuesday 10 April 2007 08:40, Lokeya wrote: > But when i try to get hits.length() it is 0. > > Can anyone point out whats wrong ? Please check the FAQ first: http://wiki.apache.org/lucene-java/LuceneFAQ#head-3558e5121806fb4fce80fc022d889484a9248b71 Regards Daniel -- http://www.danielnaber.d

Re: Issue with search() Help Appreciated.

2007-04-10 Thread Lokeya
I solved the issue by using: 1.Same Analyser. 2.Making indexing by tokenizing terms. Now issue with the following code is, I am facing issues which I have pasted after the code, I searched the forum but couldn't find a relevant post : QueryParser parser = new QueryParser("Title", analyzer); Que

Re: Issue with search() Help Appreciated.

2007-04-12 Thread Lokeya
The issue is solved. Luke was very helpful in debugging, infact it helped to identify a very basic mistake we were making. Lokeya wrote: > > I solved the issue by using: > > 1.Same Analyser. > 2.Making indexing by tokenizing terms. > > Now issue with the following code is, I am facing issues