Skip to content

Commit

Permalink
Plone keyword indexes not in keyword_fields list should be created as…
Browse files Browse the repository at this point in the history
… keyword indexes in ES
  • Loading branch information
Mustapha Benali committed May 9, 2023
1 parent 686e6a7 commit e999eca
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/collective/elasticsearch/indexes.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,8 @@ class EKeywordIndex(BaseIndex):
def extract(self, name, data):
return data[name] or []

def create_mapping(self, name): # NOQA R0201
return {"type": "keyword", "index": True, "store": True}

class EFieldIndex(BaseIndex):
pass
Expand Down

0 comments on commit e999eca

Please sign in to comment.