Hi everyone! I have some specific problem with search. There are a lot of product with name, prices (divided by warehouses), amount (divided by warehouses) and personal prices (divided by agreement). Because of huge amount of personal prices I added them to exclude from _source. When I create index and search some product by personal price It works fine but if i change amount value using elastic update with refresh=true next search with exact same query can't find anything. If i recreate index search works fine again. Any idea how I can update data in index without breaking search?
Mappings loks like this
"mappings": {
"_source": {
"excludes": [
"personalPrice*",
]
},
"dynamic_templates": [
{
"price": {
"path_match": "price.*",
"mapping": {
"type": "float"
}
}
},
{
"amount": {
"path_match": "amount.*",
"mapping": {
"type": "float"
}
}
},
],
"properties": {
"name": {
"type": "keyword"
},
}
}