Class CustomPassageFormatter
org.apache.lucene.search.uhighlight.PassageFormatter
org.apache.lucene.search.uhighlight.CustomPassageFormatter
public class CustomPassageFormatter
extends org.apache.lucene.search.uhighlight.PassageFormatter
Custom passage formatter that allows us to:
1) extract different snippets (instead of a single big string) together with their scores (
Snippet
)
2) use the Encoder
implementations that are already used with the other highlighters-
Constructor Summary
ConstructorDescriptionpreTag, postTag, org.apache.lucene.search.highlight.Encoder encoder)
-
Method Summary
Methods inherited from class java.lang.
, , , , , , , , , ,
-
Constructor Details
-
CustomPassageFormatter
public CustomPassageFormatter( preTag, postTag, org.apache.lucene.search.highlight.Encoder encoder)
-
-
Method Details
-
format
- Specified by:
format
in classorg.apache.lucene.search.uhighlight.PassageFormatter
-