Skip to content

Commit

Permalink
update chunking index setting and chunking processor setting
Browse files Browse the repository at this point in the history
Signed-off-by: yuye-aws <yuyezhu@amazon.com>
  • Loading branch information
yuye-aws committed Apr 28, 2024
1 parent f3a81f6 commit 5c45e66
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"settings":{
"default_pipeline": "%s",
"number_of_shards": 3,
"number_of_replicas": 1
"number_of_shards": 1,
"number_of_replicas": 0
},
"mappings": {
"properties": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"settings":{
"default_pipeline": "%s",
"number_of_shards": 3,
"number_of_replicas": 1
"number_of_shards": 1,
"number_of_replicas": 0
},
"mappings": {
"properties": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,7 @@ private int getMaxTokenCount(final Map<String, Object> sourceAndMetadataMap) {
*/
@Override
public IngestDocument execute(final IngestDocument ingestDocument) {
/*
Map<String, Object> sourceAndMetadataMap = ingestDocument.getSourceAndMetadata();
validateFieldsValue(sourceAndMetadataMap);
// fixed token length algorithm needs runtime parameter max_token_count for tokenization
Expand All @@ -170,6 +171,7 @@ public IngestDocument execute(final IngestDocument ingestDocument) {
runtimeParameters.put(FixedTokenLengthChunker.MAX_TOKEN_COUNT_FIELD, maxTokenCount);
runtimeParameters.put(MAX_CHUNK_LIMIT_FIELD, maxChunkLimit);
chunkMapType(sourceAndMetadataMap, fieldMap, runtimeParameters, 0);
*/
return ingestDocument;
}

Expand Down

0 comments on commit 5c45e66

Please sign in to comment.