java - Lucene field not searchable -


updated original question

i created program pulls in content database , indexes it. during process, build string variable called searchfield consists of various different information. once string built, make following call.

doc.add(new field("search", this.striphtmltags(searchfield), field.store.no, field.index.analyzed)); 

i know string not empty, because put in print statement show contents , right data making doc.add().

when search key words in fact show in searchfield, no hits.

i'm not sure other details provide, , i'm sure there more needed, please me understand better , can solved!

thanks in advance!

try

doc.add(new field("search", this.striphtmltags(searchfield), field.store.yes, field.index.analyzed)); 

Comments

Popular posts from this blog

python - Scipy curvefit RuntimeError:Optimal parameters not found: Number of calls to function has reached maxfev = 1000 -

c# - How to add a new treeview at the selected node? -

java - netbeans "Please wait - classpath scanning in progress..." -