June 2017
Beginner to intermediate
404 pages
8h 22m
English
Wildcard query is used for wildcard matching on the search input. Just like phrase query, the query term is not analyzed. The following wildcards are supported:
| Wildcard | Description |
| * | Matches any character |
| ? | Matches single character |
A sample query looks like the following:
#Wildcard POST chapter6/product/_search { "query": { "wildcard" : { "product_name" : "j*e?" } } }
Regex query is used to find the documents based on regular expression matching. Regular expression query can be very expensive depending on the prefix. A sample query looks like the following:
#Regular Expression POST chapter6/product/_search { "query": { "regexp" : { "product_name" : "jacke." } } }
The following are the commonly ...
Read now
Unlock full access