org.elasticsearch.search.highlight
Class HighlighterParseElement

java.lang.Object
  extended by org.elasticsearch.search.highlight.HighlighterParseElement
All Implemented Interfaces:
SearchParseElement

public class HighlighterParseElement
extends 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"] }
  }
 }
 


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
 

Constructor Detail

HighlighterParseElement

public HighlighterParseElement()
Method Detail

parse

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


Copyright © 2009-2012. All Rights Reserved.