PHP Class Elastica\Query\Indices

Inheritance: extends AbstractQuery
Datei anzeigen Open project: ruflin/elastica Class Usage Examples

Public Methods

Method Description
__construct ( AbstractQuery $query, array $indices )
addIndex ( string | Index $index ) Adds one more index on which this query should be applied.
setIndices ( array $indices ) Set the indices on which this query should be applied.
setNoMatchQuery ( AbstractQuery $query ) Set the query to be applied to docs in indices which do not match those specified in the "indices" parameter.
setQuery ( AbstractQuery $query ) Set the query to be applied to docs in the specified indices.

Method Details

__construct() public method

public __construct ( AbstractQuery $query, array $indices )
$query AbstractQuery Query which will be applied to docs in the specified indices
$indices array

addIndex() public method

Adds one more index on which this query should be applied.
public addIndex ( string | Index $index )
$index string | Elastica\Index

setIndices() public method

Set the indices on which this query should be applied.
public setIndices ( array $indices )
$indices array

setNoMatchQuery() public method

Set the query to be applied to docs in indices which do not match those specified in the "indices" parameter.
public setNoMatchQuery ( AbstractQuery $query )
$query AbstractQuery

setQuery() public method

Set the query to be applied to docs in the specified indices.
public setQuery ( AbstractQuery $query )
$query AbstractQuery