Skip to content

Commit b20e099

Browse files
committed
Add section for index_prefixes. Revise short request wording.
1 parent d58de59 commit b20e099

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

docs/reference/query-dsl/prefix-query.asciidoc

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ information, see the <<query-dsl-multi-term-rewrite, `rewrite` parameter>>.
4343

4444
[[prefix-query-short-ex]]
4545
===== Short request example
46-
You can shorten `prefix` searches by combining the `<field>` and `value`
47-
parameters. For example:
46+
You can simplify the `prefix` query syntax by combining the `<field>` and
47+
`value` parameters. For example:
4848

4949
[source,js]
5050
----
@@ -55,4 +55,11 @@ GET /_search
5555
}
5656
}
5757
----
58-
// CONSOLE
58+
// CONSOLE
59+
60+
[[prefix-query-index-prefixes]]
61+
===== Speed up prefix queries
62+
You can speed up prefix queries using the <<index-prefixes,`index_prefixes`>>
63+
mapping parameter. If enabled, {es} indexes prefixes between 2 and 5
64+
characters in a separate field. This lets {es} run prefix queries more
65+
efficiently at the cost of a larger index.

0 commit comments

Comments
 (0)