ES Uri search on different values for same field


I am trying to search with uri and with some parameter. Imagine we have two docs:




now im try an uri search and get name andi and andy as a result. In my understanding it should work like that:

localhost:9200/myindex/mytyp/_search?q= name:andi OR name:andy & sort=nr:desc &pretty

unfortunately this doesnt work :frowning: is there another way to search with an uri for both values?
I prefer uri search !


found it by myself:
just set some brackets around the fields.

localhost:9200/myindex/mytyp/_search?q= (name:andi OR name:andy) & sort=nr:desc &pretty