[Xapian-discuss] Sorting set_sort_by_relevance_then_value
Andrey Kong
alpha04 at netvigator.com
Sat Dec 9 02:45:53 GMT 2006
Hi
I want to set_sort_by_relevance_then_value(0), but seems it doesnt work (PHP)
$db = new XapianWritableDatabase("fullIndex3", DB_OPEN);
$op_or = XapianQuery::OP_OR;
$terms = array("google" ,"yahoo");
$enq = new XapianEnquire($db);
$query=new XapianQuery($op_or, $terms);
$enq->set_sort_by_relevance_then_value(0);
$enq->set_query($query);
$mset = $enq->get_mset(0, 50);
am i doing wrong?
i also tried to replace with set_docid_order() , still dosnt work too..
Thx
Andrey K.
More information about the Xapian-discuss
mailing list