Support Tip: Searching is returning docs that are not present in Metastore

0 Likes

Environment

ControlPoint 5.x

Situation

I am performing searches in ControlPoint and getting documents returned which I cannot access Advanced Properties for because there is no metadata in SQL Server for these documents.

Cause

This situation occurred due to outages in one or more content engines where they got out of sync with Metastore. At the time it was not possible to restore backups of both Metastore and IDOL to the same consistent state. This leads to some docs missing in Metastore that still have entries in IDOL which then get returned in searches.

Resolution

Currently none of the tasks or jobs (Deleted Orphaned Documents, Metadata Consistency Checker & SQL maintenance job) shipped with ControlPoint cope with removing orphaned docs from just IDOL.

To resolve this issue if you don't have a consistent backup to recover from you need to use IDOL State Tokens:

A state token is an array of DocID values.

Use a query to return docs in IDOL that do not belong to any of your repositories.
This example checks for any docs that don't belong to repositories called Share1, Share2 or Share3:

http://localhost:9000/a=query&FieldText=NOTMATCH{Share1,Share2,Share3}:DREDBName&MaxResults=1000&TotalResults=True&Print=Results

Carefully review the output to ensure you have not missed any repository names in the list of repositories to check for. If the only docs listed in the output do not belong to any repositories then you can proceed.

Store the results of the query in a state token:

http://localhost:9000/a=query&FieldText=NOTMATCH{Share1,Share2,Share3}:DREDBName&MaxResults=1000&TotalResults=True&Print=NoResults&StoreState=True


This will output a state token as shown:

Export all files via DREEXPORTIDX with this state token so you have them available for reference.

http://localhost:9001/DREEXPORTIDX?FileName=\\MyServer1\folder\exportedfile&Compress=true&StateMatchID=SHBKTRH1M645-4


Then use the same State Token in conjunction with DREDELETEDOC Index Action to remove specific docs.

This example deletes the first 5 docs (0-4) identified by state token SHBKTRH1M645-4:

http://localhost:9001/DREDELETEDOC?StateID=SHBKTRH1M645-4[0-4]

This example deletes all the docs identified by state token SHBKTRH1M645-4:

http://localhost:9001/DREDELETEDOC?StateID=SHBKTRH1M645-4

Additional Information

Refer to latest IDOL Server Guide pages 358-361 for more info on state tokens:
https://www.microfocus.com/documentation/idol/IDOL_12_11/IDOLServer_12.11_Documentation/Guides/pdf/IDOLServer_12.11_Admin_en.pdf
 

Tags:

Labels:

Knowledge Docs
Comment List
Related
Recommended