Skip to content

Commit

Permalink
Remove unused MLPredict Transport action from src.
Browse files Browse the repository at this point in the history
Signed-off-by: Navneet Verma <navneev@amazon.com>
  • Loading branch information
navneet1v committed Jan 5, 2023
1 parent 88dfa16 commit f99d492
Show file tree
Hide file tree
Showing 9 changed files with 0 additions and 382 deletions.
14 changes: 0 additions & 14 deletions src/main/java/org/opensearch/neuralsearch/plugin/NeuralSearch.java
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@
import java.util.Map;
import java.util.function.Supplier;

import org.opensearch.action.ActionRequest;
import org.opensearch.action.ActionResponse;
import org.opensearch.client.Client;
import org.opensearch.cluster.metadata.IndexNameExpressionResolver;
import org.opensearch.cluster.service.ClusterService;
Expand All @@ -26,8 +24,6 @@
import org.opensearch.neuralsearch.processor.TextEmbeddingProcessor;
import org.opensearch.neuralsearch.processor.factory.TextEmbeddingProcessorFactory;
import org.opensearch.neuralsearch.query.NeuralQueryBuilder;
import org.opensearch.neuralsearch.transport.MLPredictAction;
import org.opensearch.neuralsearch.transport.MLPredictTransportAction;
import org.opensearch.plugins.ActionPlugin;
import org.opensearch.plugins.ExtensiblePlugin;
import org.opensearch.plugins.IngestPlugin;
Expand Down Expand Up @@ -63,16 +59,6 @@ public Collection<Object> createComponents(
return List.of(clientAccessor);
}

/**
* Registering the Action Handlers
*
* @return A {@link List} of {@link ActionHandler}
*/
@Override
public List<ActionHandler<? extends ActionRequest, ? extends ActionResponse>> getActions() {
return List.of(new ActionHandler<>(MLPredictAction.INSTANCE, MLPredictTransportAction.class));
}

public List<QuerySpec<?>> getQueries() {
return Collections.singletonList(
new QuerySpec<>(NeuralQueryBuilder.NAME, NeuralQueryBuilder::new, NeuralQueryBuilder::fromXContent)
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@

package org.opensearch.neuralsearch.constants;

import java.util.Arrays;
import java.util.List;

import lombok.AccessLevel;
Expand All @@ -16,6 +15,5 @@ public class TestCommonConstants {
public static final String MODEL_ID = "modeId";
public static final List<String> TARGET_RESPONSE_FILTERS = List.of("sentence_embedding");
public static final Float[] PREDICT_VECTOR_ARRAY = new Float[] { 2.0f, 3.0f };
public static final List<List<Float>> PREDICTIONS_LIST = List.of(Arrays.asList(PREDICT_VECTOR_ARRAY));
public static final List<String> SENTENCES_LIST = List.of("TEXT");
}

This file was deleted.

This file was deleted.

Loading

0 comments on commit f99d492

Please sign in to comment.