Offsets of the highlighted terms

(Pierre De Soyres) #1


I'm wondering if it is possible to have offsets of the highlighted elements
without having to manualy parse the highlight result.

For instance, on the highlight result :
"A new bonsai tree in the office"

I would like to have the offsets of the two hits "bonsai" and "tree". Here
the result would be : bonsai :[6, 12] and tree:[13, 17]

If it's not possible right now, it would be nice to have it in next versions


You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
To view this discussion on the web visit
For more options, visit

(system) #2