Skip to content

Commit

Permalink
Merge pull request #1014 from openedx/pwnage101/algolia-search-aggreg…
Browse files Browse the repository at this point in the history
…ation-key

feat: algolia index should be searchable by aggregation_key
  • Loading branch information
pwnage101 authored Dec 12, 2024
2 parents 1c654e1 + d27298e commit 7c8d8e8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions enterprise_catalog/apps/catalog/algolia_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,11 +136,14 @@
'attributeForDistinct': 'aggregation_key',
'distinct': True,
'typoTolerance': False,
# unordered(): Ignores the position of the match within the attribute.
# From docs: https://www.algolia.com/doc/api-reference/api-parameters/searchableAttributes/#modifiers
'searchableAttributes': [
'unordered(title)',
'unordered(full_description)',
'unordered(short_description)',
'unordered(additional_information)',
'aggregation_key',
'partners',
'skill_names',
'skills',
Expand Down

0 comments on commit 7c8d8e8

Please sign in to comment.