I have an index in ES where one of the fields (say "tags") in the document
is actually a list. The way I index is roughly as below -
List<String> customActionList = new ArrayList<String>(); customActionList.add("tag1"); customActionList.add("tag2"); XContentBuilder xcb = jsonBuilder().startObject(); xcb = xcb.field("tag", customActionList); xcb = xcb.endObject(); IndexResponse indexResponse =
but in the mapping, i dont see it as a list. it shows as a string. is that
curl -XGET 'http://localhost:9200///_mapping'
Assuming this is correct, how do i search for all documents which have a
tag, say "my_tag" in its "tags" list? I am not able to find the
documentation for this kind of search.