Hi
I added one document in to the index using the code
doc=new Document();
IndexWriter indwr=new IndexWriter(rdir,new
StandardAnalyzer(),true)
doc.add(Field.Text("name", "Suhas Kumar"));
indwr.close()
and searched using the code
indSe = new IndexSearcher(rdir);
Query quer=QueryParser.parse("Suhas","name",new
StandardAnalyzer());
Hits hits= indSe.search(quer);
here the number of hits returned is 1, which is correct.
But when I searched using the query
Query quer=QueryParser.parse("Suhas*","name",new
StandardAnalyzer());
It returns number of hits 0.
Also canany body tell how to use '+' and '-' to include and
exclude some words from search.
Regards
Pradeep
--------------------------------------------------------------
Robosoft Technologies, Mangalore, India
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>