Re: indexing going wrong

2007-08-11 Thread nachi
oops...that was a control-c control-v error. Im indexing directory "c:\test" and using the index in c:\test for searching. I found the problem to be this - Im reusing the same document object in the for loop. I solved it by creating new document each time the loop runs... actually when if statement

Re: indexing going wrong

2007-08-11 Thread Erick Erickson
A couple of things come to mind. But before I get to them, really, really, really get a copy of Luke. It'll allow you to examine your index and see if what's in there is really what you expect. It'll save you a world of hurt Google luke lucene Also, use query.toString to see what the quer