Skip to content

7.x branch initial support#205

Closed
icex wants to merge 12 commits intocakephp:masterfrom
icex:master
Closed

7.x branch initial support#205
icex wants to merge 12 commits intocakephp:masterfrom
icex:master

Conversation

@icex
Copy link
Copy Markdown

@icex icex commented Jun 12, 2019

Use the latest ruflin/elastica (master)
Fixes total hits 10k limit

I haven't tested it with a Elastic Search 6.x server but I assume it may cause some issues due to using elastica branch 7.x

@icex icex mentioned this pull request Jun 12, 2019
@CauanCabral
Copy link
Copy Markdown
Contributor

Unit tests are failing because of required stability of dependencies.

Should we relax that requirement or wait a stable release from ruflin/elastica package?

Have someway to support both ES versions (6.x and 7.x)?

Comment thread src/Query.php Outdated
$connection = $this->_repository->getConnection();
$index = $this->_repository->getName();
$type = $connection->getIndex($index)->getType($this->_repository->getType());
$searchObject = $connection->getIndex($index)->createSearch($this->_repository->getType());
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The current syntax of createSearch() expect a string|array|\Elastica\Query as first parameter.
Maybe we can replace the instantiation of $searchObject with directly use Index::search, just like:

return $connection->getIndex($index)->search($query, $this->_searchOptions);

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi, good point. I've changed it now. Hope it works

@github-actions
Copy link
Copy Markdown

This pull request is stale because it has been open 30 days with no activity. Remove the stale label or comment on this issue, or it will be closed in 15 days

@github-actions github-actions bot added the stale label Mar 15, 2020
@othercorey othercorey added this to the 3.x milestone Mar 15, 2020
@othercorey
Copy link
Copy Markdown
Contributor

@markstory should this be closed with your new changes?

@markstory
Copy link
Copy Markdown
Member

Perhaps. These changes would enable the 3.x compatible version of the plugin to work with elasticsearch 7. The changes I've made are for the 4.x compatible version.

@github-actions github-actions bot closed this Mar 31, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants