elastic-search icon indicating copy to clipboard operation
elastic-search copied to clipboard

BeforeFind event not triggered

Open zunnu opened this issue 4 years ago • 2 comments

Im using Elasticsearch 6 with version 2 of this plugin. The beforefind event is not triggered. In my index I have.

public function beforeSave($event, $product, $options) {
    // triggered
}

public function beforeFind($event, $product, $options) {
    // not triggered
}

I looked at the code a bit and in the execute function there is event call for beforeFind. Should there be or am I missing something? https://github.com/cakephp/elastic-search/blob/2.x/src/Query.php#L558

zunnu avatar Jun 04 '21 14:06 zunnu

This issue is stale because it has been open for 120 days with no activity. Remove the stale label or comment or this will be closed in 15 days

github-actions[bot] avatar Oct 03 '21 00:10 github-actions[bot]

Looks like while we have beforeFind in the API docs we never actually implemented it.

markstory avatar Oct 03 '21 02:10 markstory

This issue is stale because it has been open for 120 days with no activity. Remove the stale label or comment or this will be closed in 15 days

github-actions[bot] avatar Dec 22 '22 00:12 github-actions[bot]