You can check whether a document exists in a particular Lucene index library using the following URL:
http://server_name:port_number/context_root/saxfeed?verify=true &WF_INDEX_UNIQUE_KEY=unique_key&datasource=site_name
where:
Is the name of the server and its port number where Magnify is installed.
Is the WebFOCUS web application alias.
Is the unique identifier of the record you want to verify.
Is the name of the collection or index that contains the record you want to verify.
Magnify returns a XML result set specifying the status of the record specified in the URL.
The following syntax illustrates the status result of a record that was found in the centurycustomers Lucene index specified:
<? xml version="1.0" encoding="UTF-8" standalone="yes"?>
<magnifyfeedresponse>
<recordStatus url="null"uniqueKeyEncoded="22060" uniqueKey="22060"
status="found" datetime="2010-08-14 16:38:18.897-0400"
datasource="centurycustomers" />
</magnifyfeedresponse>
WebFOCUS |