[Xapian-discuss] queryparser with WILDCARDS in php bindings not working

Olly Betts olly at survex.com
Fri Mar 10 16:14:40 GMT 2006


On Fri, Mar 10, 2006 at 04:05:20PM +0000, Martin Hearn wrote:
> $a = new_queryparser();

You need to give the QueryParser a database use for expanding wildcards,
so add this here:

queryparser_set_database($db);

> $query = queryparser_parse_query($a,"harry  
> pott*",QueryParser_FLAG_WILDCARD);
> 
> Description: Xapian::Query(harry:(pos=1))

Cheers,
    Olly



More information about the Xapian-discuss mailing list