SCSMutableArticleQuery Class Reference

Inherits from SCSArticleQuery : NSObject
Declared in SCSArticleQuery.h

Overview

An SCSMutableArticleQuery object is the mutable version of SCSArticleQuery. It manages the criteria to apply when fetching and searching knowledge articles. This query object stores the type of search, the search parameters, and any filters or constraints to apply when searching.

Use this object with [SCSKnowledgeManager fetchArticlesWithQuery:completion:] to download articles that match your query. To access already downloaded articles matching your query, call [SCSKnowledgeManager articlesMatchingQuery:completion:].

  articleId

Specifies the 18-character article ID. This property cannot be used with searchTerm, queryMethod, sortOrder, or sortByField.

@property (nullable, nonatomic, copy, readwrite) NSString *articleId

Declared In

SCSArticleQuery.h

  categories

Specifies the data categories associated with the articles that need to be queried.

@property (nullable, nonatomic, copy, readwrite) NSArray<SCSCategory*> *categories

Discussion

Use this property with the queryMethod property to further refine the search. When specifying multiple categories, the category group must be different for each element.

Declared In

SCSArticleQuery.h

  queryMethod

If the categories property is populated, this property determines the method used to select articles above, at, below, or above_or_below the specified categories.

@property (nonatomic, assign, readwrite) SCQueryMethod queryMethod

Declared In

SCSArticleQuery.h

  searchTerm

Specifies the search term to be used to query articles. This property cannot be used with articleId, sortOrder, or sortByField.

@property (nullable, nonatomic, copy, readwrite) NSString *searchTerm

Declared In

SCSArticleQuery.h

  pageSize

Specifies the number of articles to fetch.

@property (nonatomic, assign, readwrite) NSUInteger pageSize

Discussion

An org does not return more than 100 results per page.

Declared In

SCSArticleQuery.h

  sortOrder

If the categories property is populated, this property specifies the sort order to be used.

@property (nonatomic, assign, readwrite) SCArticleSortOrder sortOrder

Declared In

SCSArticleQuery.h

  sortByField

If the categories property is populated, this property specifies the article field used for sorting the article list.

@property (nonatomic, assign, readwrite) SCArticleSortByField sortByField

Declared In

SCSArticleQuery.h