Scandal
Well-known member
I'm working on an addon which uses Search (with Elastic Search).
This addon refers to two content types: thread and resource.
How could I limit the results to specific node_ids and specific resource_category_id, without breaking the results?
I guess with something like $query->withSql(new \XF\Search\Query\SqlConstraint()); but my knowledge of Search Core is limited.![Smile :) :)](https://cdn.jsdelivr.net/joypixels/assets/8.0/png/unicode/64/1f642.png)
This addon refers to two content types: thread and resource.
How could I limit the results to specific node_ids and specific resource_category_id, without breaking the results?
I guess with something like $query->withSql(new \XF\Search\Query\SqlConstraint()); but my knowledge of Search Core is limited.
![Smile :) :)](https://cdn.jsdelivr.net/joypixels/assets/8.0/png/unicode/64/1f642.png)