Skip to content

Commit bb82974

Browse files
committed
rebase latest code
Signed-off-by: zane-neo <zaniu@amazon.com>
1 parent 2a44a4d commit bb82974

File tree

4 files changed

+3
-4
lines changed

4 files changed

+3
-4
lines changed

src/test/java/org/opensearch/neuralsearch/processor/InferenceProcessorTestCase.java

+2
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
package org.opensearch.neuralsearch.processor;
66

77
import com.google.common.collect.ImmutableList;
8+
import org.opensearch.index.mapper.IndexFieldMapper;
89
import org.opensearch.ingest.IngestDocument;
910
import org.opensearch.ingest.IngestDocumentWrapper;
1011
import org.opensearch.test.OpenSearchTestCase;
@@ -21,6 +22,7 @@ protected List<IngestDocumentWrapper> createIngestDocumentWrappers(int count) {
2122
for (int i = 0; i < count; ++i) {
2223
Map<String, Object> sourceAndMetadata = new HashMap<>();
2324
sourceAndMetadata.put("key1", "value1");
25+
sourceAndMetadata.put(IndexFieldMapper.NAME, "my_index");
2426
wrapperList.add(new IngestDocumentWrapper(i, new IngestDocument(sourceAndMetadata, new HashMap<>()), null));
2527
}
2628
return wrapperList;

src/test/java/org/opensearch/neuralsearch/processor/TextEmbeddingProcessorTests.java

+1-2
Original file line numberDiff line numberDiff line change
@@ -538,8 +538,7 @@ public void test_batchExecute_successful() {
538538
public void test_batchExecute_exception() {
539539
final int docCount = 5;
540540
List<IngestDocumentWrapper> ingestDocumentWrappers = createIngestDocumentWrappers(docCount);
541-
Map<String, Object> config = createPlainStringConfiguration();
542-
TextEmbeddingProcessor processor = createInstanceWithNestedMapConfiguration(config);
541+
TextEmbeddingProcessor processor = createInstanceWithLevel1MapConfig();
543542
doAnswer(invocation -> {
544543
ActionListener<List<List<Float>>> listener = invocation.getArgument(2);
545544
listener.onFailure(new RuntimeException());

src/test/java/org/opensearch/neuralsearch/search/query/HybridQueryPhaseSearcherTests.java

-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
import static org.mockito.Mockito.spy;
1616
import static org.mockito.Mockito.verify;
1717
import static org.mockito.Mockito.when;
18-
import static org.opensearch.cluster.metadata.IndexMetadata.TRANSLOG_METADATA_KEY;
1918
import static org.opensearch.index.mapper.SeqNoFieldMapper.PRIMARY_TERM_NAME;
2019
import static org.opensearch.index.remote.RemoteStoreEnums.PathType.HASHED_PREFIX;
2120
import static org.opensearch.neuralsearch.search.util.HybridSearchResultFormatUtil.isHybridQueryStartStopElement;

src/test/java/org/opensearch/neuralsearch/util/ProcessorDocumentUtilsTests.java

-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,6 @@ public void test_with_different_configurations() throws URISyntaxException, IOEx
6060
"field_map",
6161
source,
6262
fieldMap,
63-
1,
6463
"test_index",
6564
clusterService,
6665
environment,

0 commit comments

Comments
 (0)