Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
Comment: | Update the FTS3 documentation to make it clearer that external content tables must be in the same database as the FTS virtual table. |
---|---|
Downloads: | Tarball | ZIP archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA1: |
35441559aa477c9f68d06127ed1c230e |
User & Date: | drh 2013-04-25 11:35:55.195 |
Context
2013-04-26
| ||
14:38 | Add documentation for the fts3tokenize table. (check-in: a6e655aa62 user: drh tags: trunk) | |
2013-04-25
| ||
11:35 | Update the FTS3 documentation to make it clearer that external content tables must be in the same database as the FTS virtual table. (check-in: 35441559aa user: drh tags: trunk) | |
2013-04-24
| ||
22:09 | If the website keyword search fails, try again after lowercasing the input text. This avoids problems when users enter "OR" and "NEAR" as search terms rather than operators. (check-in: 78cbbe549b user: drh tags: trunk) | |
Changes
Changes to pages/fts3.in.
︙ | ︙ | |||
1560 1561 1562 1563 1564 1565 1566 | <codeblock> CREATE TABLE t2(id INTEGER PRIMARY KEY, a, b, c); CREATE VIRTUAL TABLE t3 USING fts4(content="t2", a, c); </codeblock> <p> Assuming the nominated table does exist, then its columns must be the same | | > > > > | | 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 | <codeblock> CREATE TABLE t2(id INTEGER PRIMARY KEY, a, b, c); CREATE VIRTUAL TABLE t3 USING fts4(content="t2", a, c); </codeblock> <p> Assuming the nominated table does exist, then its columns must be the same as or a superset of those defined for the FTS table. The external table must also be in the same database file as the FTS table. In other words, The external table cannot be in a different database file connected using [ATTACH] nor may one of the FTS table and the external content be in the TEMP database when the other is in a persistent database file such as MAIN. <p> When a users query on the FTS table requires a column value other than docid, FTS attempts to read the requested value from the corresponding column of the row in the content table with a rowid value equal to the current FTS docid. Or, if such a row cannot be found in the content table, a NULL value is used instead. For example: <codeblock> CREATE TABLE t2(id INTEGER PRIMARY KEY, a, b, c, d); CREATE VIRTUAL TABLE t3 USING fts4(content="t2", b, c); |
︙ | ︙ |