Skip to content

Commit

Permalink
Fix: typo for sparse encoding processor factory [2.x] (#600)
Browse files Browse the repository at this point in the history
* typo fix for sparse encoding processor factory

Signed-off-by: yuye-aws <yuyezhu@amazon.com>

* update change log

Signed-off-by: yuye-aws <yuyezhu@amazon.com>

---------

Signed-off-by: yuye-aws <yuyezhu@amazon.com>
  • Loading branch information
yuye-aws authored Feb 14, 2024
1 parent e49b6fd commit 60cfe8a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
### Features
### Enhancements
### Bug Fixes
Fix typo for sparse encoding processor factory([#600](https://github.com/opensearch-project/neural-search/pull/600))
### Infrastructure
### Documentation
### Maintenance
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ public SparseEncodingProcessor create(
Map<String, Object> config
) throws Exception {
String modelId = readStringProperty(TYPE, processorTag, config, MODEL_ID_FIELD);
Map<String, Object> filedMap = readMap(TYPE, processorTag, config, FIELD_MAP_FIELD);
Map<String, Object> 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);
}
}

0 comments on commit 60cfe8a

Please sign in to comment.