You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You could work around this by using the SearchSourceBuilder which allows you to set the HighlightBuilder, which is the object that allows you to control everything about highlighting.
There is no method in the Java API on SearchRequestBuilder to set the global highlighting options for 'fragment_size' or 'number_of_fragments'.
The documentation lists this ability in the 0.90.X series as well as 1.0.X series:
http://www.elasticsearch.org/guide/en/elasticsearch/reference/0.90/search-request-highlighting.html#highlighting-settings
http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/search-request-highlighting.html#highlighting-settings
I am working around this by using the method:
addHighlightedField(name, fragmentSize, numberOfFragments)
But that is not ideal since my fragmentSize and numberOfFragments doesn't change on a per field basis.
Please see: https://groups.google.com/forum/#!topic/elasticsearch/a4K8yfMqim4
The text was updated successfully, but these errors were encountered: