Merge pull request #2513 from G10h4ck/forum_deep_search_wildcard

Forum deep search support wildcard* search
This commit is contained in:
G10h4ck 2021-11-26 17:23:09 +01:00 committed by GitHub
commit 941ec42502
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -46,7 +46,9 @@ std::error_condition DeepForumsIndex::search(
// End of prefix configuration. // End of prefix configuration.
// And parse the query. // And parse the query.
Xapian::Query query = queryparser.parse_query(queryStr); using XQP = Xapian::QueryParser;
Xapian::Query query = queryparser.parse_query(
queryStr, XQP::FLAG_WILDCARD | XQP::FLAG_DEFAULT );
// Use an Enquire object on the database to run the query. // Use an Enquire object on the database to run the query.
Xapian::Enquire enquire(db); Xapian::Enquire enquire(db);