I will try to explain the situation first, if that is not enough I will try
to prepare full curl example.
I created an index alias named 1 pointing to index named 'users' with
routing (routing=1) and filter (filtering by term: user=1). Then I indexed
new data using created alias (1). Data is inserted in correct shard, so the
routing value was used properly. I can get the document by _id using
created alias (1) but I can not _search via this alias.
- curl -XPOST localhost:9200/users/_search - finds indexed documents
- curl -XPOST localhost:9200/1/_search - does not.
What is the most important, I removed alias '1' and added it again.
Now curl -XPOST localhost:9200/1/_search works fine and finds all the
Is this description enough to investigate the problem or should I try to
recreate it step by step using curl queries ?
Thanks for help.