IndexerGetStatus

Allows you to display the status of index actions in the DIH index queue.

Note: This is an administrative action that you can send only from DIH AdminClients (which you set in the DIH configuration file [Server] section).

Example:

An IndexerGetStatus action is sent to DIH following a DREADD index action. DIH returns the following output:

<autnresponse>
<action>INDEXERGETSTATUS</action>
<response>SUCCESS</response>
<responsedata>
<item>
    <id>1</id>
    <origin_ip>127.0.0.1</origin_ip>    
    <received_time>2008/10/22 11:30:13</received_time>
    <start_time>2008/10/22 11:30:14</start_time>
    <end_time>2008/10/22 11:32:14</end_time>
    <duration_secs>120</duration_secs>
    <percentage_processed>100</percentage_processed>
    <status>-1</status>
    <description>Finished</description>
 
    <index_command>/DREADD?myfile.idx&KILLDUPLICATES=REFERENCE&DREDBNAME=Archive</index_command>
</item>
</responsedata>
</autnresponse>
<id> The ID number of the Index action that was applied.
<origin_ip> The IP address of the machine that sent the index action to DIH.
<received_time> The time that the index action was received by DIH.
<start_time> The time that DIH started processing the index action.
<end_time> The time that DIH finished processing the index action.
<duration_secs> The total amount of time in seconds that DIH spent processing the index action.
<percentage_processed> The percentage of the index job that has been completed.
<status> The status code of the current status of the index action in DIH’s index queue.
<description> The description of the <status> number.
<index_command> The index action that was used for the index job.

The DRECOMPACT index action also returns a <drecompact_status> section to show the time that each stage of the compaction takes. This section contains <stage> tags, with the following attributes:

name The name of the compaction stage.
description The description of the compaction stage.
percentage_complete The percentage of the compaction stage that is complete.
time_seconds The time that the compaction stage has taken.
paused If you pause the DRECOMPACT index action, this attribute is set to true for the paused stage.

IndexerGetStatus Status Codes

Codes in bold are status messages. All other codes indicate there is a problem with the indexing process.

Code Message Explanation
–1 Finished The indexing process is complete.
–2 Out of disk space DIH ran out of disk space before it completed the indexing process.
–3 File not found The index file was not found.
–4 Database not found The database into which you are trying to index was not found.
–5 Bad parameter The indexing action syntax is incorrect.
–6 Database exists The database you are trying to create already exists.
–7 Queued The indexing action is queued and it is run when all preceding indexing actions are complete.
–8 Unavailable

DIH is about to shut down or indexing is paused.

–9 Out of Memory DIH ran out of memory before the indexing process was completed.
–10 Interrupted The indexing action was interrupted.
–11 XML is not well formed Indexing failed because the XML is not well formed.
–12 Retrying interrupted command DIH is running an index action that was previously interrupted.
–13 Backup in progress DIH is performing a backup.
–14 Max index size reached The indexing job exceeds the maximum indexing size (your license determines the maximum indexing size).
–15 Max number of sections reached The indexing job exceeds the maximum number of sections that you can index. (Your license determines the number of sections you can index).
–16 Indexing Paused The indexing process was paused.
–17 Indexing Resumed The indexing process was restarted.
–18 Indexing Cancelled The indexing process was cancelled.
–19 Out of file descriptors DIH ran out of file descriptors.
–20 LanguageType not found The language type of the index data was not found.
–21 SecurityType not found The security type of the index data was not found.
–22 Child engines returned differing messages The child servers returned different messages to the DIH. This code is reported by DIH only.
–23 Badly formatted index command The indexing action was rejected by a child server because the syntax is invalid.
–25 To be sent to DRE The index action is queued to be sent to the DIH. This code is reported by DIH only.
–26 DREADDDATA: Data received did not include #DREENDDATA The data in the DREADDDATA action did not contain a #DREEDNDDATA statement indicating the end of the data.
–27 Command failed more times than the configured retry limit The indexing action exceeded the maximum number of retries specified by the MaximumRetries parameter in the DIH configuration. This code is reported by DIH only.
–28 The index ID specified is invalid. The index ID returned by the child server is invalid. This code is reported by DIH only.
–29 Command was redistributed to sibling engines as this engine was either unavailable or not to accept index jobs. The indexing action was sent to sibling servers because the child server was either unavailable or not accepting indexing jobs. This code is reported by DIH only.
–30 Database name too long The name of the database in which you are indexing documents is too long. The length is defined internally as 63 characters.
–31 Command ignored due to id match The DREINITIAL action was ignored because it did not match the ID specified in the InitialID parameter.
–33   The database cannot be created because the maximum number of databases was exceeded. The maximum is defined internally as 32,767.
–34 Pending commit The indexing job is complete and the documents become available for searching after the next delayed sync cycle, which is specified in the DelayedSync parameter.
–35 Initializing The indexing job is being started. This code is reported by DIH only.
–36 Reading IDX The IDX file is being read from disk, prior to being sent to the DRE. This code is reported by DIH only.
–37 Failed The index action has permanently failed.
–38 Processing in remote engine. The target server of a DREEXPORTREMOTE operation is processing the exported documents.

If the IndexerGetStatus action returns zero or a positive number, this number indicates the percentage of the indexing job that has been completed.

Note: This is an administrative action that can only be sent from DIH AdminClients (which are set in the DIH configuration file [Server] section).

Example

http://12.3.4.56:9000/action=IndexerGetStatus

This action uses port 9000 to request the status of the DIH index queue. DIH is located on a machine with the IP address 12.3.4.56.

Parameters

Parameter Description Required
Child The ID of child servers to return details for. see Comments
ChildDetails Show the details of child servers.  
EncryptResponse Encrypt the DIH output.  
EpochTime Modifies the time tags in the response.  
FileName The file that DIH writes output to.  
ForceTemplateRefresh Forces DIH to load the template from disk.  
Index The index ID of a specific index action.  
IndexAction Controls indexing of IDX and XML files.  
IndexCmd Filters the response to only those jobs matching the action.  
IndexStatus The status that index jobs must have to return.  
MaxResults The maximum number of index jobs to return.  
PollChildren Whether to poll child servers.  
Priority Sets the priority of an index job. see Comments
Output Writes DIH output to a file.  
ResponseFormat The format of the action output.  
Summary Whether to return a summary page instead of the full status results.  
Template The template to use for the action output.  
TemplateParamCSVs A list of variables to use for the specified template.  

Comments

To use Priority, you must set IndexAction to SetPriority.

By default, the action reports a job finished only when the job is reported finished by all the DIH's children. This can result in large queue sizes. To mark each job finished when it is reported finished by one child, set the Polling parameter in the [Server] section to false.

The Child parameter can only be set if the ChildDetails parameter is set to true.


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