Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Add support for Spree Finder classes #28

Open
haukurhrafn opened this issue Nov 11, 2019 · 1 comment
Open

Add support for Spree Finder classes #28

haukurhrafn opened this issue Nov 11, 2019 · 1 comment

Comments

@haukurhrafn
Copy link

In Spree's new api v2 the product search is done by posting a name filter to the products resource like so:
/api/v2/storefront/products?filter[name]=rails

The v2 controllers use the new Finder classes instead of the Spree::Core::Search class that the frontend controllers use. According to the Spree dev team they are moving away from the old search class in favour of the Finder classes. So in order to be able to use SearchKicks functionality via Spree's api spree_searchkick gem needs to override/extend the Finder class.

@ronzalo
Copy link
Owner

ronzalo commented Nov 18, 2019

@haukurhrafn originally the search class was designed for the frontend, but I will investigate if it is possible to adapt it for the future implementation of the finder class

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants