Skip to content

Commit

Permalink
Extract deprecated PathHierarchy to own YAML test (#112647) (#112666)
Browse files Browse the repository at this point in the history
  • Loading branch information
pquentin authored Sep 9, 2024
1 parent d68a094 commit 6285860
Showing 1 changed file with 7 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -317,22 +317,24 @@
body:
text: "a/b/c"
explain: true
tokenizer:
type: PathHierarchy
tokenizer: path_hierarchy
- length: { detail.tokenizer.tokens: 3 }
- match: { detail.tokenizer.name: __anonymous__PathHierarchy }
- match: { detail.tokenizer.name: path_hierarchy }
- match: { detail.tokenizer.tokens.0.token: a }
- match: { detail.tokenizer.tokens.1.token: a/b }
- match: { detail.tokenizer.tokens.2.token: a/b/c }

---
"PathHierarchy":
- do:
indices.analyze:
body:
text: "a/b/c"
explain: true
tokenizer: path_hierarchy
tokenizer:
type: PathHierarchy
- length: { detail.tokenizer.tokens: 3 }
- match: { detail.tokenizer.name: path_hierarchy }
- match: { detail.tokenizer.name: __anonymous__PathHierarchy }
- match: { detail.tokenizer.tokens.0.token: a }
- match: { detail.tokenizer.tokens.1.token: a/b }
- match: { detail.tokenizer.tokens.2.token: a/b/c }
Expand Down

0 comments on commit 6285860

Please sign in to comment.