Curious behaviour of fragment_size in elasticsearch highlighting
TL;DR : I don't understand how highlighting is working, and more precisely how fragment_size influences the highlighting. On a new ES installation (1.4.2), I'm creating an index with the following settings : { "mappings" : { "test": { "properties": { "content" : { "type" : "string", "analyzer" : "french" } } } } } Then, I'm inserting the following document : { "content": "Bon alors mettons que j'ouvre avec un sirop de huit. Si c'est vous qui avez siroté au tour d'avant, ça tourne dans votre sens. Soit vous laissez filer, vous dites file-sirop, soit vous vous sentez de relancer et vous annoncez