Full-Text Query Specs

To perform a full-text query, you create a SmartStore “match” query spec using your platform’s match query method. For the matchKey argument, you provide a full-text search query.

Use the following methods to create full-text query specs.

iOS:

1+ (SFQuerySpec*) newMatchQuerySpec:(NSString*)soupName
2                          withPath:(NSString*)path
3                      withMatchKey:(NSString*)matchKey
4                     withOrderPath:(NSString*)orderPath
5                         withOrder:(SFSoupQuerySortOrder)order
6                      withPageSize:(NSUInteger)pageSize;
7
8+ (SFQuerySpec*) newMatchQuerySpec:(NSString*)soupName
9                   withSelectPaths:(NSArray*)selectPaths
10                          withPath:(NSString*)path
11                      withMatchKey:(NSString*)matchKey
12                     withOrderPath:(NSString*)orderPath
13                         withOrder:(SFSoupQuerySortOrder)order
14                      withPageSize:(NSUInteger)pageSize;

Android:

1public static QuerySpec buildMatchQuerySpec(
2    String soupName, String path, String exactMatchKey,
3    String orderPath, Order order, int pageSize)
4
5public static QuerySpec buildMatchQuerySpec(
6    String soupName, String[] selectPaths, String path,
7    String matchKey, String orderPath, Order order,
8    int pageSize)

JavaScript:

1smartstore.buildMatchQuerySpec(
2    path, matchKey, order, pageSize, orderPath, selectPaths)

We've Moved

Welcome to the new home of the Mobile SDK Developer Guide! For now, the Japanese guide can be found in PDF form.