data

The field values to replace or delete in IDOL. Specify the target documents, fields, and field values as follows:

#DREALL
#DREDBNAME databaseName
#DREDOCID id or #DREDOCREF url or #DRESTATEID stateID
#DREFIELDNAME fieldName
#DREFIELDVALUE fieldValue
#DREFIELDVALUEIFNOTFOUND fieldValue
#DREFIELDVALUEIFNOFIELD fieldValue
#DREDELETEFIELDVALUE fieldValue
#DREDELETESINGLEFIELDVALUE fieldValue
#DREDELETEFIELD fieldName
#DREFIELDBITOR value (or #DREFIELDBITAND value or #DREFIELDBITXOR value)
#DREENDDATA

where,

Field Description
#DREALL Match all documents. This option is restricted only by the DatabaseMatch parameter supplied as part of the DREREPLACE request, or by database read-only status.
#DREDBNAME databaseName The databases within which to match all documents. To specify more than one database, separate them with plus signs (+). IDOL ignores the DatabaseMatch parameter for the documents identified by #DREDBNAME.
#DREDOCID id The ID of the document containing the field to change or delete.
#DREDOCREF url The reference of the document containing the field to change or delete.
#DRESTATEID stateID The stored state ID of an array of documents containing the field to change or delete. The state ID returns from a Query where StoreState=true.
#DREFIELDNAME fieldName

The name of the field whose value to change or delete.

Note: In XML documents, fieldName must be fully qualified (for example, XML/DOCUMENT/MYFIELD).

#DREFIELDVALUE fieldValue The new value for the field specified by fieldName .
#DREFIELDVALUEIFNOTFOUND fieldValue The new value for the field specified by fieldName if the fieldName/fieldValue pair does not already exist.
#DREFIELDVALUEIFNOFIELD fieldValue The new value for the field specified by fieldName if the fieldName does not already exist in the document.
#DREDELETEFIELDVALUE fieldValue The value the field specified by fieldName must contain for the field to be deleted.
#DREDELETESINGLEFIELDVALUE fieldValue The value the field specified by fieldName must contain for DIH to delete it. This option deletes only the first instance of the fieldName/fieldValue pair.
#DREDELETEWILDFIELDVALUE fieldValue The wildcard value that the field specified by fieldName must contain for the field to be deleted. This operation matches wildcards for UTF-8 (that is, ? matches a single UTF-8 character).
#DREDELETESINGLEWILDFIELDVALUE fieldValue The wildcard value that the field specified by fieldName must contain for the first instance of the field to be deleted. This operation deletes only a single instance of the fieldName/fieldValue pair. It matches wildcards for UTF-8 (that is, ? matches a single UTF-8 character).
#DREDELETEFIELD fieldName The field to delete. You do not require a #DRE*VALUE parameter.
#DREFIELDBITOR value

Generally a 32-bit decimal integer.

  • If this field is a NumericType field with the NumericIntegerOnly property, then the value is a signed 64-bit integer.

  • If the field is a BitFieldType field, the value must be a hexadecimal value.

IDOL performs the bit-wise or operation on the field identified by the previous #DREFIELDNAME. For NumericType fields, if the field is not present in the document, then it adds a field with value 0000000000 first, and then applies the bit operation.

#DREXMLFIELDVALUE A block of XML data to insert into an XML document under the previous #DREFIELDNAME.
#DREENDDATA This string must exist at the end of a index action parameter block to signify the end of the data.

Notes:

Actions: DREREPLACE
Type: String
Default:  
See Also:

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

In this example, the DREREPLACE makes the following changes in the News and Archive databases.


© 2013 Hewlett-Packard Development Company, L.P.