Distributed Index Handler 12.12

# 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

## Required Parameters

The following action parameters are required.

Parameter | Description
--- | ---
data | The data that defines the fields and values to replace or delete.

## Optional Parameters

This action accepts the following optional parameters.

Parameter | Description
--- | ---
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.

© Copyright 2022 Micro Focus or one of its affiliates
Version 12.12 | Last updated June 2022

Send documentation feedback

Close

Send documentation feedback

To send feedback using your default email client, open an email window.

Otherwise, send your feedback and the information below to swpdl.idoldocsfeedback@microfocus.com.

We appreciate your feedback!

Product: IDOL Distributed Index Handler 12.12

Topic Title: DREREPLACE