On Fri, Dec 30 2016, Dirk-Jan C. Binnema wrote:
>> Is there a way to calculate how much space we would waste in the xapian
>> DB excluding message bodies? I would kill^H^H^H^Hcode for it.
>
> It's not setting a flag or something, it would require a fairly gross
> hack to trick Xapian to support it; we'd need to manipulate database
> insertion, as well as massage the queries.
Yes, hacky, but I did use xapian this way in the past. As I built
the queries internally, there was no need to parse anything though.
> From earlier experiences, that is all rather fragile. With a custom
> query parser, it might become a bit easier, so once that is in, we could
> take another look at this.
By the way, is there a way to supply a xapian expression as a single
argument to "mu find"?
When I call find from another program, I actually have to tokenize the
string into arguments, which is suboptimal. It would be nicer if find
itself would just concat the arguments internally and re-tokenize the
string anyway, so that there's no actual difference.
Heh, I was aware of this, unfortunately. But contrarily to what's
written there, prefix wildcards would be useful also in many places
(german comes to mind). I also use xapian for indexing local
documentation (via "recoll") and I've been bitten countless times with
technical terms and function names.
I wouldn't like, at least technically, to add exceptions to specific
cases such as the list-id.
But re-implementing a custom parser is also annoying.
It's a shame really, as I like the versatility of the query syntax of
xapian itself. I don't think there are other engines with comparable
features out there [?].