简体   繁体   English

SQLite FTS4区分大小写

[英]Sqlite fts4 case sensitive

Very new to Sqlite3 and I finally have an FTS4 search working, but am stumped how to code for Case-Sensitive. 对Sqlite3来说是个新手,我终于可以使用FTS4搜索了,但是却为如何区分大小写而感到困惑。 I have a Database with tblMain that has two BLOB_TEXT columns, advOne and advTwo 我有一个带有tblMain的数据库,其中有两个BLOB_TEXT列advOneadvTwo

CREATE VIRTUAL TABLE tFind USING FTS4(aOne, aTwo);
// populate tFind here
SELECT FROM tFind WHERE aOne MATCH 'Fine';

This works fast and returns records with feeling fine and a Fine was levied 这样可以快速运行并返回feeling fine记录, feeling fine a Fine was levied

I need to find the records with only the case sensitive Fine in them. 我需要找到仅包含区分大小写的Fine的记录。

How do I word the line? 我该如何打线?

I am using Lazarus and Ubuntu if that makes any difference. 如果有任何区别,我正在使用Lazarus和Ubuntu。

The default tokenizer ignores case. 默认的分词器忽略大小写。

You'd have to install your own custom tokenizer . 您必须安装自己的自定义令牌生成器

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM