From 761e3aebb155b4a8295fc49ecbe85ca01a794301 Mon Sep 17 00:00:00 2001 From: yuye-aws Date: Thu, 1 Feb 2024 11:15:31 +0800 Subject: [PATCH 1/2] typo fix for sparse encoding processor factory Signed-off-by: yuye-aws --- .../processor/factory/SparseEncodingProcessorFactory.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/opensearch/neuralsearch/processor/factory/SparseEncodingProcessorFactory.java b/src/main/java/org/opensearch/neuralsearch/processor/factory/SparseEncodingProcessorFactory.java index 75e00e85a..95b2803a0 100644 --- a/src/main/java/org/opensearch/neuralsearch/processor/factory/SparseEncodingProcessorFactory.java +++ b/src/main/java/org/opensearch/neuralsearch/processor/factory/SparseEncodingProcessorFactory.java @@ -40,8 +40,8 @@ public SparseEncodingProcessor create( Map config ) throws Exception { String modelId = readStringProperty(TYPE, processorTag, config, MODEL_ID_FIELD); - Map filedMap = readMap(TYPE, processorTag, config, FIELD_MAP_FIELD); + Map fieldMap = readMap(TYPE, processorTag, config, FIELD_MAP_FIELD); - return new SparseEncodingProcessor(processorTag, description, modelId, filedMap, clientAccessor, environment); + return new SparseEncodingProcessor(processorTag, description, modelId, fieldMap, clientAccessor, environment); } } From bfcf24d61d0d6cb49419a068e2d6d5928f075ca3 Mon Sep 17 00:00:00 2001 From: yuye-aws Date: Mon, 5 Feb 2024 11:40:30 +0800 Subject: [PATCH 2/2] update change log Signed-off-by: yuye-aws --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6e9f66163..4721efe6f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), - Fix async actions are left in neural_sparse query ([#438](https://github.com/opensearch-project/neural-search/pull/438)) - Fixed exception for case when Hybrid query being wrapped into bool query ([#490](https://github.com/opensearch-project/neural-search/pull/490)) - Hybrid query and nested type fields ([#498](https://github.com/opensearch-project/neural-search/pull/498)) +- Fix typo for sparse encoding processor factory([#578](https://github.com/opensearch-project/neural-search/pull/578)) ### Infrastructure ### Documentation ### Maintenance