Skip to content

Commit 60cfe8a

Browse files
authored
Fix: typo for sparse encoding processor factory [2.x] (#600)
* typo fix for sparse encoding processor factory Signed-off-by: yuye-aws <[email protected]> * update change log Signed-off-by: yuye-aws <[email protected]> --------- Signed-off-by: yuye-aws <[email protected]>
1 parent e49b6fd commit 60cfe8a

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
1616
### Features
1717
### Enhancements
1818
### Bug Fixes
19+
Fix typo for sparse encoding processor factory([#600](https://github.com/opensearch-project/neural-search/pull/600))
1920
### Infrastructure
2021
### Documentation
2122
### Maintenance

src/main/java/org/opensearch/neuralsearch/processor/factory/SparseEncodingProcessorFactory.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ public SparseEncodingProcessor create(
4040
Map<String, Object> config
4141
) throws Exception {
4242
String modelId = readStringProperty(TYPE, processorTag, config, MODEL_ID_FIELD);
43-
Map<String, Object> filedMap = readMap(TYPE, processorTag, config, FIELD_MAP_FIELD);
43+
Map<String, Object> fieldMap = readMap(TYPE, processorTag, config, FIELD_MAP_FIELD);
4444

45-
return new SparseEncodingProcessor(processorTag, description, modelId, filedMap, clientAccessor, environment);
45+
return new SparseEncodingProcessor(processorTag, description, modelId, fieldMap, clientAccessor, environment);
4646
}
4747
}

0 commit comments

Comments
 (0)