Search
Basic Forms
OR
OR
Searching with request URI
Query DSL
Debugging unexpected search results
e.g.
Full text queries vs. Term level queries
Term Query --> Inverted Index
"chris" will match with "chris" in Inverted Index
"Chris" will not match
Match Query --> Analysis --> Inverted Index
"Chris" will be converted to "chris", which has a match in Inverted Index
Full Text Queries
Search for a term
Search for multiple terms
Search by document IDs
Matching documents with range values
Relative Dates (date math)
https://www.elastic.co/guide/en/elasticsearch/reference/current/common-options.html#date-math
Match documents with non-null values
Match based on prefixes
Searching with wildcards
Any characters *
Single wildcard character *
Wildcard could be slower
Searching with regex
Full Text Queries
Flexible matching with the match query
All words should exist:
Matching phrases
Similar to searching
"spaghetti puttanesca"
Searching multiple fields
Either
title
ordescription
has the term "pasta"
Last updated