Skip to content

Commit

Permalink
Merge pull request #799 from dineshSajwan/issue-680
Browse files Browse the repository at this point in the history
feat(bug): fixed issue 680
  • Loading branch information
dineshSajwan authored Nov 13, 2024
2 parents 951b8aa + 6fc7e9a commit 7d0c159
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -146,9 +146,10 @@ def create_mapping(
},
}
for field in metadata_management:
is_filterable = field["Filterable"].lower() == "true"
mapping["properties"][field["MappingField"]] = {
"type": field["DataType"],
"index": "true" if field["Filterable"] else "false",
"index": "true" if is_filterable else "false",
}
return mapping

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
from typing import List, TypedDict

from custom_resources.cr_types import CustomResourceRequest, CustomResourceResponse
from opensearch_index import connect_opensearch
from custom_resources.opensearch_index import connect_opensearch

LOG_LEVEL = os.getenv("LOG_LEVEL", "INFO")

Expand Down

0 comments on commit 7d0c159

Please sign in to comment.