Commit b709839 1 parent 6bb7c63 commit b709839 Copy full SHA for b709839
File tree 2 files changed +3
-3
lines changed
common/src/main/java/org/opensearch/ml/common
ml-algorithms/src/main/java/org/opensearch/ml/engine/utils
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -81,7 +81,7 @@ public class CommonValue {
81
81
public static final String ML_STOP_WORDS_INDEX = ".plugins-ml-stop-words" ;
82
82
public static final Set <String > stopWordsIndices = ImmutableSet .of (".plugins-ml-stop-words" );
83
83
public static final Integer ML_MEMORY_MESSAGE_INDEX_SCHEMA_VERSION = 1 ;
84
- public static final String TOOL_PARAMETERS_PREFIX = "tools.parameters." ;
84
+ public static final String TOOL_MODEL_RELATED_FIELD_PREFIX = "tools.parameters." ;
85
85
public static final String USER_FIELD_MAPPING = " \" "
86
86
+ CommonValue .USER
87
87
+ "\" : {\n "
Original file line number Diff line number Diff line change 1
1
package org .opensearch .ml .engine .utils ;
2
2
3
3
import static org .opensearch .ml .common .CommonValue .ML_AGENT_INDEX ;
4
- import static org .opensearch .ml .common .CommonValue .TOOL_PARAMETERS_PREFIX ;
4
+ import static org .opensearch .ml .common .CommonValue .TOOL_MODEL_RELATED_FIELD_PREFIX ;
5
5
6
6
import java .util .HashSet ;
7
7
import java .util .Map ;
@@ -28,7 +28,7 @@ public SearchRequest constructQueryRequest(String candidateModelId) {
28
28
SearchRequest searchRequest = new SearchRequest (ML_AGENT_INDEX );
29
29
BoolQueryBuilder shouldQuery = QueryBuilders .boolQuery ();
30
30
for (String keyField : relatedModelIdSet ) {
31
- shouldQuery .should (QueryBuilders .termsQuery (TOOL_PARAMETERS_PREFIX + keyField , candidateModelId ));
31
+ shouldQuery .should (QueryBuilders .termsQuery (TOOL_MODEL_RELATED_FIELD_PREFIX + keyField , candidateModelId ));
32
32
}
33
33
searchRequest .source (new SearchSourceBuilder ().query (shouldQuery ));
34
34
return searchRequest ;
You can’t perform that action at this time.
0 commit comments