wcdb icon indicating copy to clipboard operation
wcdb copied to clipboard

Objc 下全文查找 snippet() 返回的内容重叠

Open xmkevin opened this issue 7 years ago • 5 comments

The language of WCDB

Objective-C

The version of WCDB

v1.0.5

The platform of WCDB

iOS

The installation of WCDB

Cocoapods

What's the issue?

数据库字段内容是 "我今天很高兴", 使用 snippet() 返回的内容为 @"我今天很高兴我今天很高兴今天很高兴天很高兴很高兴高兴"

xmkevin avatar Jan 08 '18 03:01 xmkevin

我也遇到了同样的问题 @xmkevin 请问@RingoD 这个bug有解决的吗?或者解决的思路是怎样的?

zhanghesheng avatar Jul 31 '18 03:07 zhanghesheng

Yes, it's already fixed and it will be released in next version. The test is here: https://github.com/Tencent/wcdb/blob/feature/repair_2.0/objc/testcase/test/fts/DatabaseTests%2BFTS.mm

RingoD avatar Jul 31 '18 04:07 RingoD

2018-08-03 11 26 06 2018-08-03 11 26 14

the test results is still repeated @RingoD

zhanghesheng avatar Aug 03 '18 03:08 zhanghesheng

@zhanghesheng Got it. I think it can be fixed using FTS5. We will upgrade the FTS recently.

RingoD avatar Aug 03 '18 05:08 RingoD

@zhanghesheng Got it. I think it can be fixed using FTS5. We will upgrade the FTS recently.

the newest version, upgrade the FTS5?

include11 avatar Dec 12 '19 06:12 include11

Please try the latest version.

Qiuwen-chen avatar Mar 08 '24 05:03 Qiuwen-chen