Toggle navigation
Hot Examples
EN
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Search
Home
Elastica
Type
AbstractType
count
Elastica\Type\AbstractType::count PHP Method
AbstractType Class Documentation
Show file
Open project: ruflin/elastica
count()
public
method
Count docs in the type based on query.
See also:
Elastica\SearchableInterface::count
public
count
(
string
|
array
|
Query
$query
= '' ) :
integer
$query
string
|
array
|
Elastica\Query
Array with all query data inside or a Elastica\Query object
return
integer
number of documents matching the query
public function count($query = '') { return $this->getType()->count($query); }
AbstractType
__construct
convertDate
count
create
createSearch
getIndex
getType
search