@Olivier_Lambert is using the Discourse API to run search on their WordPress frontend and wants to know how to pull all topics created by a user in a specific category.
@downey provided a search query solution: in:first #category @username to return topics created by a user in a given category. Removing in:first will return all topics and replies by that author.
Regarding documentation for search parameters, @downey suggested using the UI elements in the search results page or the “options” link in the search widget to experiment with various options and see the syntax.
@maiki and @Canapin expressed interest in a formal document for search parameters.
I was gonna warn against this, but maybe you know a way to solve my issue with using the search query: it logs it in the dashboard, making the trending search term widget useless.
Granted, not a huge deal, but: can one use the search endpoint without logging it?
I don’t think there is a formal document, but if you use the UI elements in the search results page (or the “options” link in the search widget, you can experiment with the various options and see the syntax appear once you have completed the form.
This is probably better handled as a separate support topic as it isn’t really related to the question posted by @Olivier_Lambert.
Oh, yep. It didn’t occur to me they’d be passing it along at time of search (I’m not a total ditz, I cache things in WordPress and thought we were having the same issue ).