DREREPLACE

Note: This command requires a POST request method.

Use the DREREPLACE command 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.autonomy.com/autonomy/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 Fruit\n
#DREFIELDVALUEIFNOTFOUND mango\n
#DREDELETESINGLEFIELDVALUE apple\n
#DREDELETEFIELD XML/DOC/DELETEME\n

#DREENDDATANOOP\n\n

Parameter Description Required
DatabaseMatch The databases in which data is to be replaced.
InsertValue Whether to add new instances of a specified field, or just replace values in existing instances.
Field The field containing the reference specified by #DREDOCREF.
MultipleValues Whether to allow multiple #DREFIELDNAME/#DREFIELDVALUE pairs for the same field name.
Priority Sets the priority of an indexing job.
ReplaceAllRefs Whether to replace values in all matching documents, or just the first one.
Data The data that defines the fields and values to replace or delete. yes
Comments