i build an index to store 100 docs, each with field author, title and 
abstract.for (i=0;i<100;i++) {writer = new IndexWriter("index",new 
StandardAnalyzer(),true,IndexWriter.MaxFieldLength.UNLIMITED);         
doc.add(new Field("author",cfcDoc.getAu(), Field.Store.YES, 
Field.Index.TOKENIZED));doc.add(new Field("title",cfcDoc.getTi(), 
Field.Store.YES, Field.Index.TOKENIZED));doc.add(new 
Field("abstract",cfcDoc.getAb(), Field.Store.YES, 
Field.Index.TOKENIZED));writer.addDocument(doc);}
But when i perfrom a search, it returns zero results, even querystring exist in 
one of the field of document. why is it so?????
Hits hits = se.performSearch("Hotel");System.out.println("hits length = "+ 
hits.length());
It creates index folder in file system, but when i open the file _0.fdt or 
_0.fdx with Luke. this shows nothing... it also deletes the file from file 
system.






Asif

                                          
_________________________________________________________________
Your E-mail and More On-the-Go. Get Windows Live Hotmail Free.
https://signup.live.com/signup.aspx?id=60969

Reply via email to