monsieurbiz / SyliusSearchPlugin

A search plugin using Elasticsearch for Sylius
MIT License
45 stars 38 forks source link

Refactoring of the RepositoryDatasource class and add a datasource for the products #144

Closed delyriand closed 1 year ago

delyriand commented 1 year ago

Summary

The new product data source only returns activated products that have a channel to index them in ES.

And I refactored the RepositoryDatasource, it always works with a pagnitor. I increase the batch size, by default is 10.

Example

Example, my product with id 10, doesn't have channels:

image

but it is indexed in ES:

image image

With the new datasource, the product is not indexing:

image