adamfairholm / Elasticquent

Map Larvel Eloquent models to Elasticsearch types
MIT License
201 stars 38 forks source link

Function putMapping - error #33

Closed seb-jean closed 5 years ago

seb-jean commented 9 years ago

Hello everyone,

  1. When I use the function putMapping, I have a following error : MergeMappingException[Merge failed with failures {[mapper [document_col1] has different index_analyzer]}]". I specify that I already data in ElasticSearch.
  2. I try to remove mapping and index and then create index, put mapping and add index the document but the type and index specify in $mappingProperties are not correct. I do like following : Document::createIndex($shards = null, $replicas = null); Document::putMapping($ignoreConflicts = true); And foreach document : $document::addToIndex();

Could someone help me to solve this problem?