vendure-ecommerce / vendure

The commerce platform with customization in its DNA.
https://www.vendure.io
Other
5.61k stars 993 forks source link

[elastic-plugin] Improve the plugin adding the possibility to make a customquery to fetch a certain list of data #2667

Open giosueDelgado opened 7 months ago

giosueDelgado commented 7 months ago

Is your feature request related to a problem? Please describe. Currently, when using the elastic-plugin on vendure.io, we have not the possibility to change the query for fetching data to sync during reindex. This limitation can be frustrating when we need to retrieve a specific list (for example exclude the sold items or not enabled) of data that does not fit the criteria of available queries.

Describe the solution you'd like I would like the elastic-plugin to include the capability to make custom queries. This feature would allow developers to specify their own query parameters, enabling the retrieval of data based on custom requirements and filters. The addition of a custom query feature would provide much-needed flexibility and power, enabling more complex data fetching scenarios that are currently not possible or maybe optimize the query for my specific case for some complex relation.

Describe alternatives you've considered As an alternative, I have considered using additional tools or plugins to fetch the data I need, but this approach often leads to increased complexity and overhead. Integrating a custom query feature directly into the elastic-plugin would streamline workflows and reduce the need for additional tools.

Additional context This feature would significantly enhance the usability and versatility of the elastic-plugin for developers working on vendure.io platforms. By allowing for custom queries, developers can tailor data fetching to meet their exact requirements, improving efficiency and performance.

giosueDelgado commented 7 months ago

@michaelbromley I work on that