1

I want to use elasticsearch with cakephp 3 , there is an article related to this in cakephp cookbook Click Here. But while saving a record through cakephp 3, i am getting "Param _version does not exist" error from "ruflin\elastica\lib\Elastica\AbstractUpdateAction.php" this php file.

  • It might be helpful to show what code you're running that's generating this error. I'd assume you're likely updating an existing record, as the Document class is hard coded to return version 1 on new entities. Likely whatever query you're running to pull the record in the first place isn't returning a _version in its results, there's a few potential causes for that. – Andy Hoffner Jun 28 '19 at 15:48

1 Answers1

0

I was able to resolve it,, by restarting the elasticsearch server, as i think the server got closed and due to which this error was coming.