コード例 #1
0
ファイル: Builder.php プロジェクト: cosmow/riak
 /**
  * Specify $text criteria for the current field.
  *
  * The $language option may be set with {@link Builder::language()}.
  *
  * @see Expr::text()
  * @see http://docs.mongodb.org/master/reference/operator/query/text/
  * @param string $search
  * @return self
  */
 public function text($search)
 {
     $this->expr->text($search);
     return $this;
 }
コード例 #2
0
ファイル: Match.php プロジェクト: cosmow/riak
 /**
  * Specify $text criteria for the current field.
  *
  * The $language option may be set with {@link Builder::language()}.
  *
  * You can only use this in the first $match stage of a pipeline.
  *
  * @see Expr::text()
  * @see http://docs.mongodb.org/master/reference/operator/query/text/
  * @param string $search
  * @return self
  */
 public function text($search)
 {
     $this->query->text($search);
     return $this;
 }