[Xapian-discuss] omega and searching specific fields

Olly Betts olly at survex.com
Mon Mar 7 16:28:28 GMT 2005

On Mon, Mar 07, 2005 at 04:01:23PM +0000, James Aylett wrote:
> Okay. The scriptindex documentation should make that a little more
> obvious. I admit that my view isn't actually supported by the text,
> but it's not discouraged either - something at the end of the
> 'unique' description, such as:
>   The 'unique' action will not generate any terms; it is most useful in
>   combination with the 'boolean' action (with the same PREFIX).

OK, I'll add something.

> What I wasn't sure was what the queryparser would do with the term in
> that case. I /thought/ it would just split it, wheras what I want it
> to do is split to get the term, then strip the prefix off, stem the
> rest, and put the prefix back on again.

The queryparser sees something like 'artist:floyd', and knows that
fieldname 'artist' -> prefix 'XART', so it stems 'floyd' and prefixes
'XART' to the stem.

The queryparser is what adds the prefix - it doesn't need to remove


More information about the Xapian-discuss mailing list