Martin Hearn
2006-Mar-10 16:05 UTC
[Xapian-discuss] queryparser with WILDCARDS in php bindings not working
Hi If If I run the php script below queryparser removes the asterisked word(s) from it's search. Am I doing something wrong? $a = new_queryparser(); $query = queryparser_parse_query($a,"harry pott*",QueryParser_FLAG_WILDCARD); Description: Xapian::Query(harry:(pos=1)) Thanks Martin
Olly Betts
2006-Mar-10 16:14 UTC
[Xapian-discuss] queryparser with WILDCARDS in php bindings not working
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