Open PetroGromovo opened 4 years ago
We are waiting for a solution. https://github.com/elasticquent/Elasticquent/issues/127
I think the problems in this line
$mapping['body'][$instance->getTypeName()] = $params;
in the elasticquent/elasticquent/src/ElasticquentTrait.php
The type name is not part of the body, the body should look like:
body: {
"_source": {
"enabled":true
},
"properties": {
"price": {"type":"integer"}
}
}
Right now I'm mapping my fields correctly. using
$mapping['body'] = $params;
i have same probleam
i have same problem
I have also same problem
I'm still using my approach and works for me did you try with it? Event I created a patch in order to apply it after install my dependencies.
@hectorrodriguez773 which approach you are using please let me know?
vendor/elasticquent/elasticquent/src/ElasticquentTrait.php
The problems in this line
$mapping['body'][$instance->getTypeName()] = $params;
in the elasticquent/elasticquent/src/ElasticquentTrait.php
The type name is not part of the body, the body should look like:
body: {
"_source": {
"enabled":true
},
"properties": {
"price": {"type":"integer"}
}
}
You have to use
$mapping['body'] = $params;
Hello, In Laravel 7.12.0 app I added "elasticquent/elasticquent": "dev-master" plugin and I try to implement sample data example from https://www.elastic.co/blog/a-practical-introduction-to-elasticsearch
with shakespeare.json file
But making mapping I got error :
my config/elasticquent.php :
elasticsearch us running at the moment and I have in console :
I tried to hide columns in $mappingProperties , leaving only sample
But I have the same error. How to fix it ?
elasticsearch : Version: 7.7.0
Thanks!