Yes I've got the page and sort part down, it's the query itself. And of course if I can't filter on the server that makes paging and sorting a bit of a pain because I'll have to return all results and filter them in code which is far less than idea.
The query (my query language is a little rusty, I will update this with the exact query later) was something like:
{ $in { Categories : [<list-of-categories>] }, $in { CatalogId: [<list-of-catalog-ids>] }, $or : { Model: /<some keyword>/i, Manufacturer: /<some keyword>/i, Description: /<some keyword>/i, Identifiers: <some keyword> }}
Basically search for something that:
- Is in any one of a list of categories (note Categories is an array also I'm assuming $in still works)
AND
- Is in one of a list of catalog ids
AND
- Contains some keyword in either
- Model
OR
- Manufactuer
OR
- Description
OR
- Has any identifier value matching some keyword
Anyways, it says it can't AND these queries together. I've also tried adding one EQ query for each of the categories I'm searching for instead of using $in, but that doesn't seem to be the issue.