SQLite中的BLOB数据类型是否支持全文搜索? [英] Does BLOB data types in SQLite supports FULL-text search?

查看:669
本文介绍了SQLite中的BLOB数据类型是否支持全文搜索?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一个使用PHP和SQLite的应用程序。我用BLOB数据类型创建了我的表格列。我想知道SQLite中的BLOB数据类型是否支持全文搜索?

解决方案

据我了解,文档中,指定的类型被解析,但被忽略:



数据类型名称可以为每列选择性地指定。这是纯粹的语法糖,所提供的类型名称不被FTS或SQLite核心用于任何目的。



这表明表中的所有列都是创建为TEXT或TEXT-like列。



(据我所知,您应该将符合全文搜索条件的列移动到单独的虚拟FTSx表中,通过他们的FTSDx rowid引用它们)。


I am developing an Application using PHP and SQLite. And I create a my table's column with BLOB data types. I want to know that does BLOB data types in SQLite supports FULL-text search?

解决方案

As I understand the documentation, the type specified is parsed, but ignored:

a datatype name may be optionally specified for each column. This is pure syntactic sugar, the supplied typenames are not used by FTS or the SQLite core for any purpose.

This suggests that all columns in the table are created as TEXT or TEXT-like columns.

(As I understand, you are supposed to move columns eligible for full-text search to a separate virtual FTSx table, and just reference them through their FTSDx rowid).

这篇关于SQLite中的BLOB数据类型是否支持全文搜索?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆