>>Document doc = searcher.doc(i); Isn't "i" your results order number as opposed to a lucene document id?
I.e. the first result could be document id 3,232,432 but you are asking for doc #1 You need to get to doc id out of topDocs Cheers Mark ----- Original Message ---- From: Dyutiman <dyutiman.chaudh...@gmail.com> To: java-dev@lucene.apache.org Sent: Wed, 3 March, 2010 11:40:29 Subject: Re: Lucene Filter Thanks Erick, I tried Luke and it seems that my index is fine (see the screenshot attached http://old.nabble.com/file/p27767115/luke.JPG luke.JPG ). That means I did something wrong in my code. I am attaching my search code here also ( http://old.nabble.com/file/p27767115/SearchUtil.java SearchUtil.java ). If you please can check it ones that will be very helpful. thanks again Dyutiman -- View this message in context: http://old.nabble.com/Lucene-Filter-tp27756577p27767115.html Sent from the Lucene - Java Developer mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: java-dev-unsubscr...@lucene.apache.org For additional commands, e-mail: java-dev-h...@lucene.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: java-dev-unsubscr...@lucene.apache.org For additional commands, e-mail: java-dev-h...@lucene.apache.org