perform tilde expansion for dir: clauses. Closes issue #177

This commit is contained in:
Jean-Francois Dockes
2014-03-10 10:14:04 +01:00
parent 5676f020ca
commit 303321e568
3 changed files with 26 additions and 11 deletions
+2
View File
@@ -1048,6 +1048,8 @@ bool SearchDataClausePath::toNativeQuery(Rcl::Db &db, void *p)
if (m_text[0] == '/')
orqueries.push_back(Xapian::Query(wrap_prefix(pathelt_prefix)));
else
m_text = path_tildexpand(m_text);
vector<string> vpath;
stringToTokens(m_text, vpath, "/");