I have an index where certain properties of my document can be array-valued IDs, i.e.
POST temp/_doc
{
"test": ["5T8QLHIBB_kDC9Ugho68","5T8QLHIBB_kDC9Ugho69"]
}
Now, when I want to search documents containing a certain ID, a term query like this one:
POST temp/_search
{
"query": {
"term": {
"test": "5T8QLHIBB_kDC9Ugho68"
}
}
}
gives no results. If I try it with simpler values (e.g. "foo" and "bar" instead of the IDs), it works. How can I solve this?