PHP Class Elastica\Rescore\Query

Inheritance: extends Elastica\Rescore\AbstractRescore
Datei anzeigen Open project: ruflin/elastica Class Usage Examples

Public Methods

Method Description
__construct ( string | Elastica\Query\AbstractQuery $query = null ) Constructor.
setQueryWeight ( float $weight ) Sets query_weight.
setRescoreQuery ( string | Query | Elastica\Query\AbstractQuery $rescoreQuery ) Sets rescoreQuery object.
setRescoreQueryWeight ( float $weight ) Sets rescore_query_weight.
toArray ( ) : array Override default implementation so params are in the format expected by elasticsearch.

Method Details

__construct() public method

Constructor.
public __construct ( string | Elastica\Query\AbstractQuery $query = null )
$query string | Elastica\Query\AbstractQuery

setQueryWeight() public method

Sets query_weight.
public setQueryWeight ( float $weight )
$weight float

setRescoreQuery() public method

Sets rescoreQuery object.
public setRescoreQuery ( string | Query | Elastica\Query\AbstractQuery $rescoreQuery )
$rescoreQuery string | Elastica\Query | Elastica\Query\AbstractQuery

setRescoreQueryWeight() public method

Sets rescore_query_weight.
public setRescoreQueryWeight ( float $weight )
$weight float

toArray() public method

Override default implementation so params are in the format expected by elasticsearch.
public toArray ( ) : array
return array Rescore array