private void updateEntity ( String type , String id , XContentBuilder source ) throws StorageException { try { String doc = source . string ( ) ; /* JestResult response = */ esClient . execute ( new Index . Builder ( doc ) . setParameter ( Parameters . OP_TYPE , "index" ) . index ( getIndexName ( ) ) . type ( type ) . id ( id ) . build ( ) ) ; //$NON-NLS-1$ } catch ( Exception e ) { throw new StorageException ( e ) ; } }
Updates a single entity .