Hi,
I am currently not understanding why a specific query won't work. This is what is being sent to elasticsearch:
{
"query": {
"constant_score": {
"filter": {
"bool": {
"must": [{
"term": {
"domain": "FOO"
}
},
{
"term": {
"value": "2002353708^^^&2.16.756.5.30.1.100.4.2&ISO~41433^^^&2.00.3.4.1.3&BAR"
}
}
]
}
}
}
}
}
I am trying to exactly match all documents having both, the value "2002....BAR" as well as the domain value "FOO".
The requested document has a mapping where the fields "domain" and "value" are
...
"domain" : {
"type" : "text",
"fields" : {
"keyword" : {
"type" : "keyword",
"ignore_above" : 256
}
}
},
...
"value" : {
"type" : "text",
"fields" : {
"keyword" : {
"type" : "keyword",
"ignore_above" : 256
}
}
},...
Any ideas? I'm sure I'm missing something obvious...
Thanks you!
Michael