org.elasticsearch.search.highlight
Class HighlighterParseElement
java.lang.Object
org.elasticsearch.search.highlight.HighlighterParseElement
- All Implemented Interfaces:
- SearchParseElement
public class HighlighterParseElement
- extends java.lang.Object
- implements SearchParseElement
highlight : {
tags_schema : "styled",
pre_tags : ["tag1", "tag2"],
post_tags : ["tag1", "tag2"],
order : "score",
highlight_filter : true,
fields : {
field1 : { },
field2 : { fragment_size : 100, number_of_fragments : 2 },
field3 : { number_of_fragments : 5, order : "simple", tags_schema : "styled" },
field4 : { number_of_fragments: 0, pre_tags : ["openingTagA", "openingTagB"], post_tags : ["closingTag"] }
}
}
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HighlighterParseElement
public HighlighterParseElement()
parse
public void parse(XContentParser parser,
SearchContext context)
throws java.lang.Exception
- Specified by:
parse
in interface SearchParseElement
- Throws:
java.lang.Exception