reactivesearch icon indicating copy to clipboard operation
reactivesearch copied to clipboard

MultiList filter on server side

Open piwel opened this issue 5 years ago • 3 comments

Hi,

Affected Projects React / All

I'm using MultiList with huge lists (more than 10,000 terms), and the showFilter is really useful. However, when I use it combined to showLoadMore, I need to click multiple times the Load More button to get all results as filter is applied on local data already get from the server.

I would prefer the filter to take place on server side in this case.

This behavior might be activated on demand as not all lists need it. I can't see how to interact with the component to create this behavior on top of the existing component.

Thanks in advance for your help.

piwel avatar Oct 20 '20 15:10 piwel

@piwel Rather than using a MultiList, you may want to start out with DataSearch and customize the render method to show suggestions as a list.

siddharthlatest avatar Oct 20 '20 17:10 siddharthlatest

Hi @siddharthlatest,

Thanks for the idea, that could be great indeed but unless I'm wrong, I can't choose multiple items with DataSearch, can I?

But maybe could I combine a DataSearch and a MultiDataList generated from the DataSearch results… I'm not 100% sure about that though…

piwel avatar Oct 20 '20 18:10 piwel

@piwel

https://github.com/appbaseio/reactivesearch/issues/1385

This helped me with that scenario

rgb-panda avatar Feb 10 '21 17:02 rgb-panda