File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
src/test/java/fr/pilato/test/elasticsearch/hlclient Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -832,13 +832,13 @@ void elser() throws IOException {
832832 // Search
833833 client .search (sr -> sr
834834 .index (indexName )
835- .query (q -> q .textExpansion ( te -> te
835+ .query (q -> q .sparseVector ( sv -> sv
836836 .field ("content_embedding" )
837- .modelId ( ".elser_model_2 " )
838- .modelText ("How to avoid muscle soreness after running?" )
837+ .inferenceId ( "elser-v2-test " )
838+ .query ("How to avoid muscle soreness after running?" )
839839 )), ObjectNode .class );
840840 });
841- assertEquals ("[.elser_model_2 ] is not an inference service model or a deployed ml model" , exception .error ().reason ());
841+ assertEquals ("[elser-v2-test ] is not an inference service model or a deployed ml model" , exception .error ().reason ());
842842 assertEquals (404 , exception .status ());
843843 }
844844
You can’t perform that action at this time.
0 commit comments