[Xapian-discuss] omega and searching specific fields

James Aylett james-xapian at tartarus.org
Mon Mar 7 16:01:23 GMT 2005


On Mon, Mar 07, 2005 at 03:44:03PM +0000, Olly Betts wrote:

> Hmm, I should check if there's a thread before replying...

:)

> On Mon, Mar 07, 2005 at 10:43:01AM +0000, James Aylett wrote:
> > I'm pretty sure you don't want or need boolean=Q and unique=Q on the
> > same line. unique=Q should be enough.
> 
> That's wrong - you do need both.

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).

> > It's possible there's an easy solution to this by choosing the prefix
> > correctly;
> 
> Yes - the prefix needs to be all uppercase.  And either a single letter,
> or to start with X.  The document I wrote recently discusses this.

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.

At least, I think that's what I'd want :)

J

-- 
/--------------------------------------------------------------------------\
  James Aylett                                                  xapian.org
  james at tartarus.org                               uncertaintydivision.org



More information about the Xapian-discuss mailing list