wikimedia/mediawiki-extensions-CirrusSearch

View on GitHub
includes/Query/BoostFunctionFeature.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

namespace CirrusSearch\Query;

use CirrusSearch\Parser\AST\KeywordFeatureNode;
use CirrusSearch\Query\Builder\QueryBuildingContext;
use CirrusSearch\Search\Rescore\BoostFunctionBuilder;

interface BoostFunctionFeature {

    /**
     * @param KeywordFeatureNode $node
     * @param QueryBuildingContext $context
     * @return BoostFunctionBuilder|null
     */
    public function getBoostFunctionBuilder( KeywordFeatureNode $node, QueryBuildingContext $context );
}