CirrusSearch
Elasticsearch-powered search for MediaWiki
Loading...
Searching...
No Matches
CirrusSearch\Search\Rescore\BoostedQueriesFunction Class Reference

Simple list of weighted queries. More...

+ Inheritance diagram for CirrusSearch\Search\Rescore\BoostedQueriesFunction:
+ Collaboration diagram for CirrusSearch\Search\Rescore\BoostedQueriesFunction:

Public Member Functions

 __construct (array $boostedQueries, array $weights)
 Build a BoostedQueriesFunction using a list of queries and its associated weights.
 
 append (FunctionScore $container)
 Append functions to the function score $container.
 

Detailed Description

Simple list of weighted queries.

See also
FunctionScore::addWeightFunction()

Constructor & Destructor Documentation

◆ __construct()

CirrusSearch\Search\Rescore\BoostedQueriesFunction::__construct ( array $boostedQueries,
array $weights )

Build a BoostedQueriesFunction using a list of queries and its associated weights.

Parameters
AbstractQuery[]$boostedQueries
float[]$weights

Member Function Documentation

◆ append()

CirrusSearch\Search\Rescore\BoostedQueriesFunction::append ( FunctionScore $container)

Append functions to the function score $container.

Parameters
FunctionScore$container

Implements CirrusSearch\Search\Rescore\BoostFunctionBuilder.


The documentation for this class was generated from the following file: