Re: highlighter highlights another term

2007-04-16 Thread Leos Literak
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 :-) --

Re: highlighter highlights another term

2007-04-15 Thread markharw00d
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

highlighter highlights another term

2007-04-15 Thread Leos Literak
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