Re: "search --path=directory/" is lame(-ish)

Subject:Re: "search --path=directory/" is lame(-ish)

Date:Fri, 31 Oct 2014 08:36:52 +0100

To:David Edmondson ,


From:David Bremner

David Edmondson <> writes:

> Could we always prune a trailing slash from the path: component of a
> query before using it?

As I understand it, this is complicated by the fact that we pass the
whole string to Xapian to be parsed as a query, so we don't really know
where the path: terms are. We could in principle preprocess the string
(more) but that seems to be pretty fragile, and we'd have to minimally
deal with quoting of e.g. paths with spaces in them.