Skip to content

Commit

Permalink
OpenConceptLab/ocl_issues#1635 | Mapping search to have latest repo v…
Browse files Browse the repository at this point in the history
…ersion field
  • Loading branch information
snyaggarwal committed Aug 23, 2023
1 parent 1fe9ad4 commit 981ffc7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions core/mappings/documents.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ class Django:
source = fields.KeywordField(attr='source', normalizer="lowercase")
retired = fields.KeywordField(attr='retired')
is_latest_version = fields.KeywordField(attr='is_latest_version')
is_in_latest_source_version = fields.KeywordField(attr='is_in_latest_source_version')
map_type = fields.KeywordField(attr='map_type', normalizer="lowercase")
from_concept = fields.ListField(fields.TextField())
to_concept = fields.ListField(fields.TextField())
Expand Down
1 change: 1 addition & 0 deletions core/mappings/search.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ class MappingFacetedSearch(CustomESFacetedSearch):
'owner': TermsFacet(field='owner', size=FACET_SIZE),
'ownerType': TermsFacet(field='owner_type'),
'is_active': TermsFacet(field='is_active'),
'is_in_latest_source_version': TermsFacet(field='is_in_latest_source_version'),
'is_latest_version': TermsFacet(field='is_latest_version'),
'collection_owner_url': TermsFacet(field='collection_owner_url', size=FACET_SIZE),
'expansion': TermsFacet(field='expansion', size=FACET_SIZE),
Expand Down

0 comments on commit 981ffc7

Please sign in to comment.