Versions (relevant - OpenSearch/Dashboard/Server OS/Browser):
“opensearch-project/opensearch-php”: “^2.2”
Describe the issue:
We are converting from Elastic to OpenSearch in Azure, and am getting the following error
(hoping someone might be able to shed some light on why it’s saying that the mapping is not found, when it is defined–see config below–and appears to be defined the way suggested by the documentation):
{
“type”:“query_shard_exception”,
“reason”:“No mapping found for [lname.raw] in order to sort on”,
…
}
On the query:
{
"query": {
"bool": {
"must": [
{
"match": {
"familyRelationship": "Primary"
}
}
]
}
},
"sort": {
"lname.raw": "asc"
}
}
Configuration:
{
"mappings": {
"properties": {
"familyRelationship": {
"type": "keyword"
},
"lname": {
"type": "text",
"fields": {
"raw": {
"type": "keyword"
}
}
}
}
}
}
Relevant Logs or Screenshots: