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
Deprecates indexing and querying a context completion field without context (#31006)
This change deprecates completion queries and documents without context that target a
context enabled completion field. Querying without context degrades the search
performance considerably (even when the number of indexed contexts is low).
This commit targets master but the deprecation will take place in 6.x and the functionality
will be removed in 7 in a follow up.
This is a backport of #30712
"Indexing and Querying without contexts is deprecated":
341
+
- skip:
342
+
version: " - 6.3.99"
343
+
reason: this feature was deprecated in 6.4
344
+
features: "warnings"
345
+
346
+
- do:
347
+
index:
348
+
index: test
349
+
type: test
350
+
id: 1
351
+
body:
352
+
suggest_context:
353
+
input: "foo"
354
+
contexts:
355
+
color: "red"
356
+
suggest_multi_contexts:
357
+
input: "bar"
358
+
contexts:
359
+
color: "blue"
360
+
361
+
- do:
362
+
warnings:
363
+
- "The ability to index a suggestion with no context on a context enabled completion field is deprecated and will be removed in the next major release."
364
+
index:
365
+
index: test
366
+
type: test
367
+
id: 2
368
+
body:
369
+
suggest_context:
370
+
input: "foo"
371
+
372
+
- do:
373
+
indices.refresh: {}
374
+
339
375
- do:
340
-
search:
376
+
warnings:
377
+
- "The ability to query with no context on a context enabled completion field is deprecated and will be removed in the next major release."
0 commit comments