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

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -