Note: This release is in preview. Features described here don’t become generally available until the latest general availability date that Salesforce announces for this release. Before then, and where features are noted as beta, pilot, or developer preview, we can’t guarantee general availability within any particular time frame or at all. Make your purchase decisions only on the basis of generally available products and features.
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)