? at beginning of prefixed field

Olly Betts olly at survex.com
Fri Mar 13 02:16:07 GMT 2026


On Fri, Mar 13, 2026 at 12:52:06AM +0000, Olly Betts wrote:
> On Fri, Mar 13, 2026 at 12:27:10AM +0000, Olly Betts wrote:
> > Curiously I don't see the same thing as you.  For me the prefix isn't
> > applied when a wildcard is at the start (which is a bug):
> > 
> > $ xapian-quest -f default,wildcard_glob -pto:XTO 'to:b?emner'
> > Parsed Query: Query(WILDCARD SYNONYM XTOb?emner)
> > No database specified so not running the query.
> > $ xapian-quest -f default,wildcard_glob -pto:XTO 'to:?remner'
> > Parsed Query: Query(WILDCARD SYNONYM ?remner)
> > No database specified so not running the query.
> 
> What's happening here is that `xapian-quest` loads a stopword list
> which includes "to".  It is getting reparsed like for you, but then
> "to" gets ignored as a stopword.
> 
> I've got a fix, but need to add a regression test before I can push.

Now pushed.

I'll also upload a new xapian-core to Debian experimental with the
latest RC plus this patch (just waiting for it to build locally).

Cheers,
    Olly



More information about the Xapian-discuss mailing list