[Xapian-discuss] Multiple filters with PHP? How to?

athlon athlonf athlonkmf at yahoo.com
Thu Jan 10 09:36:02 GMT 2008


Ah, a re-index fixed the filterthing. I guess there was something wrong with my testdata. 
Now trying to figure out range-filtering.

I guess I should write an article about this quest...


----- Original Message ----
From: James Aylett <james-xapian at tartarus.org>
To: xapian-discuss at lists.xapian.org
Sent: Tuesday, January 8, 2008 10:46:06 PM
Subject: Re: [Xapian-discuss] Multiple filters with PHP? How to?


On Tue, Jan 08, 2008 at 01:25:15PM -0800, athlon athlonf wrote:

> Parsed query is: Xapian::Query((Zandi:(pos=1) FILTER G68))
> Parsed query is: Xapian::Query((Zandi:(pos=1) FILTER XAUTHORID5))

What about Xapian::Query(G68 AND XAUTHORID5)?

> author = "the author" 
> $qarray[] = new XapianQuery('Athe author');
> Won't give anything

Umm, you probably want (Athe AND Aauthor)?

> As well: startdate = ">01-01-2008" 

To look at date range selects, see
<http://www.xapian.org/docs/valueranges.html>.

J

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

_______________________________________________
Xapian-discuss mailing list
Xapian-discuss at lists.xapian.org
http://lists.xapian.org/mailman/listinfo/xapian-discuss





      ____________________________________________________________________________________
Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ 




More information about the Xapian-discuss mailing list