Hi,
I have a field in my index with the mapping and custom analyzer has followed:
Mapping:
"BookingNo" : {
"type" : "text",
"fields" : {
"lowercase_keyword" : {
"type" : "text",
"analyzer" : "lowercase_keyword_analyzer"
}
}
}
custom analyzer:
"analysis" : {
"analyzer" : {
"lowercase_keyword_analyzer" : {
"filter" : [
"lowercase"
],
"type" : "custom",
"tokenizer" : "keyword"
}
}
}
When i try to search whether the field exist in the document using the query
GET index-name/_search
{
"query": {
"bool": {
"must": {
"exists": {
"field": "BookingNo.lowercase_keyword"
}
}
}
}
}
It returns around 1500 document but when i check those documents the field doesn't exist
What could be the reason for it?