CirrusSearch
Elasticsearch-powered search for MediaWiki
Loading...
Searching...
No Matches
CirrusSearch\Elastica\LtrQuery Class Reference
+ Inheritance diagram for CirrusSearch\Elastica\LtrQuery:
+ Collaboration diagram for CirrusSearch\Elastica\LtrQuery:

Public Member Functions

 __construct ( $model, array $params)
 
 setModel ( $model)
 The stored model to use.
 
 setStore ( $store)
 The name of the feature store to find the model in.
 
 addLtrParam ( $key, $value)
 Add a parameter used for templated features.
 
 setLtrParams (array $params)
 Set all parameters used for templated features.
 

Protected Member Functions

 _getBaseName ()
 

Constructor & Destructor Documentation

◆ __construct()

CirrusSearch\Elastica\LtrQuery::__construct ( $model,
array $params )
Parameters
string$modelThe stored model to use
string[]$paramsmap of string -> string containing templating parameters for ltr features.

Member Function Documentation

◆ _getBaseName()

CirrusSearch\Elastica\LtrQuery::_getBaseName ( )
protected
Returns
string

◆ addLtrParam()

CirrusSearch\Elastica\LtrQuery::addLtrParam ( $key,
$value )

Add a parameter used for templated features.

Parameters
string$key
string$value
Returns
self

◆ setLtrParams()

CirrusSearch\Elastica\LtrQuery::setLtrParams ( array $params)

Set all parameters used for templated features.

Parameters
string[]$paramsmap of string -> string containing templating parameters for ltr features.
Returns
self

◆ setModel()

CirrusSearch\Elastica\LtrQuery::setModel ( $model)

The stored model to use.

Parameters
string$model
Returns
self

◆ setStore()

CirrusSearch\Elastica\LtrQuery::setStore ( $store)

The name of the feature store to find the model in.

Parameters
string$store
Returns
self

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