mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
Merge pull request #2513 from G10h4ck/forum_deep_search_wildcard
Forum deep search support wildcard* search
This commit is contained in:
commit
941ec42502
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user