title: Elasticsearch highlighting boolean values instead of search phrase
body: <p>I have ran into a problem with elasticsearch highlighting. I am using <a href="http://wiki.rivetlogic.com/display/LRA/Elasticsearch+Integration" rel="nofollow">elasticsearch-web plugin from Rivetlogic</a> to integrate Elasticsearch into Liferay portal. It works just fine, but when I use highlighter on some documents, the highlighted words are wrong. These problem doesn't seem to be connected with Rivetlogic plugin itself, I was able to simulate it through Sense addon with plain elasticsearch query as well.</p>
  
  <p>An example query: </p>
  
  <pre><code>POST /liferay_company_20155/com_liferay_portlet_documentlibrary_model_DLFileEntry/_search
  {
     "query": {
        "query_string": {
           "query": "+(+(companyId:20155) +((+(entryClassName:com.liferay.portal.model.User) +(status:0)) (+(entryClassName:com.liferay.portlet.bookmarks.model.BookmarksEntry) +(status:0)) (+(entryClassName:com.liferay.portlet.bookmarks.model.BookmarksFolder) +(status:0)) (+(entryClassName:com.liferay.portlet.blogs.model.BlogsEntry) +(status:0)) (+(entryClassName:com.liferay.portlet.documentlibrary.model.DLFileEntry) +(status:0) +(hidden:false)) (+(entryClassName:com.liferay.portlet.documentlibrary.model.DLFolder) +(status:0) +(hidden:false)) (+(entryClassName:com.liferay.portlet.journal.model.JournalArticle) +(status:0) +(head:true)) (+(entryClassName:com.liferay.portlet.journal.model.JournalFolder) +(status:0)) (+(entryClassName:com.liferay.portlet.messageboards.model.MBMessage) +(status:0) +(discussion:false)) (+(entryClassName:com.liferay.portlet.wiki.model.WikiPage) +(status:0)))) +(assetCategoryTitles:*zkouska* assetCategoryTitles_cs_CZ:*zkouska* assetTagNames:*zkouska* comments:zkouska content:zkouska description:zkouska properties:zkouska title:zkouska url:zkouska userName:*zkouska* -stagingGroup:true city:zkouska country:zkouska emailAddress:*zkouska* firstName:zkouska fullName:zkouska lastName:zkouska middleName:zkouska region:zkouska screenName:zkouska street:zkouska zip:zkouska ddmContent:zkouska extension:zkouska fileEntryTypeId:zkouska path:*zkouska* classPK:zkouska content_cs_CZ:zkouska description_cs_CZ:zkouska entryClassPK:zkouska title_cs_CZ:zkouska type:zkouska articleId:zkouska)"
        }
     },
        "highlight": {
            "pre_tags" : ["&lt;tag1&gt;"],
          "post_tags" : ["&lt;/tag1&gt;"],
           "fields": {
              "content": {}
           }
        }
  }
  </code></pre>
  
  <p>The result highlight looks like this:</p>
  
  <pre><code>"highlight": 
  {
  "content": [
    " logické\n1 nebo &lt;tag1&gt;0&lt;/tag1&gt; (&lt;tag1&gt;true&lt;/tag1&gt; nebo &lt;tag1&gt;false&lt;/tag1&gt;).\n\nfunction ALTERNATIV(P:real): Boolean;\nvar X: real;\nbegin\n\nX",
    " pouze na změnu &lt;tag1&gt;FALSE&lt;/tag1&gt; na &lt;tag1&gt;TRUE&lt;/tag1&gt;, případně na\npřekročení mezní hodnoty směrem nahoru). Protože C",
    " (metoda Test), a to buď z hodnoty nula (&lt;tag1&gt;FALSE&lt;/tag1&gt;) na\nhodnotu různou od nuly (&lt;tag1&gt;TRUE&lt;/tag1&gt;), nebo obráceně",
    "\n\ndetekci změny pouze z hodnoty &lt;tag1&gt;FALSE&lt;/tag1&gt; na hodnotu &lt;tag1&gt;TRUE&lt;/tag1&gt;, DetectDOWN detekuje opačnou\nzměnu. DetectALL",
    " článek. Nechť X(ui) = x, Y (ui) = y, T =\n〈&lt;tag1&gt;0&lt;/tag1&gt;,∞), I = O = R, I je vstupní abeceda, O je výstupní abeceda"
  ]
  }
  </code></pre>
  
  <p>Notice, that all the values "FALSE", "TRUE" and "0" are highlighted. The queried word "zkouska" is also highlighted.</p>
  
  <p>Is there any problem with the query? </p>
  
  <p>Any help is appriciated.</p>