mirror of https://github.com/apache/lucene.git
Clarification of Javadocs - code was missing Formatter implementation
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150984 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
ed9f594f27
commit
39e1b775dd
|
@ -13,7 +13,7 @@ Fragmenter, FragmentScorer and Formatter classes.
|
|||
query=query.rewrite(reader); //required to expand search terms
|
||||
Hits hits = searcher.search(query);
|
||||
|
||||
Highlighter highlighter =new Highlighter(this,new QueryScorer(query));
|
||||
Highlighter highlighter =new Highlighter(new QueryScorer(query));
|
||||
for (int i = 0; i < hits.length(); i++)
|
||||
{
|
||||
String text = hits.doc(i).get(FIELD_NAME);
|
||||
|
|
Loading…
Reference in New Issue