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@tartarus.org uncertaintydivision.org