Elasticsearch URI based query with AND operator

后端 未结 4 1410
一向
一向 2021-01-31 09:00

How do I specify AND operation in URI based query? I\'m looking for something like:

http://localhost:9200/_search?q=\"profiletype:student AND username:s*\"
         


        
4条回答
  •  梦毁少年i
    2021-01-31 10:00

    i had to combine the default operator and + sign to make it work

    curl -XGET 'localhost:9200/apm/inventory/_search?default_operator=AND&q=tenant_id:t2+_all:node_1'
    

提交回复
热议问题