mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-24 16:54:08 +00:00
Merge branch 'staged' into dev
This commit is contained in:
commit
da85ee97c7
|
@ -644,7 +644,7 @@ void FTSResultsRequest::checkArticles( QVector< uint32_t > const & offsets,
|
||||||
void FTSResultsRequest::indexSearch( BtreeIndexing::BtreeIndex & ftsIndex,
|
void FTSResultsRequest::indexSearch( BtreeIndexing::BtreeIndex & ftsIndex,
|
||||||
sptr< ChunkedStorage::Reader > chunks,
|
sptr< ChunkedStorage::Reader > chunks,
|
||||||
QStringList & indexWords,
|
QStringList & indexWords,
|
||||||
QStringList & searchWords )
|
QStringList & searchWords, QRegExp & regexp )
|
||||||
{
|
{
|
||||||
// Find articles which contains all requested words
|
// Find articles which contains all requested words
|
||||||
|
|
||||||
|
@ -714,7 +714,7 @@ void FTSResultsRequest::indexSearch( BtreeIndexing::BtreeIndex & ftsIndex,
|
||||||
|
|
||||||
dict.sortArticlesOffsetsForFTS( offsets, isCancelled );
|
dict.sortArticlesOffsetsForFTS( offsets, isCancelled );
|
||||||
|
|
||||||
checkArticles( offsets, searchWords );
|
checkArticles( offsets, searchWords, regexp );
|
||||||
}
|
}
|
||||||
|
|
||||||
void FTSResultsRequest::combinedIndexSearch( BtreeIndexing::BtreeIndex & ftsIndex,
|
void FTSResultsRequest::combinedIndexSearch( BtreeIndexing::BtreeIndex & ftsIndex,
|
||||||
|
@ -1048,7 +1048,7 @@ void FTSResultsRequest::run()
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if( searchMode == FTS::WholeWords )
|
if( searchMode == FTS::WholeWords )
|
||||||
indexSearch( ftsIndex, chunks, indexWords, searchWords );
|
indexSearch( ftsIndex, chunks, indexWords, searchWords, searchRegExp );
|
||||||
else
|
else
|
||||||
fullIndexSearch( ftsIndex, chunks, indexWords, searchWords, searchRegExp );
|
fullIndexSearch( ftsIndex, chunks, indexWords, searchWords, searchRegExp );
|
||||||
}
|
}
|
||||||
|
|
|
@ -91,7 +91,7 @@ class FTSResultsRequest : public Dictionary::DataRequest
|
||||||
void indexSearch( BtreeIndexing::BtreeIndex & ftsIndex,
|
void indexSearch( BtreeIndexing::BtreeIndex & ftsIndex,
|
||||||
sptr< ChunkedStorage::Reader > chunks,
|
sptr< ChunkedStorage::Reader > chunks,
|
||||||
QStringList & indexWords,
|
QStringList & indexWords,
|
||||||
QStringList & searchWords );
|
QStringList & searchWords, QRegExp & regexp );
|
||||||
|
|
||||||
void combinedIndexSearch( BtreeIndexing::BtreeIndex & ftsIndex,
|
void combinedIndexSearch( BtreeIndexing::BtreeIndex & ftsIndex,
|
||||||
sptr< ChunkedStorage::Reader > chunks,
|
sptr< ChunkedStorage::Reader > chunks,
|
||||||
|
|
Loading…
Reference in a new issue