Update search-manager.cpp

This commit is contained in:
Mouse Zhang 2021-05-28 15:49:49 +08:00 committed by GitHub
parent a6d98d5085
commit 8e3fd0b1d1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 3 deletions

View File

@ -283,10 +283,9 @@ int FileContentSearch::keywordSearchContent() {
// Xapian::Query query = qp.parse_query(words); // Xapian::Query query = qp.parse_query(words);
std::vector<Xapian::Query> v; std::vector<Xapian::Query> v;
for(int i=0;i<sKeyWord.size();i++) for(int i=0; i<sKeyWord.size(); i++) {
{
v.push_back(Xapian::Query(sKeyWord.at(i).word)); v.push_back(Xapian::Query(sKeyWord.at(i).word));
qDebug()<<QString::fromStdString(sKeyWord.at(i).word); qDebug() << QString::fromStdString(sKeyWord.at(i).word);
} }
Xapian::Query query =Xapian::Query(Xapian::Query::OP_AND, v.begin(), v.end()); Xapian::Query query =Xapian::Query(Xapian::Query::OP_AND, v.begin(), v.end());