When I am doing wildcard query the result I am getting have different order from inserted order. for example, suppose I have inserted 4 items in "name" field Pamela,Patricia,Pandora,Paige.
And doing wildcard query with "P*". result I am recieving is Patricia,Pamela,Paige,Pandora. Is there any way I can get the results in same order as insertion. expected output should be Pamela,Patricia,Pandora,Paige. Also ordering of results are varying machine to machine.
I am using elastic search version 2.4. I want to do this on same version, Since it is in production.