[Xapian-discuss] PHP Binding and dbi2omega questions

James Aylett james-xapian at tartarus.org
Fri Feb 9 16:22:59 GMT 2007


On Fri, Feb 09, 2007 at 04:07:06PM +0000, Ross Lawley wrote:

> The echo $doc->get_data() output is as follows:
> 
> content=blah blah blah id=1 title=My Title
> 
> Is that data accessible via xapian bindings directly i.e. $data->content or
> $data->title?  Or is my scriptindex wrong or is it my approach that is
> flawed?

No; the convention (used by omega via omindex and scriptindex) of
name=value pairs isn't required by Xapian itself, so isn't supported
directly in the bindings. It is reasonably easy to write helper
functions, although with PHP it's not terribly convenient to make it
pretty.

J

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



More information about the Xapian-discuss mailing list