markharw00d wrote:
See the Junit test example for field-sensitive highlighting.
If you pass a fieldname to the QueryScorer constructor it only considers
query terms for that field - the default without is all fields
Thanks for hint, it works :-)
--
See the Junit test example for field-sensitive highlighting.
If you pass a fieldname to the QueryScorer constructor it only considers
query terms for that field - the default without is all fields
Cheers
Mark
-
To unsubscribe
Hi,
I have following code:
query = query.rewrite(indexReader);
searcher = new IndexSearcher(indexReader);
hits = searcher.search(query);
String text = doc.get("TITLE") + " " + doc.get("CONTENT");
tokenStream = analyzer.tokenStream("CONTENT", new StringReader(text));
fragment = highlighter.getBes