Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Add adapters from filter and find services to eZ search service #57

Merged
merged 1 commit into from
Dec 13, 2017

Conversation

emodric
Copy link
Member

@emodric emodric commented Dec 7, 2017

These classes are adapters from Site API filter and find services to SearchService interface
from eZ Publish kernel. The point is being able to replace usage of eZ search service
with Site API filter or find service without touching consuming code.

Ofcourse, we need to convert value objects in search hits from Site API to eZ API value objects.

Methods implemented here do not use $languageFilter argument since it is handled automatically
by the filter and find services themselves.

As for $filterOnUserPermissions, filter and find services don't support it, so it is simply ignored.

Ran some basic tests with replaced services, and it works fine.

public: false
arguments:
- "@netgen.ezplatform_site.find_service"
- "@ezpublish.spi.search.solr"
Copy link
Member

Choose a reason for hiding this comment

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

This should really use ezpublish.spi.search_engine since it's not a given Solr is configured as search engine.
Looks good otherwise :)

Copy link
Member Author

Choose a reason for hiding this comment

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

Hm... Okay. I presume ezpublish.spi.search.legacy is fine for filter adapter?

Copy link
Member

Choose a reason for hiding this comment

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

Yes, that's hardcoded in the config here.

Copy link
Member Author

Choose a reason for hiding this comment

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

Fixed!

Copy link
Member

@pspanja pspanja left a comment

Choose a reason for hiding this comment

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

Thanks @emodric! 👍

@pspanja pspanja merged commit 8d9485d into master Dec 13, 2017
@pspanja pspanja deleted the service_adapters branch December 13, 2017 15:16
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants