I think that you should ask for a feature request in github :
something like : prefix and suffix for highlight parts (with default =null)
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs
Le 22 sept. 2012 à 17:26, Andy Pryor email@example.com a écrit :
Hmm, I would first have to strip the highlight tags. That doesn't sound ideal. I wonder if the highlighter could just return the indexes of the fragment inside the field.
Maybe this isn't a common use case.
On Sep 22, 2012 7:01 AM, "Robin Verlangen" firstname.lastname@example.org wrote:
You could simply compare the search query with the start of the start of the document? Or are you looking for some other way?
Disclaimer: The information contained in this message and attachments is intended solely for the attention and use of the named addressee and may be confidential. If you are not the intended recipient, you are reminded that the information remains the property of the sender. You must not use, disclose, distribute, copy, print or rely on this e-mail. If you have received this message in error, please contact the sender immediately and irrevocably delete this message and any copies.
2012/9/21 Andy email@example.com
I'm highlighting 100 character fragments on a relatively small text field, ~2,000 characters.
Is it possible to know if the highlighted fragment contains the start of the document? The use case is displaying "..." before the fragment if it's not the start of the document.
Thanks for any help!