[Xapian-discuss] Search for negation

Olly Betts olly at survex.com
Sun Feb 4 07:02:26 GMT 2007


On Tue, Jan 30, 2007 at 03:31:50AM -0800, Rafael SDM Sierra wrote:
> On 1/29/07, Olly Betts <olly at survex.com> wrote:
> >On 27/01/07, M.J. van der Veen <forward at mvanderveen.nl> wrote:
> >> Is it possible to search a document that does not have a specific
> >> boolean?
> >>
> >> For instance: NOT XA1
> >
> >This is supported by SVN HEAD, but not by any released version.
>
> Currently only the AND NOT operator is avaible right? (linux NOT windows)

I'm not quite sure what you're asking, so I'll try to be clearer!

"AND NOT" and "NOT" are synonyms (at least as of Xapian 0.9.3,
previously only "NOT" was understood).

Currently (i.e. in 0.9.9), this works:

    linux NOT windows

But this doesn't:

    NOT windows

In SVN HEAD, the latter also works (provided you enable it with the
appropriate flag).

Cheers,
    Olly



More information about the Xapian-discuss mailing list