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
Post a Comment