I thought I have found the answer to my question by this code : // $index : the index I use for this search // $subquery1 : one of my subqueries (a Zend_Search_Lucene_Search_Query_MultiTerm, and not a Zend_Search_Lucene_Search_Query_Term as I said in my question) // $hit : one hit // score is a public function of Zend_Search_Lucene_Search_Query_MultiTerm
$sub_score = $subquery1->score($hit->id, $index); ---- But it always gives 0 as a result. :( Any hint ? Jean-Michel -----Message d'origine----- De : Jean-Michel ANDRE [mailto:[email protected]] Envoyé : mercredi 13 mai 2009 16:04 À : [email protected] Objet : [fw-general] Zend_Search : How to get scores of subqueries Hi all, I have been using Zend_Search (Lucene) for a couple of days now. I have a query which is compound of subqueries, each of them being a Zend_Search_Lucene_Search_Query_Term. For a given hit, how can I get the score of each subquery ? If the API does not allow it, can somebody points me to the class where I can retrieve this score ? Thanks in advance, Jean-Michel
