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
Sokil
Mongo
Cursor
hint
Sokil\Mongo\Cursor::hint PHP Method
Cursor Class Documentation
Show file
Open project: sokil/php-mongo
hint()
public
method
Specify index to use
See link:
http://docs.mongodb.org/manual/reference/operator/meta/hint/
public
hint
(
array
|
string
$specification
) :
Cursor
$specification
array
|
string
Specify the index either by the index name or by document
return
Cursor
public function hint($specification) { $this->hint = $specification; return $this; }
Cursor
__call
__construct
asArray
asObject
byId
byIdList
copyToCollection
count
current
explain
expression
field
fields
filter
findAll
findAndRemove
findAndUpdate
findOne
findRandom
getCursor
getExpression
getHash
getIdList
getMongoQuery
getOption
getReadPreference
getResultSet
hint
isDocumentPoolUsed
isResultAsArray
key
limit
limitedCount
map
mixedToMongoIdList
moveToCollection
next
paginate
pluck
pluckDotNoteted
query
readNearest
readPrimaryOnly
readPrimaryPreferred
readSecondaryOnly
readSecondaryPreferred
rewind
setBatchSize
setClientTimeout
setServerTimeout
skip
skipDocumentPool
skipField
skipFields
slice
sort
useDocumentPool
valid