From 9acad2e22911537f7bb3bc498e65d2412e50e214 Mon Sep 17 00:00:00 2001 From: Yuye Zhu Date: Fri, 9 Feb 2024 02:07:49 +0800 Subject: [PATCH] Fix: typo for sparse encoding processor factory (#578) * typo fix for sparse encoding processor factory --------- Signed-off-by: yuye-aws --- CHANGELOG.md | 1 + .../processor/factory/SparseEncodingProcessorFactory.java | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 01bd4978f..5c9f4bbcf 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 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); } }