src/snac/server/elastic/ElasticSearchUtil.php
/**
     * List Recently Updated
     *
     * List the recently updated entries from the given Elastic Search index and type.
     *
     * @param string $index The elastic search index
     * @param string $type The elastic search index type
     * @return string[] List of recently updated records in the elastic search index
     */
List Recently Updated
List the recently updated entries from the given Elastic Search index and type.

@param string $index The elastic search index
@param string $type The elastic search index type
@return string[] List of recently updated records in the elastic search index
List Recently Updated List the recently updated entries from the given Elastic Search index and type . @param string $index The elastic search index @param string $type The elastic search index type @return string [] List of recently updated records in the elastic search index
public function listRecentlyUpdated($index) {
        $params = [
            'index' => $index,
            'body' => [
                'sort' => [
                    'timestamp' => [
                        "order" => "desc"
                    ]
                ]
            ]
        ];
        $this->logger->addDebug("Defined parameters for search", $params);
        $results = $this->connector->search($params);
        $this->logger->addDebug("Completed Elastic Search", $results);
        return $results["hits"]["hits"];
    }
public function listRecentlyUpdated ( $ index ) { $ params = [ 'index' => $ index , 'body' => [ 'sort' => [ 'timestamp' => [ " order " => " desc " ] ] ] ] ; $ this -> logger -> addDebug ( " Defined parameters for search " , $ params ) ; $ results = $ this -> connector -> search ( $ params ) ; $ this -> logger -> addDebug ( " Completed Elastic Search " , $ results ) ; return $ results [ " hits " ] [ " hits " ] ; }
List Recently Updated
 List the recently updated entries from the given Elastic Search index and type.
List Recently Updated List the recently updated entries from the given Elastic Search index and type .
// 'type' => $type,