I am able to add a document to an index say my-main-index having some alias my-alias-index. When I did a search like below, I was able to get the documents.
GET /my-main-index/_search
{
"query":{
"match_all": {}
}
}
or
GET /my-alias-index/_search
{
"query":{
"match_all": {}
}
}
But when I try to do an update_by_query, none of the below is working. I am getting 200 response with no record is being updated.
Because you are using a text type for this field. Which means that the content is analyzed.
And basically, your "search-user815" is indexed as ["search", "user815"].
When searching with a term query, the searched text is not analyzed so you are trying to compare search-user815 with search or user815, which obviously does not match.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.