[Xapian-discuss] Xapian, PHP bindings and spellings correction

James Aylett james-xapian at tartarus.org
Mon Mar 2 17:44:09 GMT 2009


On Mon, Mar 02, 2009 at 06:36:01PM +0100, Bruno at Badiliz wrote:

>                 $query = $qp->parse_query( $query_string ); //,
> XapianQueryParser::FLAG_SPELLING_CORRECTION);

Uncomment this, and then check $query->get_corrected_query_string().

>                 $i = $database->spellings_begin();
>                 while( ! $i->equals( $database->spellings_end())) {
>                                var_dump( $i );
>                 }

This doesn't do what you expect it to do, and is probably not helpful
to you at all. See
<http://xapian.org/docs/apidoc/html/classXapian_1_1Database.html#2f78aa0fe39a3b68e10ca865dc0f86ef>.

J

-- 
  James Aylett

  talktorex.co.uk - xapian.org - uncertaintydivision.org



More information about the Xapian-discuss mailing list