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
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
@@ -303,21 +303,20 @@ public SemanticTextFieldMapper build(MapperBuilderContext context) {
303
303
* This will delay the creation of sub-fields, so indexing and querying for this field won't work
304
304
* until the corresponding inference endpoint is created.
305
305
*/
306
+
logger.warn(
307
+
"The field [{}] references an unknown inference ID [{}]. "
308
+
+ "Indexing and querying this field will not work correctly until the corresponding "
0 commit comments