title: Highlight in Elasticsearch
body: <p>This is my elasticsearch query:</p>
  
  <pre><code>GET indexname/_search
  {
  
      "fields": ["_id", "url","T"],
      "query" : {
       "bool": {"should": [
         {"simple_query_string": {
           "query": "white",
           "fields": ["T", "content"]
         }}
       ]}
      },
      "highlight" : {
        "pre_tags": ["&lt;b&gt;"], 
        "post_tags": ["&lt;/b&gt;"], 
          "fields" : {
              "content" : {"fragment_size" : 150, "number_of_fragments" : 1}
  
          }
      }
  }  
  </code></pre>
  
  <p>My elasticsearch query is searching for white in the fields "T" and "content", and I am highlighting the field "content" and inserting a pre and post tag b(bold).
  This is the result of my query</p>
  
  <pre><code>"hits": {
      "total": 922,
      "max_score": 2.369757,
      "hits": [
        {
          "_index": "indexname",
          "_type": "Searchtype",
          "_id": "http://www.example.com/de/unternehmenssuche-white-paper",
          "_score": 2.369757,
          "fields": {
            "T": [
              "White Paper Unternehmenssuche"
            ],
            "url": [
              "http://www.example.com/de/unternehmenssuche-white-paper"
            ]
          },
          "highlight": {
            "content": [
              "/Anwendungsbeispiele Ressourcen Blog &lt;b&gt;White&lt;/b&gt; Papers in Deutsche Downloads Wiki Unternehmen Vorstellung der Search Executive"
            ]
          }
        }
  ....
  ...
  </code></pre>
  
  <p>I want my highlight result to look like this</p>
  
  <pre><code>"highlight": {
            "content": [
              "&lt;b&gt;...&lt;/b&gt; /Anwendungsbeispiele Ressourcen Blog &lt;b&gt;White&lt;/b&gt; Papers in Deutsche Downloads Wiki Unternehmen Vorstellung der Search Executive &lt;b&gt;...&lt;/b&gt;"
            ]
          }
  </code></pre>
  
  <p>I want to add <code>&lt;b&gt;...&lt;/b&gt;</code> before and after the highlight content. What should I add in my elasticsearch query to make results look like this? Any help would be appreciated</p>