FullTextSearch
@objc open class FullTextSearch: NSObject
Used to create full text search database views.
example:
PredixMobilityConfiguration.appendDataViewDefinition("views/searchtext", version: "1") { (properties: [String : Any], emit: (Any, Any?) -> Void) -> Void in if let body = properties["body"] as? String { emit(FullTextSearch.createKey(body), nil) } }
-
Defines the key to use for the full text search, should be a field name in the document.
Declaration
Swift
public static let createKey = CBLTextKey