Re: ? at beginning of prefixed field

Olly Betts <[email protected]> Fri, 13 Mar 2026 02:16:07 +0000
Newsgroups gmane.comp.search.xapian.general
Message-ID <[email protected]>
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