nextapps-de / flexsearch

Next-Generation full text search library for Browser and Node.js
Apache License 2.0
12.54k stars 492 forks source link

Using pagination with multi-field search doesn't return result #186

Closed RabbidDog closed 3 years ago

RabbidDog commented 4 years ago

Version: 0.6.32

What I am doing

I have multiple fields that the user can filter on. So the query text for each field would be different. And the result should be paginated because the table component can't handle large row sets.

What I would like to find out is how to use the format below along with pagination index.search([{ field: "title", query: "foo" },{ field: "body", query: "bar" }]); Ever better, if multiple query texts can be applied to the same field with "or" Current attempts don't return any result. my search looks as follows index.search([{ field: "title", query: "foo" },{ field: "body", query: "bar" }], {limit: 100, page: true});

expected behavior

pagination on multi-field search should return result

current behavior

getting empty result array

ts-thomas commented 3 years ago

Please change over to the version >= 0.7.x, thanks a lot.