cakephp / elastic-search

Elastic search datasource for CakePHP
Other
88 stars 53 forks source link

index_not_found_exception #130

Closed mvdornellas closed 7 years ago

mvdornellas commented 7 years ago

Hi guys im using the plugin "cakephp/elastic-search": "dev-master" with version 5.5.1 of elastic search, Im install elastic search with home brew on mac and I made all configurations and installations according to the tutorial of cookbook, However, when i try mapping my entity "Categorias" i receive one wrong message with "Wrong parameters for Elastica\Exception\ResponseException". Then I went to check if the elastic was creating the "my_apps_index" in http://localhost:9200/my_apps_index and i receive the message " index_not_found_exception status 404", i want know how i can solve this problem. Can someone help me?

Best regards, Marcos dornellas

Below are the photos with the problems.

captura de tela 2017-08-13 as 14 03 09 captura de tela 2017-08-13 as 14 02 42 captura de tela 2017-08-13 as 14 02 24
markstory commented 7 years ago

Have you tried creating the index that is missing?

mvdornellas commented 7 years ago

Hummm I'm understand, but i don't know how to do this, Can you explain better please?

markstory commented 7 years ago

Elastic Search indicies need to be created through the HTTP interface generally.

mvdornellas commented 7 years ago

@markstory Cool but i don't understand one thing, when i start with this plugin and im work with elastic version 5.4, when i came in http://localhost:9200/my_apps_index the mapping has been done automatically i guess and yesterday i updated the elastic and this problem appeared, there is no way mapping can to occur automatically?

markstory commented 7 years ago

there is no way mapping can to occur automatically

Elasticsearch can infer mappings based on the first indexed document. In my experience it is best to define your mappings manually as Elasticsearch can only infer so much about documents being indexed.

mvdornellas commented 7 years ago

Thank you markstory, I'm trying do this, mapping my entitys in elastic, however, i don't have much experience with him, If i have problem, you can help me? How can i talk to you, here?

lorenzo commented 7 years ago

You can get help in the clack channel http://cakesf.herokuapp.com