Documentation Source Text

Check-in [807c985334]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Fix an error in the fts5 documentation for the NEAR operator.
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 807c985334311887cc677583238e8fe4d67d872b
User & Date: dan 2015-05-01 19:49:37
Context
2015-05-02
09:40
Update fts3 documentation with docs for the matchinfo 'y' flag. check-in: e6b9763fab user: dan tags: trunk
2015-05-01
19:49
Fix an error in the fts5 documentation for the NEAR operator. check-in: 807c985334 user: dan tags: trunk
11:27
Update the microsoft entry on the famous-users page. check-in: 5addc70516 user: drh tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to pages/fts5.in.

225
226
227
228
229
230
231
232
233
234
235
236
237
238
239

<p>If no <i>N</i> parameter is supplied, it defaults to 10. A NEAR group
matches a document if the document contains at least one clump of tokens that: 

<ol> 
  <li> contains at least one instance of each phrase, and 
  <li> for which the number of tokens between the end of the first phrase 
       and the beginning of the last phrase in the clump is less than <i>N</i>.
</ol>

<p>For example:

<codeblock>
  CREATE VIRTUAL TABLE f USING fts5(x);
  INSERT INTO f(rowid, x) VALUES(1, 'A B C D x x x E F x');







|







225
226
227
228
229
230
231
232
233
234
235
236
237
238
239

<p>If no <i>N</i> parameter is supplied, it defaults to 10. A NEAR group
matches a document if the document contains at least one clump of tokens that: 

<ol> 
  <li> contains at least one instance of each phrase, and 
  <li> for which the number of tokens between the end of the first phrase 
       and the beginning of the last phrase in the clump is less than or equal to <i>N</i>.
</ol>

<p>For example:

<codeblock>
  CREATE VIRTUAL TABLE f USING fts5(x);
  INSERT INTO f(rowid, x) VALUES(1, 'A B C D x x x E F x');