Closed mvdornellas closed 7 years ago
Sounds like you are bumping into the eventual consistency behavior that ElasticSearch has. You'd have to use the features of elastica to refresh the relevant indexes.
$typeObject->connection()->getIndex()->refresh()
Should do the trick.
Hi guys, I have a problem with insert or update of a document, when i insert a new row in document and redirect to my index the new row don't appear, however when a press ctr+F5 the row appear, i searched in document of elastic search and find an method call "refresh", but i don't know apply this in cakephp with elastic search, someone can help me?