Browse Source

Fix vector REST tests failures caused by the typo fix.

Julie Tibshirani 6 years ago
parent
commit
e6924cb4eb

+ 1 - 1
x-pack/plugin/src/test/resources/rest-api-spec/test/vectors/10_dense_vector_basic.yml

@@ -106,7 +106,7 @@ setup:
       headers:
         Content-Type: application/json
       warnings:
-        - The vector functions of the form function(query, doc['field']) are deprecated, and the form function(query, 'field')` should be used instead. For example, cosineSimilarity(query, doc['field'] is replaced by cosineSimilarity(query, 'field').
+        - The vector functions of the form function(query, doc['field']) are deprecated, and the form function(query, 'field') should be used instead. For example, cosineSimilarity(query, doc['field']) is replaced by cosineSimilarity(query, 'field').
       search:
         rest_total_hits_as_int: true
         body:

+ 1 - 1
x-pack/plugin/src/test/resources/rest-api-spec/test/vectors/30_sparse_vector_basic.yml

@@ -112,7 +112,7 @@ setup:
         Content-Type: application/json
       warnings:
         - The [sparse_vector] field type is deprecated and will be removed in 8.0.
-        - The vector functions of the form function(query, doc['field']) are deprecated, and the form function(query, 'field')` should be used instead. For example, cosineSimilarity(query, doc['field'] is replaced by cosineSimilarity(query, 'field').
+        - The vector functions of the form function(query, doc['field']) are deprecated, and the form function(query, 'field') should be used instead. For example, cosineSimilarity(query, doc['field']) is replaced by cosineSimilarity(query, 'field').
       search:
         rest_total_hits_as_int: true
         body: