fn sum_scores<'a, T>(&self, curr_pl_iterators: T, doc_id: u32) -> f32
    where T: Iterator<Item = &'a Reverse<PlIterator<'a>>>
    {
        let mut new_score = 0.0;
        for pl_it in curr_pl_iterators {
            let score = pl_it.0.td.unwrap().score;
            new_score += if score != 0.0 {
                score
            } else {
                self.calc_doc_bm25_score(pl_it.0.td.unwrap(), doc_id, pl_it.0.pl)
            };
        }
        new_score
    }
// ---------------------------------------
// Calculate the new score of the disjunctive expression now (before query.rs)
// for preserving the **original** ranking of documents once propagated to the top.
Calculate the new score of the disjunctive expression now (before query.rs)
for preserving the **original** ranking of documents once propagated to the top.
Calculate the new score of the disjunctive expression now ( before query . rs ) for preserving the ** original ** ranking of documents once propagated to the top .
fn sum_scores<'a, T>(&self, curr_pl_iterators: T, doc_id: u32) -> f32
    where T: Iterator<Item = &'a Reverse<PlIterator<'a>>>
    {
        let mut new_score = 0.0;
        for pl_it in curr_pl_iterators {
            let score = pl_it.0.td.unwrap().score;
            new_score += if score != 0.0 {
                score
            } else {
                self.calc_doc_bm25_score(pl_it.0.td.unwrap(), doc_id, pl_it.0.pl)
            };
        }
        new_score
    }
fn sum_scores < ' a , T > ( & self , curr_pl_iterators : T , doc_id : u32 ) -> f32 where T : Iterator < Item = & ' a Reverse < PlIterator < ' a > > > { let mut new_score = 0.0 ; for pl_it in curr_pl_iterators { let score = pl_it . 0 . td . unwrap ( ) . score ; new_score += if score != 0.0 { score } else { self . calc_doc_bm25_score ( pl_it . 0 . td . unwrap ( ) , doc_id , pl_it . 0 . pl ) } ; } new_score }
Calculate the new score of the disjunctive expression now (before query.rs)
for preserving the **original** ranking of documents once propagated to the top.
Calculate the new score of the disjunctive expression now ( before query . rs ) for preserving the ** original ** ranking of documents once propagated to the top .
&self
curr_pl_iterators
T
doc_id
u32
&self
curr_pl_iterators
T
doc_id
u32