FTS documentation

This commit is contained in:
Gwendal Roué committed 2016-10-07 08:35:43 +02:00
1 parent 119965a7fb
commit ec34261674
1 file changed
+2 -2
+2 -2
View File
@@ -3229,7 +3229,7 @@ let pattern = try FTS3Pattern(rawPattern: "sqlite AND database")
let pattern = try FTS3Pattern(rawPattern: "AND")
```
The three other initializers don't throw. They build a valid pattern from any string, including strings provided by users of your application. They let you find documents that match all given words, any given word, or a full phrase, depending on the needs of your application:
The three other initializers don't throw. They build a valid pattern from any string, **including strings provided by users of your application**. They let you find documents that match all given words, any given word, or a full phrase, depending on the needs of your application:
```swift
let query = "SQLite database"
@@ -3421,7 +3421,7 @@ try db.fts5Pattern(rawPattern: "AND", forTable: "books")
try db.fts5Pattern(rawPattern: "missing: sqlite", forTable: "books")
```
The FTS5Pattern initializers don't throw. They build a valid pattern from any string, including strings provided by users of your application. They let you find documents that match all given words, any given word, or a full phrase, depending on the needs of your application:
The FTS5Pattern initializers don't throw. They build a valid pattern from any string, **including strings provided by users of your application**. They let you find documents that match all given words, any given word, or a full phrase, depending on the needs of your application:
```swift
let query = "SQLite database"