Skip to content

Commit 6285860

Browse files
authored
Extract deprecated PathHierarchy to own YAML test (elastic#112647) (elastic#112666)
1 parent d68a094 commit 6285860

File tree

1 file changed

+7
-5
lines changed
  • modules/analysis-common/src/yamlRestTest/resources/rest-api-spec/test/analysis-common

1 file changed

+7
-5
lines changed

modules/analysis-common/src/yamlRestTest/resources/rest-api-spec/test/analysis-common/30_tokenizers.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -317,22 +317,24 @@
317317
body:
318318
text: "a/b/c"
319319
explain: true
320-
tokenizer:
321-
type: PathHierarchy
320+
tokenizer: path_hierarchy
322321
- length: { detail.tokenizer.tokens: 3 }
323-
- match: { detail.tokenizer.name: __anonymous__PathHierarchy }
322+
- match: { detail.tokenizer.name: path_hierarchy }
324323
- match: { detail.tokenizer.tokens.0.token: a }
325324
- match: { detail.tokenizer.tokens.1.token: a/b }
326325
- match: { detail.tokenizer.tokens.2.token: a/b/c }
327326

327+
---
328+
"PathHierarchy":
328329
- do:
329330
indices.analyze:
330331
body:
331332
text: "a/b/c"
332333
explain: true
333-
tokenizer: path_hierarchy
334+
tokenizer:
335+
type: PathHierarchy
334336
- length: { detail.tokenizer.tokens: 3 }
335-
- match: { detail.tokenizer.name: path_hierarchy }
337+
- match: { detail.tokenizer.name: __anonymous__PathHierarchy }
336338
- match: { detail.tokenizer.tokens.0.token: a }
337339
- match: { detail.tokenizer.tokens.1.token: a/b }
338340
- match: { detail.tokenizer.tokens.2.token: a/b/c }

0 commit comments

Comments
 (0)