Lines Matching refs:this

72      * All the communication to and from an index goes of this object
79 $this->_client = $client;
80 $this->_name = $name;
90 return new IndexStats($this);
100 return new IndexRecovery($this);
111 return $mapping->send($this, $query);
126 $response = $this->requestEndpoint($endpoint);
142 return new IndexSettings($this);
152 return new Document($id, $data, $this);
172 $doc->setIndex($this->getName());
175 return $this->getClient()->updateDocuments($docs, $options);
205 return $this->requestEndpoint($endpoint);
241 $response = $this->requestEndpoint($endpoint);
246 $doc->isAutoPopulate() || $this->getClient()->getConfigValue(['document', 'autoPopulate'], false)
276 $doc->setIndex($this->getName());
279 return $this->getClient()->addDocuments($docs, $options);
299 $response = $this->requestEndpoint($endpoint);
314 $doc = new Document($id, $data, $this->getName());
339 return $this->requestEndpoint($endpoint);
364 return $this->requestEndpoint($endpoint);
381 return $this->requestEndpoint($endpoint);
393 return $this->requestEndpoint(new Delete());
412 $doc->setIndex($this->getName());
415 return $this->getClient()->deleteDocuments($docs);
436 return $this->requestEndpoint($endpoint);
450 return $this->requestEndpoint(new Refresh());
474 \trigger_deprecation('ruflin/elastica', '7.1.0', 'Passing null as 2nd argument to "%s()" is deprecated, avoid passing this argument or pass an array instead. It will be removed in 8.0.', __METHOD__);
499 $this->delete();
510 return $this->requestEndpoint($endpoint);
522 $response = $this->requestEndpoint(new Exists());
532 $search = new Search($this->getClient(), $builder);
533 $search->addIndex($this);
544 $search = $this->createSearch($query, $options);
554 $search = $this->createSearch($query);
570 return $this->requestEndpoint(new Open());
584 return $this->requestEndpoint(new Close());
592 return $this->_name;
600 return $this->_client;
619 $status = new Status($this->getClient());
625 $data['actions'][] = ['add' => ['index' => $this->getName(), 'alias' => $name]];
631 return $this->getClient()->requestEndpoint($endpoint);
649 return $this->requestEndpoint($endpoint);
667 $responseData = $this->requestEndpoint($endpoint)->getData();
669 if (!isset($responseData[$this->getName()])) {
673 $data = $responseData[$this->getName()];
686 return \in_array($name, $this->getAliases(), true);
704 return $this->requestEndpoint($endpoint);
721 return $this->requestEndpoint($endpoint);
741 return $this->requestEndpoint($endpoint);
745 * Makes calls to the elasticsearch server based on this index.
757 $path = $this->getName().'/'.$path;
759 return $this->getClient()->request($path, $method, $data, $queryParameters);
763 * Makes calls to the elasticsearch server with usage official client Endpoint based on this index.
772 $cloned->setIndex($this->getName());
774 return $this->getClient()->requestEndpoint($cloned);
795 $data = $this->requestEndpoint($endpoint)->getData();
824 return $this->getClient()->updateDocument($data->getId(), $data, $this->getName(), $options);