DREREPLACE

NOTE:

This index action requires a POST request method.

Use the DREREPLACE index action to change the field values or delete fields from documents.

Use the following syntax:

DREREPLACE?DATABASEMATCH=Databases\n\nData

Example

DREREPLACE?DATABASEMATCH=News+Archive HTTP/1.0\n
Content-Length:203\n\n
#DREDOCID 1\n
#DREFIELDNAME Price\n
#DREFIELDVALUE 10\n
#DREFIELDNAME Color\n
#DREFIELDVALUE Red\n
#DREDOCREF http://www.example.com/dynamic/autopage442.shtml\n
#DREFIELDNAME Country\n
#DREFIELDVALUE UK\n
#DREFIELDNAME Region\n
#DREFIELDVALUE South East\n
#DREFIELDNAME OnSale\n
#DREDELETEFIELDVALUE Yes\n
#DRESTATEID abcdefg-6\n
#DREFIELDNAME XML/DOC/Fruit\n
#DREFIELDVALUEIFNOTFOUND mango\n
#DREDELETESINGLEFIELDVALUE apple\n
#DREDELETEFIELD XML/DOC/DELETEME\n
#DREENDDATANOOP\n\n

Parameters

Parameter Description Required
data The data that defines the fields and values to replace or delete. Yes
DatabaseMatch The databases in which to replace data.  
Field The field containing the reference specified by #DREDOCREF.  
InsertValue Whether to add new instances of a specified field, or replace values in existing instances.  
MultipleValues Whether to allow multiple #DREFIELDNAME and #DREFIELDVALUE pairs for the same field name.  
ReplaceAllRefs Whether to replace values in all matching documents, or only the first one.  

This index action accepts the following standard index action parameters.

Parameter Description
IgnoreMaxPendingItems Whether to ignore the IndexQueueMaxPendingItems limit for this index action.
IndexUID An identification code for any document tracking events.
NoArchive Turn off configured archiving for the index action.
Priority The priority for the index job.

_HP_HTML5_bannerTitle.htm