[Xapian-discuss] Search using Terms and Prefix

James Aylett james-xapian at tartarus.org
Wed Nov 14 15:23:12 GMT 2007


On Wed, Nov 14, 2007 at 10:17:54AM -0500, Aleph Thomas wrote:

> I am consulting the DB made by omega from PHP, then I need recovery all the
> files that are pdf and talk about omega for example, my query is:
> 
> $query_string = "mime:pdf/ AND omega";
> ...
> $qp->add_prefix("mime", "T");
> ...
> 
> Then I not receive any results, and have files application/pdf indexed,

You won't. The term generated is (or should be) Tapplication/pdf - try
adding it as a boolean term. add_boolean_prefix not add_prefix? Sorry,
I know what I mean, but I'm too rushed right now to figure out if this
is the right approach. But your problem is the construction of the term.

J

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



More information about the Xapian-discuss mailing list