title: Elasticsearch: Highlight in specific documents based upon file size criteria in index made via FsCrawler?
body: <p>Currently I am using following search query to highlight stuff based on the query entered. Index is made via FsCrawler.</p>
  <pre><code>GET index_name/_search
  {
      &quot;query&quot;: {
          &quot;query_string&quot; :{
              &quot;query&quot;: &quot;my_string_query_here&quot;
          }
      },
      &quot;size&quot;: 10,
      &quot;highlight&quot; : {
        &quot;pre_tags&quot;: [&quot;&lt;em&gt;&quot;], 
        &quot;post_tags&quot;: [&quot;&lt;/em&gt;&quot;], 
          &quot;fields&quot; : {
              &quot;*&quot; : {&quot;fragment_size&quot; : 150, &quot;number_of_fragments&quot; : 1}
          }
      }
  }
  </code></pre>
  <p>I am able to get to get the desired result. But the problem is the delay which Elasticsearch takes while giving its response on files having large content field (which is understandable). Is there any way to apply highlight only in those documents which are under some specified file size.</p>