ShadowMarta at yahoo.de wrote:
> CREATE VIRTUAL TABLE `OCR` using fts4 (
>             `ID`    integer primary key NOT NULL,

This is not how FTS tables work.  SQLite ignores pretty much anything
except the column names; it does not matter whether you write PRIMARY
KEY or NO KEY PLEASE.  All columns get full-text indexed.

All FTS tables have the usual internal rowid as primary key; it's also
available under the name "docid".

You should drop the ID column, and in your queries use the docid instead.


Regards,
Clemens

Reply via email to