indexing - how to search word from String field in Lucene Index -
how search word lucene index string field ?
i have lucene index field title ,containts document titles
eg:tv not working,mobile not working
i want search particular word title .
code below gives me result full content,if change full_contenet title dont results.
query qry = null; qry = new queryparser(full_content, new simpleanalyzer()).parse("not"); searcher searcher = null; searcher = new indexsearcher(indexdirectory); hits hits = null; hits = searcher.search(qry); system.out.println(hits.length());
as "not" lucene query syntax operator, may problem.
Comments
Post a Comment