Displaying 2 results from an estimated 2 matches for "queryparser_parse_query".
2009 Jul 08
1
php error parse_query
I'm having trouble getting a search via php working, I get the following
error:
*Fatal error*: No matching function for overloaded
'QueryParser_parse_query' in */usr/local/share/php5/xapian.php* on line
*1409
*The error occurs at this code
$query = $qp->parse_query( $query_string ,
XapianQueryParser::FLAG_PHRASE
| XapianQueryParser::FLAG_BOOLEAN
| XapianQueryParser::FLAG_LOVEHATE...
2006 Mar 29
1
Using boolean terms in PHP bindings
..._parser, $stemmer);
queryparser_set_stemming_strategy ($query_parser, 1);
//set the database
queryparser_set_database ($query_parser, $db);
//set prefix
queryparser_add_boolean_prefix($query_parser, "XC", "1");
//parse and create the query
$query = queryparser_parse_query ($query_parser, $_REQUEST["search"]);
$enq = new_enquire ($db);
enquire_set_query ($enq, $query);
$result_set = enquire_get_mset ($enq, 0, 10);
$item = mset_begin ($result_set);