src/snac/server/elastic/ElasticSearchUtil.php
/**
     * Update Resource in Resource Index
     *
     * Updates the specified resource field given a resource id and value.
     *
     * @param $id The resource id
     * @param $field The name of the field to update as it exists in ES, or the field to add
     * @param
     */
Update Resource in Resource Index
Updates the specified resource field given a resource id and value.

@param $id The resource id
@param $field The name of the field to update as it exists in ES, or the field to add
@param
Update Resource in Resource Index Updates the specified resource field given a resource id and value . @param $id The resource id @param $field The name of the field to update as it exists in ES or the field to add @param
public function updateResourceField($id, $field, $value) {
        if ($this->connector != null) {
            $params = [
                    'index' => \snac\Config::$ELASTIC_SEARCH_RESOURCE_INDEX,
                    'id' => $id,
                    'body' => [
                        'doc' => [
                            $field => $value
                        ]
                    ]
            ];
            $this->connector->update($params);
            $this->logger->addDebug("Updated resource in elasticsearch");
        }
    }
public function updateResourceField ( $ id , $ field , $ value ) { if ( $ this -> connector != null ) { $ params = [ 'index' => \ snac \ Config :: $ ELASTIC_SEARCH_RESOURCE_INDEX , 'id' => $ id , 'body' => [ 'doc' => [ $ field => $ value ] ] ] ; $ this -> connector -> update ( $ params ) ; $ this -> logger -> addDebug ( " Updated resource in elasticsearch " ) ; } }
Update Resource in Resource Index
 Updates the specified resource field given a resource id and value.
Update Resource in Resource Index Updates the specified resource field given a resource id and value .