org.elasticsearch.search.highlight
Class HighlighterParseElement

java.lang.Object
  extended by 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 }
  }
 }
 


Field Summary
static java.lang.String[] STYLED_POST_TAGS
           
 
Constructor Summary
HighlighterParseElement()
           
 
Method Summary
 void parse(XContentParser parser, SearchContext context)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

STYLED_POST_TAGS

public static final java.lang.String[] STYLED_POST_TAGS
Constructor Detail

HighlighterParseElement

public HighlighterParseElement()
Method Detail

parse

public void parse(XContentParser parser,
                  SearchContext context)
           throws java.lang.Exception
Specified by:
parse in interface SearchParseElement
Throws:
java.lang.Exception