/** * 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; }
/** * 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; }