Elasticsearch in Java: SearchHit fragments get shortened
<p>I use highlighting that is already part of Elasticsearch. It work fine. For example if I have next "words" indexed : </p>

<ol>
<li>verylongwork that isweryweeylongf</li>
<li>tes!tr%31=!"$:_ae test !"daca214xx
</ol>

<p>And if I search for -> <strong>that</strong> .The result is as it folows -> verylongwork <strong>that</strong> isweryweeylongf . Including the bolding part.
But if I search for -> <strong>test</strong> . The result is -> $:_ae <strong>test</strong> !" .</p>

<p>So the fragment gests splited/shortened.</p>

<p>It probably has something to do with special characters. When searching I use QueryParser.escape() to escape them.</p>

<p>What could be the problem ?</p>

<p>EDIT:
Also if I search for <strong>tes</strong> the result would be two fragments -> <strong>tes</strong>!tr and $:_ae <strong>tes</strong>t !"</p>