[Xapian-discuss] QueryParser (I think) question

James Aylett james-xapian at tartarus.org
Tue May 22 15:00:41 BST 2007


On Tue, May 22, 2007 at 02:34:42PM +0200, Andreas Marienborg wrote:

> I would like to search in items that are either from source 1 or  
> source 2 for instance,
> so I tried the following: "source:1 OR source:2", but that results in  
> the following query after
> parsing:
> 
>  Xapian::Query((or:(pos=1) FILTER (S1 AND S2)))
> 
> is that expected? am I trying to do something that I cannot do? or am  
> I just doing something wrong?

It's not what I'd expect. The query parser came out of omega, whose
documentation states that boolean terms are combined by OR for similar
prefixes, then AND for the different prefixes to create the overall
FILTER clause. Looks like this documentation is no longer correct :-/

J

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



More information about the Xapian-discuss mailing list