Skip to content

Apache Lucene open-source search software

Clarification of Javadocs - code was missing Formatter implementation

Mark Harwood39e1b775dd31
diff --git a/sandbox/contributions/highlighter/src/java/org/apache/lucene/search/highlight/package.html b/sandbox/contributions/highlighter/src/java/org/apache/lucene/search/highlight/package.html
index 40cf5ec372b..1aa5721af91 100755
--- a/sandbox/contributions/highlighter/src/java/org/apache/lucene/search/highlight/package.html
+++ b/sandbox/contributions/highlighter/src/java/org/apache/lucene/search/highlight/package.html
@@ -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);