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

indexing going wrong

2007-08-10 Thread nachi
all, No sure if earlier mail went thru..so resending... Im new lucene and Im trying to develope a textual search module. I have written the following code ( this is research code) - File dir = new File("c:/test"); IndexWriter writer = new IndexWriter(dir, new StandardAnalyzer(), true); Doc