Skip to content

Instantly share code, notes, and snippets.

@barisusakli
Created February 28, 2018 17:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save barisusakli/b9b67bc1e356fe479a3092441eddf579 to your computer and use it in GitHub Desktop.
Save barisusakli/b9b67bc1e356fe479a3092441eddf579 to your computer and use it in GitHub Desktop.
'term' - The term you are searching
'in' - Use this to search in different content, it can be titles, posts, titlesposts, users or tags.
'by' - used to search for posts that are posted by a specific username
'categories' - list of category ids to search in
'searchChildren' - if this query param is present children categories are also searched
'hasTags' - if a list of tags are passed then only topics that has these tags are returned
'sortBy' - sort the results, it can be 'relevance', 'timestmap', 'teaser.timestamp', 'topic.title', 'topic.postcount', 'topic.viewcount', 'topic.timestamp', 'user.username', 'category.name'.
'sortDirection' - 'asc' or 'desc'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment