Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Correct the type of the 'analyzer' parameter in the _analyze docs. #56650

Merged
merged 3 commits into from
May 13, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 4 additions & 8 deletions docs/reference/indices/analyze.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ the `analyzer` or `<field>` parameter overrides this value.
If no analyzer or field are specified,
the analyze API uses the default analyzer for the index.

If no index is specified
If no index is specified
or the index does not have a default analyzer,
the analyze API uses the <<analysis-standard-analyzer,standard analyzer>>.
--
Expand All @@ -56,11 +56,9 @@ the analyze API uses the <<analysis-standard-analyzer,standard analyzer>>.
`analyzer`::
+
--
(Optional, string or <<analysis-custom-analyzer,custom analyzer object>>)
Analyzer used to analyze for the provided `text`.

See <<analysis-analyzers>> for a list of built-in analyzers.
You can also provide a <<analysis-custom-analyzer,custom analyzer>>.
(Optional, string)
The name of the analyzer that should be applied to the provided `text`. This could be a
<<analysis-analyzers, built-in analyzer>>, or an analyzer that's been configured in the index.

If this parameter is not specified,
the analyze API uses the analyzer defined in the field's mapping.
Expand Down Expand Up @@ -187,8 +185,6 @@ GET /_analyze
}
--------------------------------------------------

deprecated[5.0.0, Use `filter`/`char_filter` instead of `filters`/`char_filters` and `token_filters` has been removed]

Custom tokenizers, token filters, and character filters can be specified in the request body as follows:

[source,console]
Expand Down