mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-24 04:24:09 +00:00
Slob: One more fix for full-text search indexing
This commit is contained in:
parent
3806f7e432
commit
91bddcc25a
2
slob.cc
2
slob.cc
|
@ -1029,7 +1029,7 @@ void SlobDictionary::makeFTSIndex( QAtomicInt & isCancelled, bool firstIteration
|
||||||
ftsIdxHeader.indexRootOffset = ftsIdxInfo.rootOffset;
|
ftsIdxHeader.indexRootOffset = ftsIdxInfo.rootOffset;
|
||||||
|
|
||||||
ftsIdxHeader.signature = FtsHelpers::FtsSignature;
|
ftsIdxHeader.signature = FtsHelpers::FtsSignature;
|
||||||
ftsIdxHeader.formatVersion = FtsHelpers::CurrentFtsFormatVersion;
|
ftsIdxHeader.formatVersion = FtsHelpers::CurrentFtsFormatVersion + getFtsIndexVersion();
|
||||||
|
|
||||||
ftsIdx.rewind();
|
ftsIdx.rewind();
|
||||||
ftsIdx.writeRecords( &ftsIdxHeader, sizeof(ftsIdxHeader), 1 );
|
ftsIdx.writeRecords( &ftsIdxHeader, sizeof(ftsIdxHeader), 1 );
|
||||||
|
|
2
zim.cc
2
zim.cc
|
@ -839,7 +839,7 @@ void ZimDictionary::makeFTSIndex( QAtomicInt & isCancelled, bool firstIteration
|
||||||
ftsIdxHeader.indexRootOffset = ftsIdxInfo.rootOffset;
|
ftsIdxHeader.indexRootOffset = ftsIdxInfo.rootOffset;
|
||||||
|
|
||||||
ftsIdxHeader.signature = FtsHelpers::FtsSignature;
|
ftsIdxHeader.signature = FtsHelpers::FtsSignature;
|
||||||
ftsIdxHeader.formatVersion = FtsHelpers::CurrentFtsFormatVersion;
|
ftsIdxHeader.formatVersion = FtsHelpers::CurrentFtsFormatVersion + getFtsIndexVersion();
|
||||||
|
|
||||||
ftsIdx.rewind();
|
ftsIdx.rewind();
|
||||||
ftsIdx.writeRecords( &ftsIdxHeader, sizeof(ftsIdxHeader), 1 );
|
ftsIdx.writeRecords( &ftsIdxHeader, sizeof(ftsIdxHeader), 1 );
|
||||||
|
|
Loading…
Reference in a new issue