Epinova / Epinova.Elasticsearch

A search-plugin for Episerver CMS and Commerce
MIT License
29 stars 20 forks source link

Get entire resultset before filtering is performed. #140

Closed Sigve-Fast closed 3 years ago

Sigve-Fast commented 3 years ago

GetContentResults fetches results from elastic with the values set in .Skip() and .Take() and does the filtering after getting the resultset back from elastic. This messes up a pagination context causing different number of results and different TotalHits for every page for the search result depending on how many pages was filtered.