PostSearchData

public struct PostSearchData : Content

Used to return info about a search for ForumPosts. Like forums, this returns an array of PostData. However, this gives the results of a search for posts across all the forums.

Returned by: GET /api/v3/forum/post/search

  • The search query used to create these results.

    Declaration

    Swift

    var queryString: String
  • The posts in the forum.

    Declaration

    Swift

    var posts: [PostData]
  • Pagination into the results set. Because /forum/post/search filters the result set after the db query, posts.count could be less than paginator.limit even if we’re not at the end of the results. To get the next ‘page’ of results, be sure to add limit to start; don’t addposts.count.

    Declaration

    Swift

    var paginator: Paginator