Skip to content

Commit

Permalink
Fix typo in query-dsl doc page (#6228)
Browse files Browse the repository at this point in the history
Signed-off-by: Prabhu Pant <[email protected]>
  • Loading branch information
prabhupant authored Jan 19, 2024
1 parent 05e44c0 commit 849e9ac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions _query-dsl/full-text/query-string.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ You can use query string syntax in the following cases:
GET _search?q=wind
```

A query string consists of _terms_ and _operators_. A term is a single word (for example, in the query `wind rises`, the terms are `wind` and `rises`). If several terms are surrounded by quotation marks, they are treated as one phrase where words are marched in the order they appear (for example, `"wind rises"`). Operators (such as `OR`, `AND`, and `NOT`) specify the Boolean logic used to interpret text in the query string.
A query string consists of _terms_ and _operators_. A term is a single word (for example, in the query `wind rises`, the terms are `wind` and `rises`). If several terms are surrounded by quotation marks, they are treated as one phrase where words are matched in the order they appear (for example, `"wind rises"`). Operators (such as `OR`, `AND`, and `NOT`) specify the Boolean logic used to interpret text in the query string.

The examples in this section use an index containing the following mapping and documents:

Expand Down Expand Up @@ -645,4 +645,4 @@ Parameter | Data type | Description
`time_zone` | String | Specifies the number of hours to offset the desired time zone from `UTC`. You need to indicate the time zone offset number if the query string contains a date range. For example, set `time_zone": "-08:00"` for a query with a date range such as `"query": "wind rises release_date[2012-01-01 TO 2014-01-01]"`). The default time zone format used to specify number of offset hours is `UTC`.

Query string queries may be internally converted into [prefix queries]({{site.url}}{{site.baseurl}}/query-dsl/term/prefix/). If [`search.allow_expensive_queries`]({{site.url}}{{site.baseurl}}/query-dsl/index/#expensive-queries) is set to `false`, prefix queries are not executed. If `index_prefixes` is enabled, the `search.allow_expensive_queries` setting is ignored and an optimized query is built and executed.
{: .important}
{: .important}

0 comments on commit 849e9ac

Please sign in to comment.