ES Uri search on different values for same field

Hello,

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

_source":{"nr":1,"name":"andi"}

and

_source":{"nr":2,"name":"andy"}.

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 !

regards
andi

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