private function updateMappingWithNewDateMetadata(Docman_Item $item) { $mapping_data = $this->request_data_factory->getPUTDateMappingMetadata($item, $this->client->getMapping($item->getGroupId())); if (!$this->mappingNeedsToBoUpdated($item, $mapping_data)) { return; } $this->logger->debug('update mapping of project #' . $item->getGroupId() . ' with new custom date metadata'); $this->client->setMapping($item->getGroupId(), $mapping_data); }
private function mappingExists(Tracker $tracker) { return count($this->client->getMapping((string) $tracker->getId())) > 0; }
public function checkProjectMappingExists($project_id) { $this->logger->debug('[Wiki] ElasticSearch: get the mapping for project #' . $project_id); return count($this->client->getMapping($project_id)) > 0; }