I created a new property in my mapping, with the following characteristics.
{
"allow_to_buy": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword",
"null_value": "N",
"ignore_above": 256
}
}
}
}
To update the documents I used the function update by query.
http://localhost:9200/twitter/tweet/_update_by_query
http://localhost:9200/twitter/tweet/_update_by_query?conflicts=proceed
However, even looking for the new property when the value is N, nothing returns.
{
"size": 1000,
"query": {
"term": {
"allow_to_buy.keyword": {
"value": "N",
"boost": 1.0
}
}
}
}
What should I do?