There is nothing special you need to add to your mapping to enable multiple 
values for a field. Just pass in an array of values instead of a single 
value, and all of the values are analyzed.

One thing you might want to add for string fields with multiple values:

"position_offset_gap" : *n*

When a string field is analyzed, it typically assigns a position to each 
token that is one greater than the position of the previous token. By 
setting a position offset gap value to *n*, it skips ahead that many 
positions, representing the number of non-matching word positions between 
consecutive values.

What this does is that if your field contains multiple values that each has 
multiple words, a phrase query won't span across values unless the slop 
value is large enough (n or larger, I seem to recall).

Hope this helps.

Brian



-- 
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 elasticsearch+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elasticsearch/e2d2dd14-d899-4e1e-a909-ce9e305f900a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to