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

Olly Betts olly at survex.com
Tue Mar 3 03:56:49 GMT 2009


On Mon, Mar 02, 2009 at 05:44:09PM +0000, James Aylett wrote:
> 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().

But note that you'll also need to OR in the default flags (with the |
operator) if you want them.

Cheers,
    Olly



More information about the Xapian-discuss mailing list