Skip to content

[DOCS] Reformat word_delimiter_graph token filter #53170

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

Merged
merged 10 commits into from
Mar 9, 2020
Merged
Show file tree
Hide file tree
Changes from 4 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
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@
<titleabbrev>Trim</titleabbrev>
++++

Removes leading and trailing whitespace from each token in a stream.
Removes leading and trailing whitespace from each token in a stream. While this
can change the length of a token, the `trim` filter does _not_ change a token's
offsets.

The `trim` filter uses Lucene's
https://lucene.apache.org/core/{lucene_version_path}/analyzers-common/org/apache/lucene/analysis/miscellaneous/TrimFilter.html[TrimFilter].
Expand Down Expand Up @@ -69,7 +71,8 @@ GET _analyze
----

The API returns the following response. The returned `fox` token does not
include any leading or trailing whitespace.
include any leading or trailing whitespace. Note that despite changing the
token's length, the `start_offset` and `end_offset` remain the same.

[source,console-result]
----
Expand Down
Loading