Change Document Metadata
Send a DRECHANGEMETA
index action (case sensitive) from your Web browser to change the metadata (index date, expire date, or database) of documents. You can identify individual documents or document ranges by their references or IDs. (You can specify ranges only with IDs.)
http://ContentHost:indexPort/DRECHANGEMETA?Type=type&Refs=docReferences&Docs=docIDs&NewValue=value
where:
ContentHost
|
is the IP address or host name of the machine on which the IDOL Content component is installed. |
indexPort
|
is the IDOL Content component index port (specified as IndexPort in the [Server] section of the IDOL Content component configuration file). |
type
|
is the type of metadata whose value you are changing:
-
date . The index date to assign to the documents. The date you specify must be in a format that you set for DateFormatCSVs in the IDOL Content component configuration file.
-
expiredate . The expire date to assign to the documents. The date you specify must be in a format that you set for DateFormatCSVs in the IDOL Content component configuration file.
-
database . The database to move the documents to.
|
docReferences
|
is a list of (percent-encoded) references to the documents whose metadata is to change. If the references contain plus symbols (+) or spaces, percent-encode each reference, then separate multiple references with plus symbols (there must be no space before or after a plus symbol) and percent-encode the whole string again (using Internet Explorer or the ACI client). |
docIDs
|
is one or more individual document IDs or a ranges of document IDs for the documents whose metadata is to change. Use one or a combination of the following formats:
-
docID . Specify the IDs of one or more documents. To specify multiple document IDs, separate them with plus symbols (there must be no space before or after a plus symbol).
-
range=[min_docID,max_docID] . Enter the document ID of the first and last document in a range of documents.
To combine the formats, separate them with plus symbols (there must be no space before or after a plus symbol).
|
value
|
is the new metadata value to write into all the specified documents. |
For example:
http://12.3.4.56:20001/DRECHANGEMETA?Type=database&Docs=3+5+range=[7,10]&NewValue=Archive
This action uses port 20001
to reassign the documents with the IDs 3
, 5
, 7
, 8
, 9
, and 10
to the Archive
database. Content is located on a machine with the IP address 12.3.4.56
.
NOTE: By default, when you set the Refs
parameter, Content searches all document references for the specified value. If your documents have multiple reference fields, and you want to search only one field name, set the Field
parameter to the name of the reference field that you want to search.