+ Enter a query in
+
+
+ OpenSearch Query DSL
+
+
+ (opens in a new tab or window)
+
+
+ . Use the
+
+
+ %SearchText%
+
+
+ variable to refer to the text in the search bar. When you enter
+
+ Search
+
+ , the queries are sent to the search engine using the
+
+
+ GET
+
+
+ HTTP method and the
+
+
+ _search
+
+
+
+ endpoint.
+
+ 1. Enter the search text in the search bar. +
++ 2. Select an index for + + Query 1 + + and enter a query. +
+
+ The following example searches the
+
+
+ speaker
+
+
+ and
+
+
+
+ text_entry
+
+
+ fields of the
+
+
+ shakespeare
+
+
+ index for the search text:
+
+
+
+
+
+
+
+
+
+ {
+
+
+
+
+
+
+
+ "query"
+
+
+ :
+
+
+
+ {
+
+
+
+
+
+
+
+ "multi_match"
+
+
+ :
+
+
+
+ {
+
+
+
+
+
+
+
+ "query"
+
+
+ :
+
+
+
+ "%SearchText%"
+
+
+ ,
+
+
+
+
+
+
+
+ "fields"
+
+
+ :
+
+
+
+ [
+
+
+ "speaker"
+
+
+ ,
+
+
+
+ "text_entry"
+
+
+ ]
+
+
+
+
+
+
+
+ }
+
+
+
+
+
+
+
+ }
+
+
+
+
+
+
+
+ }
+
+
+
+
+
+
+
+
+
+ + 3. Select an index for + + Query 2 + + and enter a query. +
+
+ You can see how boosting a field affects the results. The following query boosts the
+
+
+ speaker
+
+
+ field:
+
+
+
+
+
+
+
+
+
+ {
+
+
+
+
+
+
+
+ "query"
+
+
+ :
+
+
+
+ {
+
+
+
+
+
+
+
+ "multi_match"
+
+
+ :
+
+
+
+ {
+
+
+
+
+
+
+
+ "query"
+
+
+ :
+
+
+
+ "%SearchText%"
+
+
+ ,
+
+
+
+
+
+
+
+ "fields"
+
+
+ :
+
+
+
+ [
+
+
+ "speaker^3"
+
+
+ ,
+
+
+
+ "text_entry"
+
+
+ ]
+
+
+
+
+
+
+
+ }
+
+
+
+
+
+
+
+ }
+
+
+
+
+
+
+
+ }
+
+
+
+
+
+
+
+
+
+ + To learn more about boosts, see the + + + Multi-match Query Documentation + + + (opens in a new tab or window) + + + . +
++ 4. Compare results +
++ Select + + Search + + and compare the results in Results 1 and Results 2. +
+
+ Enter a query in
+
+
+ OpenSearch Query DSL
+
+
+ (opens in a new tab or window)
+
+
+ . Use the
+
+
+ %SearchText%
+
+
+ variable to refer to the text in the search bar. When you enter
+
+ Search
+
+ , the queries are sent to the search engine using the
+
+
+ GET
+
+
+ HTTP method and the
+
+
+ _search
+
+
+
+ endpoint.
+
+ 1. Enter the search text in the search bar. +
++ 2. Select an index for + + Query 1 + + and enter a query. +
+
+ The following example searches the
+
+
+ speaker
+
+
+ and
+
+
+
+ text_entry
+
+
+ fields of the
+
+
+ shakespeare
+
+
+ index for the search text:
+
+
+
+
+
+
+
+
+
+ {
+
+
+
+
+
+
+
+ "query"
+
+
+ :
+
+
+
+ {
+
+
+
+
+
+
+
+ "multi_match"
+
+
+ :
+
+
+
+ {
+
+
+
+
+
+
+
+ "query"
+
+
+ :
+
+
+
+ "%SearchText%"
+
+
+ ,
+
+
+
+
+
+
+
+ "fields"
+
+
+ :
+
+
+
+ [
+
+
+ "speaker"
+
+
+ ,
+
+
+
+ "text_entry"
+
+
+ ]
+
+
+
+
+
+
+
+ }
+
+
+
+
+
+
+
+ }
+
+
+
+
+
+
+
+ }
+
+
+
+
+
+
+
+
+
+ + 3. Select an index for + + Query 2 + + and enter a query. +
+
+ You can see how boosting a field affects the results. The following query boosts the
+
+
+ speaker
+
+
+ field:
+
+
+
+
+
+
+
+
+
+ {
+
+
+
+
+
+
+
+ "query"
+
+
+ :
+
+
+
+ {
+
+
+
+
+
+
+
+ "multi_match"
+
+
+ :
+
+
+
+ {
+
+
+
+
+
+
+
+ "query"
+
+
+ :
+
+
+
+ "%SearchText%"
+
+
+ ,
+
+
+
+
+
+
+
+ "fields"
+
+
+ :
+
+
+
+ [
+
+
+ "speaker^3"
+
+
+ ,
+
+
+
+ "text_entry"
+
+
+ ]
+
+
+
+
+
+
+
+ }
+
+
+
+
+
+
+
+ }
+
+
+
+
+
+
+
+ }
+
+
+
+
+
+
+
+
+
+ + To learn more about boosts, see the + + + Multi-match Query Documentation + + + (opens in a new tab or window) + + + . +
++ 4. Compare results +
++ Select + + Search + + and compare the results in Results 1 and Results 2. +
+
+ Enter a query in
+
+
+ OpenSearch Query DSL
+
+
+ (opens in a new tab or window)
+
+
+ . Use the
+
+
+ %SearchText%
+
+
+ variable to refer to the text in the search bar. When you enter
+
+ Search
+
+ , the queries are sent to the search engine using the
+
+
+ GET
+
+
+ HTTP method and the
+
+
+ _search
+
+
+
+ endpoint.
+
+ 1. Enter the search text in the search bar. +
++ 2. Select an index for + + Query 1 + + and enter a query. +
+
+ The following example searches the
+
+
+ speaker
+
+
+ and
+
+
+
+ text_entry
+
+
+ fields of the
+
+
+ shakespeare
+
+
+ index for the search text:
+
+
+
+
+
+
+
+
+
+ {
+
+
+
+
+
+
+
+ "query"
+
+
+ :
+
+
+
+ {
+
+
+
+
+
+
+
+ "multi_match"
+
+
+ :
+
+
+
+ {
+
+
+
+
+
+
+
+ "query"
+
+
+ :
+
+
+
+ "%SearchText%"
+
+
+ ,
+
+
+
+
+
+
+
+ "fields"
+
+
+ :
+
+
+
+ [
+
+
+ "speaker"
+
+
+ ,
+
+
+
+ "text_entry"
+
+
+ ]
+
+
+
+
+
+
+
+ }
+
+
+
+
+
+
+
+ }
+
+
+
+
+
+
+
+ }
+
+
+
+
+
+
+
+
+
+ + 3. Select an index for + + Query 2 + + and enter a query. +
+
+ You can see how boosting a field affects the results. The following query boosts the
+
+
+ speaker
+
+
+ field:
+
+
+
+
+
+
+
+
+
+ {
+
+
+
+
+
+
+
+ "query"
+
+
+ :
+
+
+
+ {
+
+
+
+
+
+
+
+ "multi_match"
+
+
+ :
+
+
+
+ {
+
+
+
+
+
+
+
+ "query"
+
+
+ :
+
+
+
+ "%SearchText%"
+
+
+ ,
+
+
+
+
+
+
+
+ "fields"
+
+
+ :
+
+
+
+ [
+
+
+ "speaker^3"
+
+
+ ,
+
+
+
+ "text_entry"
+
+
+ ]
+
+
+
+
+
+
+
+ }
+
+
+
+
+
+
+
+ }
+
+
+
+
+
+
+
+ }
+
+
+
+
+
+
+
+
+
+ + To learn more about boosts, see the + + + Multi-match Query Documentation + + + (opens in a new tab or window) + + + . +
++ 4. Compare results +
++ Select + + Search + + and compare the results in Results 1 and Results 2. +
+
+ Enter a query in
+
+
+ OpenSearch Query DSL
+
+
+ (opens in a new tab or window)
+
+
+ . Use the
+
+
+ %SearchText%
+
+
+ variable to refer to the text in the search bar. When you enter
+
+ Search
+
+ , the queries are sent to the search engine using the
+
+
+ GET
+
+
+ HTTP method and the
+
+
+ _search
+
+
+
+ endpoint.
+
+ 1. Enter the search text in the search bar. +
++ 2. Select an index for + + Query 1 + + and enter a query. +
+
+ The following example searches the
+
+
+ speaker
+
+
+ and
+
+
+
+ text_entry
+
+
+ fields of the
+
+
+ shakespeare
+
+
+ index for the search text:
+
+
+
+
+
+
+
+
+
+ {
+
+
+
+
+
+
+
+ "query"
+
+
+ :
+
+
+
+ {
+
+
+
+
+
+
+
+ "multi_match"
+
+
+ :
+
+
+
+ {
+
+
+
+
+
+
+
+ "query"
+
+
+ :
+
+
+
+ "%SearchText%"
+
+
+ ,
+
+
+
+
+
+
+
+ "fields"
+
+
+ :
+
+
+
+ [
+
+
+ "speaker"
+
+
+ ,
+
+
+
+ "text_entry"
+
+
+ ]
+
+
+
+
+
+
+
+ }
+
+
+
+
+
+
+
+ }
+
+
+
+
+
+
+
+ }
+
+
+
+
+
+
+
+
+
+ + 3. Select an index for + + Query 2 + + and enter a query. +
+
+ You can see how boosting a field affects the results. The following query boosts the
+
+
+ speaker
+
+
+ field:
+
+
+
+
+
+
+
+
+
+ {
+
+
+
+
+
+
+
+ "query"
+
+
+ :
+
+
+
+ {
+
+
+
+
+
+
+
+ "multi_match"
+
+
+ :
+
+
+
+ {
+
+
+
+
+
+
+
+ "query"
+
+
+ :
+
+
+
+ "%SearchText%"
+
+
+ ,
+
+
+
+
+
+
+
+ "fields"
+
+
+ :
+
+
+
+ [
+
+
+ "speaker^3"
+
+
+ ,
+
+
+
+ "text_entry"
+
+
+ ]
+
+
+
+
+
+
+
+ }
+
+
+
+
+
+
+
+ }
+
+
+
+
+
+
+
+ }
+
+
+
+
+
+
+
+
+
+ + To learn more about boosts, see the + + + Multi-match Query Documentation + + + (opens in a new tab or window) + + + . +
++ 4. Compare results +
++ Select + + Search + + and compare the results in Results 1 and Results 2. +
+
+ Enter a query in
+
+
+ OpenSearch Query DSL
+
+
+ (opens in a new tab or window)
+
+
+ . Use the
+
+
+ %SearchText%
+
+
+ variable to refer to the text in the search bar. When you enter
+
+ Search
+
+ , the queries are sent to the search engine using the
+
+
+ GET
+
+
+ HTTP method and the
+
+
+ _search
+
+
+
+ endpoint.
+
+ 1. Enter the search text in the search bar. +
++ 2. Select an index for + + Query 1 + + and enter a query. +
+
+ The following example searches the
+
+
+ speaker
+
+
+ and
+
+
+
+ text_entry
+
+
+ fields of the
+
+
+ shakespeare
+
+
+ index for the search text:
+
+
+
+
+
+
+
+
+
+ {
+
+
+
+
+
+
+
+ "query"
+
+
+ :
+
+
+
+ {
+
+
+
+
+
+
+
+ "multi_match"
+
+
+ :
+
+
+
+ {
+
+
+
+
+
+
+
+ "query"
+
+
+ :
+
+
+
+ "%SearchText%"
+
+
+ ,
+
+
+
+
+
+
+
+ "fields"
+
+
+ :
+
+
+
+ [
+
+
+ "speaker"
+
+
+ ,
+
+
+
+ "text_entry"
+
+
+ ]
+
+
+
+
+
+
+
+ }
+
+
+
+
+
+
+
+ }
+
+
+
+
+
+
+
+ }
+
+
+
+
+
+
+
+
+
+ + 3. Select an index for + + Query 2 + + and enter a query. +
+
+ You can see how boosting a field affects the results. The following query boosts the
+
+
+ speaker
+
+
+ field:
+
+
+
+
+
+
+
+
+
+ {
+
+
+
+
+
+
+
+ "query"
+
+
+ :
+
+
+
+ {
+
+
+
+
+
+
+
+ "multi_match"
+
+
+ :
+
+
+
+ {
+
+
+
+
+
+
+
+ "query"
+
+
+ :
+
+
+
+ "%SearchText%"
+
+
+ ,
+
+
+
+
+
+
+
+ "fields"
+
+
+ :
+
+
+
+ [
+
+
+ "speaker^3"
+
+
+ ,
+
+
+
+ "text_entry"
+
+
+ ]
+
+
+
+
+
+
+
+ }
+
+
+
+
+
+
+
+ }
+
+
+
+
+
+
+
+ }
+
+
+
+
+
+
+
+
+
+ + To learn more about boosts, see the + + + Multi-match Query Documentation + + + (opens in a new tab or window) + + + . +
++ 4. Compare results +
++ Select + + Search + + and compare the results in Results 1 and Results 2. +
+
+ Enter a query in
+
+
+ %SearchText%
+
+
+
+ GET
+
+
+
+ _search
+
+
+
+ 1. Enter the search text in the search bar. +
++ 2. Select an index for + + Query 1 + + and enter a query. +
+
+ The following example searches the
+
+ speaker
+
+
+
+ text_entry
+
+
+
+ shakespeare
+
+
+
+
+
+
+
+
+
+
+ {
+
+
+
+
+
+
+
+ "query"
+
+
+ :
+
+
+
+ {
+
+
+
+
+
+
+
+ "multi_match"
+
+
+ :
+
+
+
+ {
+
+
+
+
+
+
+
+ "query"
+
+
+ :
+
+
+
+ "%SearchText%"
+
+
+ ,
+
+
+
+
+
+
+
+ "fields"
+
+
+ :
+
+
+
+ [
+
+
+ "speaker"
+
+
+ ,
+
+
+
+ "text_entry"
+
+
+ ]
+
+
+
+
+
+
+
+ }
+
+
+
+
+
+
+
+ }
+
+
+
+
+
+
+ }
+
+
+
+
+
+
+
+ + 3. Select an index for + + Query 2 + + and enter a query. +
+
+ You can see how boosting a field affects the results. The following query boosts the
+
+ speaker
+
+
+
+
+
+
+
+
+
+
+ {
+
+
+
+
+
+
+
+ "query"
+
+
+ :
+
+
+
+ {
+
+
+
+
+
+
+
+ "multi_match"
+
+
+ :
+
+
+
+ {
+
+
+
+
+
+
+
+ "query"
+
+
+ :
+
+
+
+ "%SearchText%"
+
+
+ ,
+
+
+
+
+
+
+
+ "fields"
+
+
+ :
+
+
+
+ [
+
+
+ "speaker^3"
+
+
+ ,
+
+
+
+ "text_entry"
+
+
+ ]
+
+
+
+
+
+
+
+ }
+
+
+
+
+
+
+
+ }
+
+
+
+
+
+
+ }
+
+
+
+
+
+
+
+
+ To learn more about boosts, see the
+
+
+ 4. Compare results +
++ Select + + Search + + and compare the results in Results 1 and Results 2. +
+
+ Compare results using the same search text with different queries. For more information, see the
+
+
+ Compare results using the same search text with different queries. For more information, see the
+
+
+ Before you can query data, you need to index it.
+
+
+
+
+
+
+ + 1 ++
+
+
+
+ Not applicable
+
+
+
+ |
+
+
+
+
+
|
+
+
+
+
+
+ + 2 ++
+
+
+
+ Not applicable
+
+
+
+ |
+
+
+
+
+
|
+
+
+
+
+
+ + 3 ++
+
+
+
+ Not applicable
+
+
+
+ |
+
+
+
+
+
|
+
+
+
+
+
+ + 4 ++
+
+
+
+ Not applicable
+
+
+
+ |
+
+
+
+
+
|
+
+
+
+
+
+ + 5 ++
+
+
+
+ Not applicable
+
+
+
+ |
+
+
+
+
+
|
+
+
+
+
+
+ + 6 ++
+
+
+
+ Not applicable
+
+
+
+ |
+
+
+
+
+
|
+
+
+
+
+
+ + 7 ++
+
+
+
+ Not applicable
+
+
+
+ |
+
+
+
+
+
|
+
+
+
+
+
+ + 8 ++
+
+
+
+ Not applicable
+
+
+
+ |
+
+
+
+
+
|
+
+
+
+
+
+ + 9 ++
+
+
+
+ Not applicable
+
+
+
+ |
+
+
+
+
+
|
+
+
+
+
+
+ + 10 ++
+
+
+
+ Not applicable
+
+
+
+ |
+
+
+
+
+
|
+
+
+
+
+
+ + 1 ++
+
+
+
+ Not applicable
+
+
+
+ |
+
+
+
+
+
|
+
+
+
+
+
+ + 2 ++
+
+
+
+ Not applicable
+
+
+
+ |
+
+
+
+
+
|
+
+
+
+
+
+ + 3 ++
+
+
+
+ Not applicable
+
+
+
+ |
+
+
+
+
+
|
+
+
+
+
+
+ + 4 ++
+
+
+
+ Not applicable
+
+
+
+ |
+
+
+
+
+
|
+
+
+
+
+
+ + 5 ++
+
+
+
+ Not applicable
+
+
+
+ |
+
+
+
+
+
|
+
+
+
+
+
+ + 6 ++
+
+
+
+ Not applicable
+
+
+
+ |
+
+
+
+
+
|
+
+
+
+
+
+ + 7 ++
+
+
+
+ Not applicable
+
+
+
+ |
+
+
+
+
+
|
+
+
+
+
+
+ + 8 ++
+
+
+
+ Not applicable
+
+
+
+ |
+
+
+
+
+
|
+
+
+
+
+
+ + 9 ++
+
+
+
+ Not applicable
+
+
+
+ |
+
+
+
+
+
|
+
+
+
+
+
+ + 10 ++
+
+
+
+ Not applicable
+
+
+
+ |
+
+
+
+
+
|
+
+
+
+
+
+ + 1 ++
+
+
+
+
+ |
+
+
+
+
+
|
+
+
+
+
+
+ + 2 ++
+
+
+
+
+ |
+
+
+
+
+
|
+
+
+
+
+
+ + 3 ++
+
+
+
+
+ |
+
+
+
+
+
|
+
+
+
+
+
+ + 4 ++
+
+
+
+
+ |
+
+
+
+
+
|
+
+
+
+
+
+ + 5 ++
+
+
+
+ Not applicable
+
+
+
+ |
+
+
+
+
+
|
+
+
+
+
+
+ + 6 ++
+
+
+
+ Not applicable
+
+
+
+ |
+
+
+
+
+
|
+
+
+
+
+
+ + 7 ++
+
+
+
+ Not applicable
+
+
+
+ |
+
+
+
+
+
|
+
+
+
+
+
+ + 8 ++
+
+
+
+ Not applicable
+
+
+
+ |
+
+
+
+
+
|
+
+
+
+
+
+ + 9 ++
+
+
+
+ Not applicable
+
+
+
+ |
+
+
+
+
+
|
+
+
+
+
+
+ + 10 ++
+
+
+
+ Not applicable
+
+
+
+ |
+
+
+
+
+
|
+
+ Enter a query in OpenSearch Query DSL. Use %SearchText% to refer to the text in the search bar. +
++ Enter a query in OpenSearch Query DSL. Use %SearchText% to refer to the text in the search bar. +
+
Enter a query in OpenSearch Query DSL. Use %SearchText% to refer to the text in the search
- bar. Need more help?{' '}
-