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
[semantic_text] Warn on inference endpoint not created (elastic#127574)
This change fixes when we warn users that create a semantic_text field that points to a non-existing inference endpoint.
The logging should happen only when the inference endpoint is checked against the registry and cases that don't use the registry should ignore it (recovery).
Copy file name to clipboardExpand all lines: x-pack/plugin/inference/src/main/java/org/elasticsearch/xpack/inference/mapper/SemanticTextFieldMapper.java
+7-8Lines changed: 7 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -302,21 +302,20 @@ public SemanticTextFieldMapper build(MapperBuilderContext context) {
302
302
* This will delay the creation of sub-fields, so indexing and querying for this field won't work
303
303
* until the corresponding inference endpoint is created.
304
304
*/
305
+
logger.warn(
306
+
"The field [{}] references an unknown inference ID [{}]. "
307
+
+ "Indexing and querying this field will not work correctly until the corresponding "
0 commit comments