A URI request searches Elasticsearch by attaching query parameters to the _search URL instead of sending criteria in a Query DSL request body. It suits simple searches that fit name:value expressions. section 8.4.1 section 8.6
Find movies by title
GET movies/_search?q=title:Godfather The query follows the question-mark delimiter and uses title:Godfather as its name:value criterion. It can return movies matching “Godfather” in the title, such as the trilogy. section 8.4.1 section 8.6
GET|POST <your_index_name>/_search?q=<name:value> AND|OR <name:value>
Use the compact request pattern to combine simple criteria with AND or OR. section 8.6
Keep these operational distinctions in mind:
- Target one index, multiple comma-separated indexes or aliases, or all indexes by omitting the index scope. section 8.5.1
- Prefer Query DSL when criteria become complex because it is more powerful, expressive, and supports advanced queries and aggregations. section 8.4.1 section 8.9
- Use the _search endpoint through GET or POST when issuing the URI form. section 8.4.1
