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",
fields : {
field1 : { }
field2 : { fragment_size : 100, num_of_fragments : 2 }
}
}
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
STYLED_POST_TAGS
public static final java.lang.String[] STYLED_POST_TAGS
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