Clarify path_hierarchy documentation (#44910)

* Resolve merge conflicts and apply review suggestions

* Fix URLs

---------

Co-authored-by: Abdon Pijpelink <abdon.pijpelink@elastic.co>
This commit is contained in:
Mayya Sharipova 2023-05-01 05:32:38 -04:00 committed by GitHub
parent 401413fa3d
commit eab19b56da
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -6,7 +6,9 @@
The `path_hierarchy` tokenizer takes a hierarchical value like a filesystem The `path_hierarchy` tokenizer takes a hierarchical value like a filesystem
path, splits on the path separator, and emits a term for each component in the path, splits on the path separator, and emits a term for each component in the
tree. tree. The `path_hierarcy` tokenizer uses Lucene's
https://lucene.apache.org/core/{lucene_version_path}/analysis/common/org/apache/lucene/analysis/path/PathHierarchyTokenizer.html[PathHierarchyTokenizer]
underneath.
[discrete] [discrete]
=== Example output === Example output
@ -81,7 +83,9 @@ The `path_hierarchy` tokenizer accepts the following parameters:
text has been consumed. It is advisable not to change this setting. text has been consumed. It is advisable not to change this setting.
`reverse`:: `reverse`::
If set to `true`, emits the tokens in reverse order. Defaults to `false`. If `true`, uses Lucene's
http://lucene.apache.org/core/{lucene_version_path}/analysis/common/org/apache/lucene/analysis/path/ReversePathHierarchyTokenizer.html[ReversePathHierarchyTokenizer],
which is suitable for domainlike hierarchies. Defaults to `false`.
`skip`:: `skip`::
The number of initial tokens to skip. Defaults to `0`. The number of initial tokens to skip. Defaults to `0`.