external-contenttype

External content in FTS4 SQLITE

白昼怎懂夜的黑 提交于 2019-12-07 12:05:19
问题 I have a VIEW view_for_search_unit and a FTS4 table FTS_table_search_unit . I inserted data from view_for_search_unit into the FTS table using this command: INSERT INTO FTS_table_search_unit(docId, name, description) SELECT id, name, description FROM view_for_search_unit After I check data in FTS table using this: SELECT *FROM FTS_table_search_unit it has 1000 perfect records(I use fake data). However, when I use the MATCH function in FTS: SELECT * FROM FTS_table_search_unit WHERE FTS_table

External content in FTS4 SQLITE

此生再无相见时 提交于 2019-12-06 00:40:53
I have a VIEW view_for_search_unit and a FTS4 table FTS_table_search_unit . I inserted data from view_for_search_unit into the FTS table using this command: INSERT INTO FTS_table_search_unit(docId, name, description) SELECT id, name, description FROM view_for_search_unit After I check data in FTS table using this: SELECT *FROM FTS_table_search_unit it has 1000 perfect records(I use fake data). However, when I use the MATCH function in FTS: SELECT * FROM FTS_table_search_unit WHERE FTS_table_search_unit MATCH 's*' I retrieve 1000 records but all columns in the result are NULL . What is the