Closed (fixed)
Project:
Search API Elasticsearch Synonym
Version:
1.0.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
16 Jul 2020 at 16:22 UTC
Updated:
31 Jul 2020 at 14:04 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
nils.destoop commentedThe attached patch fixes the issue.
Comment #4
dealancer commented@nils.destoop, thanks, good job!
Comment #5
dealancer commentedAfter applying this patch I am noticing the following error on the index rebuild:
Notice: Undefined index: type in Drupal\search_api_elasticsearch_synonym\EventSubscriber\PrepareIndexMappingSubscriber->prepareIndexMapping() (line 36 of modules/contrib/search_api_elasticsearch_synonym/src/EventSubscriber/PrepareIndexMappingSubscriber.php).
Comment #7
dealancer commentedLooks like we are dealing with different versions of Elasticsearch connector, so I added extra condition to check if type is set.