Full-Text Search Index Specs
To use full-text search, you register your soup with one or more full-text-indexed
paths. SmartStore provides a
full_text index spec for designating index fields.
When you define a path with a full-text index, you can also use that path for non-full-text queries. These other types of queries—”all”, “exact”, “:like”, “range”, and “smart” queries—interpret full-text indexed fields as string indexed fields.
The following examples show how to instantiate a full-text index spec.
Example
iOS:
1[[SFSoupIndex alloc]
2 initWithDictionary:@{kSoupIndexPath: @"some_path",
3 kSoupIndexType: kSoupIndexTypeFullText}]Android:
1new IndexSpec("some_path", Type.full_text)JavaScript:
1new navigator.smartstore.SoupIndexSpec("some_path", "full_text")