private function getWeightedRewrites($queryRewrites, $divider, $baseWeight = 1)
    {
        $mapper = function ($substitutions) use ($baseWeight, $divider) {
            return $baseWeight / ($substitutions * $divider);
        };

        return array_map($mapper, $queryRewrites);
    }
private function getWeightedRewrites($queryRewrites, $divider, $baseWeight = 1)
    {
        $mapper = function ($substitutions) use ($baseWeight, $divider) {
            return $baseWeight / ($substitutions * $divider);
        };

        return array_map($mapper, $queryRewrites);
    }
private function getWeightedRewrites ( $ queryRewrites , $ divider , $ baseWeight = 1 ) { $ mapper = function ( $ substitutions ) use ( $ baseWeight , $ divider ) { return $ baseWeight / ( $ substitutions * $ divider ) ; } ; return array_map ( $ mapper , $ queryRewrites ) ; }
Convert number of substitution into search queries boost.

@param array $queryRewrites Array of query rewrites.
@param int   $divider       Score divider.
@param int   $baseWeight    Original score.

@return array
Convert number of substitution into search queries boost .