-
Notifications
You must be signed in to change notification settings - Fork 25.8k
fragment_size doesn't work with quoted phrase #1072
Description
I nave query with highlight like this: (Here is curl recreation https://gist.github.com/1032233 )
Look at issued result ( item4.description ) (you can see all doc also in _source ), and mapping.
if i supply query:
two words
item.description returns only 128 chars, as expected. But if
"two words"
it returns the same 128 chars and all remainder of that field. Bit strange.
ES (v 0.16.0)
Please tell, can I do the trick with highlight fields like ["item_.title", "item_.description"] in query fields?
I understand, it looks bit strange. I’m try to explain:
All my docs contains 10 items with title and description (and so on, not important). I need to have 1 match per field, so my first version with just array of items wont work. If i setup number_of_fragments to 1 it returns only 1 result for all 10 items. If i setup number_of_fragments to 0 it returns all description concatenated in 1 highlight. So solution is to make item1, item2 etc.
Is it best solution?
PS No any reaction on my 3 messages after first at mailing list. I believe this is a bug, so i created this issue.