[Xapian-discuss] Prefixes

Fabrice Colin fabrice.colin at gmail.com
Thu Feb 8 10:27:53 GMT 2007


On 2/6/07, Olly Betts <olly at survex.com> wrote:
> On Tue, Jan 30, 2007 at 12:36:39PM +0800, Fabrice Colin wrote:
> > Yes, for a URL, quoting makes sense, but for a file name filter, not so
> > much.
> > For instance, entering something like 'file:"My CV.txt"' is not completely
> > unreasonable.
>
> Indeed (to be clear, I wasn't saying that it was ridiculous to want such
> quoting, just that the example wasn't a good one - my reply was somewhat
> terse as I was using a public computer in a hotel lobby!)
>
No worries :-)

> > Generally speaking, this would remove the need to pre-process user input or
> > post-process the Query for fields that need some kind of transformation.
>
> Indeed - I can certainly think of a few uses.  Some thought is needed
> about the API of the "TermTransformer" though.  For example, it perhaps
> needs to be able to say what characters it wants to allow in a term as
> well as potentially transforming it afterwards (currently boolean terms
> can rather arbitrarily contain any character apart from whitespace and
> ')').
>
Yes, being able to define word-splitting characters would be very useful.

> Alternatively, this could be done by subclassing of QueryParser and
> implementing a virtual function.
>
Agreed.

Fabrice



More information about the Xapian-discuss mailing list