You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: x-pack/plugin/inference/src/yamlRestTest/resources/rest-api-spec/test/inference/25_semantic_text_field_mapping_chunking.yml
- match: { hits.hits.0.highlight.inference_field.0: "Elasticsearch is an open source, distributed, RESTful, search engine which" }
243
243
- match: { hits.hits.0.highlight.inference_field.1: " which is built on top of Lucene internally and enjoys" }
244
+
245
+
---
246
+
"We respect multiple semantic_text fields with different chunking configurations":
247
+
248
+
- do:
249
+
indices.create:
250
+
index: mixed-chunking
251
+
body:
252
+
mappings:
253
+
properties:
254
+
keyword_field:
255
+
type: keyword
256
+
default_chunked_inference_field:
257
+
type: semantic_text
258
+
inference_id: sparse-inference-id
259
+
customized_chunked_inference_field:
260
+
type: semantic_text
261
+
inference_id: sparse-inference-id
262
+
chunking_settings:
263
+
strategy: word
264
+
max_chunk_size: 10
265
+
overlap: 1
266
+
267
+
- do:
268
+
index:
269
+
index: mixed-chunking
270
+
id: doc_1
271
+
body:
272
+
default_chunked_inference_field: "Elasticsearch is an open source, distributed, RESTful, search engine which is built on top of Lucene internally and enjoys all the features it provides."
273
+
customized_chunked_inference_field: "Elasticsearch is an open source, distributed, RESTful, search engine which is built on top of Lucene internally and enjoys all the features it provides."
- match: { hits.hits.0.highlight.default_chunked_inference_field.0: "Elasticsearch is an open source, distributed, RESTful, search engine which is built on top of Lucene internally and enjoys all the features it provides." }
{ "inference_field": "Elasticsearch is an open source, distributed, RESTful, search engine which is built on top of Lucene internally and enjoys all the features it provides." }
{ "inference_field": "Elasticsearch is an open source, distributed, RESTful, search engine which is built on top of Lucene internally and enjoys all the features it provides." }
- match: { hits.hits.2.highlight.inference_field.0: "Elasticsearch is an open source, distributed, RESTful, search engine which is built on top of Lucene internally and enjoys all the features it provides." }
0 commit comments