Ability to define selector for SearchIndexingSubscriber #4735
jono-allen
started this conversation in
Feature Requests
Replies: 1 comment
-
Hey what do orders have to do with search subscribers? On another note you can use the transformer function to filter out products as you wish. Is the transformer function not enough to achieve your goal? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Currently, the SearchIndexingSubscriber will return all products regardless of status.
This is not desired in all cases. It does not allow to filter out products that aren't published as an example.
We would like to propose adding a configuration in the search plugins, like an Algolia, to allow selectors to be passed into the retrieveNextProducts function from the medusa plugins config.
The proposed change would look something like
Would love to get feedback and then proceed to open a pr.
Thanks
Beta Was this translation helpful? Give feedback.
All reactions