\Elastica\MultiSearch

Elastica multi search.

Summary

Methods
Properties
Constants
__construct()
getClient()
setClient()
clearSearches()
addSearch()
addSearches()
setSearches()
getSearches()
setSearchType()
search()
No public properties found
No constants found
_getData()
_getSearchData()
_getSearchDataHeader()
$_searches
$_options
$_client
N/A
No private methods found
No private properties found
N/A

Properties

$_searches

$_searches : array|array<mixed,\Elastica\Search>

Type

array|array<mixed,\Elastica\Search>

$_options

$_options : array

Type

array

Methods

__construct()

__construct(\Elastica\Client  $client) 

Constructs search object.

Parameters

\Elastica\Client $client

Client object

setClient()

setClient(\Elastica\Client  $client) : $this

Parameters

\Elastica\Client $client

Returns

$this

clearSearches()

clearSearches() : $this

Returns

$this

addSearch()

addSearch(\Elastica\Search  $search, string  $key = null) : $this

Parameters

\Elastica\Search $search
string $key

Optional key

Returns

$this

addSearches()

addSearches(array|array<mixed,\Elastica\Search>  $searches) : $this

Parameters

array|array<mixed,\Elastica\Search> $searches

Returns

$this

setSearches()

setSearches(array|array<mixed,\Elastica\Search>  $searches) : $this

Parameters

array|array<mixed,\Elastica\Search> $searches

Returns

$this

getSearches()

getSearches() : array|array<mixed,\Elastica\Search>

Returns

array|array<mixed,\Elastica\Search>

setSearchType()

setSearchType(string  $searchType) : $this

Parameters

string $searchType

Returns

$this

_getData()

_getData() : string

Returns

string

_getSearchData()

_getSearchData(\Elastica\Search  $search) : string

Parameters

\Elastica\Search $search

Returns

string

_getSearchDataHeader()

_getSearchDataHeader(\Elastica\Search  $search) : array

Parameters

\Elastica\Search $search

Returns

array