mirror of
https://github.com/groue/GRDB.swift
synced 2026-11-28 04:24:20 +00:00
FTS5 documentation
This commit is contained in:
1 parent
2bf1de5a43
commit
20317e5830
1 file changed
+23
-23
@@ -3025,29 +3025,29 @@ The choice of the engine needed by your application depends:
|
||||
|
||||
- On the kind of full-text features needed by the application:
|
||||
|
||||
| Full-Text Needs | FTS3 | FTS4 | FTS5 |
|
||||
| ----------------------------------------------------------------------------- | ---- | ---- | ---- |
|
||||
| :question: Queries | | | |
|
||||
| 1: **Words searches** (documents that contain "database") | X | X | X |
|
||||
| 2: **Prefix searches** (documents that contain a word starting with "data") | X | X | X |
|
||||
| 3: **Phrases searches** (documents that contain the phrase "SQLite database") | X | X | X |
|
||||
| 4: **Boolean searches** (documents that contain "SQLite" or "database") | X | X | X |
|
||||
| 5: **Proximity search** (documents that contain "SQLite" near "database") | X | X | X |
|
||||
| :scissors: Tokenization | | | |
|
||||
| 6: **Ascii case insensitivity** (have "DATABASE" match "database") | X | X | X |
|
||||
| 7: **Unicode case insensitivity** (have "ÉLÉGANCE" match "élégance") | X | X | X |
|
||||
| 8: **Diacritics insensitivity** (have "elegance" match "élégance") | X | X | X |
|
||||
| 9: **Stemming for English text** (have "frustration" match "frustrated") | X | X | X |
|
||||
| 9 and 6 | X | X | X |
|
||||
| 9 and 7 | | | X |
|
||||
| 9 and 8 | | | X |
|
||||
| 13: **Spell checking** (have "alamaba" match "alabama") | | ¹ | ? |
|
||||
| 11: **Synonyms** (have "1st" match "first") | | | |
|
||||
| 12: **Pinyin and Romaji** (have "romaji" match "ローマ字") | | | |
|
||||
| 10: **Stop words** (don't index, and don't match words like "and" and "the") | | | |
|
||||
| :bowtie: Other | | | |
|
||||
| 14: **Ranking** (sort results by relevance) | ¹ | ¹ | X |
|
||||
| 15: **Snippets** (display a few words around a match) | X | X | X |
|
||||
| Full-Text Needs | FTS3 | FTS4 | FTS5 |
|
||||
| -------------------------------------------------------------------------- | ---- | ---- | ---- |
|
||||
| :question: **Queries** | | | |
|
||||
| **Words searches** (documents that contain "database") | X | X | X |
|
||||
| **Prefix searches** (documents that contain a word starting with "data") | X | X | X |
|
||||
| **Phrases searches** (documents that contain the phrase "SQLite database") | X | X | X |
|
||||
| **Boolean searches** (documents that contain "SQLite" or "database") | X | X | X |
|
||||
| **Proximity search** (documents that contain "SQLite" near "database") | X | X | X |
|
||||
| :scissors: **Tokenization** | | | |
|
||||
| **Ascii case insensitivity** (have "DATABASE" match "database") | X | X | X |
|
||||
| **Unicode case insensitivity** (have "ÉLÉGANCE" match "élégance") | X | X | X |
|
||||
| **Diacritics insensitivity** (have "elegance" match "élégance") | X | X | X |
|
||||
| **Stemming for English text** (have "frustration" match "frustrated") | X | X | X |
|
||||
| Stemming and Ascii case insensitivity | X | X | X |
|
||||
| Stemming and Unicode case insensitivity | | | X |
|
||||
| Stemming and Diacritics insensitivity | | | X |
|
||||
| **Spell checking** (have "alamaba" match "alabama") | | ¹ | ? |
|
||||
| **Synonyms** (have "1st" match "first") | | | |
|
||||
| **Pinyin and Romaji** (have "romaji" match "ローマ字") | | | |
|
||||
| **Stop words** (don't index, and don't match words like "and" and "the") | | | |
|
||||
| :bowtie: **Other Features** | | | |
|
||||
| **Ranking** (sort results by relevance) | ¹ | ¹ | X |
|
||||
| **Snippets** (display a few words around a match) | X | X | X |
|
||||
|
||||
¹ Requires extra setup (but at least SQLite documentation talks about it)
|
||||
|
||||
|
||||
Reference in new issue
Block a user