Skip to main content

REST-API: exclude categories from search

  • May 24, 2023
  • 0 replies
  • 7 views

I use the REST endpoint /search to get a list of articles for certain keywords. There are a few categories that I don't want to search.

 

In the endpoint I can only give a positive list of categories. To get my desired result, I first have to get a list of all categories, then filter out the unwanted ones and then specify the result as categories to be searched.

This is cumbersome and not optimal for the runtime.

I would like it if I could also specify a list of categories that are ignored for the search.