com.raritantechnologies.ultraseek.collection
Class UltraseekOutputProcessor

java.lang.Object
  extended bycom.raritantechnologies.ultraseek.collection.UltraseekOutputProcessor
All Implemented Interfaces:
IConfigurable, IGatewayOutputProcessor, IResultSetProcessor

public class UltraseekOutputProcessor
extends java.lang.Object
implements IGatewayOutputProcessor, IResultSetProcessor, IConfigurable

Processes ICollectionGateway results. Adds IResult objects to an Ultraseek collection using direct indexing

XML Configuration Template:
 <GatewayOutputProcessor class="com.raritantechnologies.ultraseek.collection.UltraseekOutputProcessor"
     resultXMLField="documentXML"
     serverURI="http://yourUltraseekServer:8765"
     userName="YourAdminID"
     password="YourAdminPasswd"
     collectionName="YourCollectionID"
     fullTextFieldID="[result field ID for full text content URL]"
     docURLFieldID="[result field ID for document URL]"
     maxRecords="5000"
     writeXMLFiles="true(default)|false"
     removeNewLines="true(default)|false"
 >
        <DestinationPath>PathForIntermediateFiles</DestinationPath>
        <XMLIndexPath>PathForIntermediateXMLFiles</XMLIndexPath>
        <XMLTransform>PathForXMLTransformFile</XMLTransform>
        <ContentTypes>
            <ContentType extension="yourFileExtension" mimeType="yourMimeType"/>
                                                . 
                                                . 
                                                . 
        </ContentTypes>
 </GatewayOutputProcessor>
 

Developed by Raritan Technologies .

Author:
Bill Ellis

Constructor Summary
UltraseekOutputProcessor()
           
 
Method Summary
 void dataComplete()
          Data feed is complete...
 java.lang.String getConfigurationXML()
           
 void initialize(org.w3c.dom.Element outputProcElem)
          Initialize the from XML Element.
 void initialize(org.w3c.dom.Element outputProcElem, ISearchFieldMap sfMap)
          Initialize the GatewayOutputProcessor from XML Configuration Element.
 void initialize(java.util.Map initParams)
          Used for dynamic initialization (connection, collection name, file name, etc.)
 java.lang.String processData(IResultSet data)
          Reads ResultSet and send each result to be indexed by the Ultraseek indexer
 void processResultSet(java.lang.String sessionID, IResultSet data)
          processes the IResultSet (somehow)
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UltraseekOutputProcessor

public UltraseekOutputProcessor()
Method Detail

processResultSet

public void processResultSet(java.lang.String sessionID,
                             IResultSet data)
Description copied from interface: IResultSetProcessor
processes the IResultSet (somehow)

Specified by:
processResultSet in interface IResultSetProcessor

processData

public java.lang.String processData(IResultSet data)
Reads ResultSet and send each result to be indexed by the Ultraseek indexer

Specified by:
processData in interface IGatewayOutputProcessor

dataComplete

public void dataComplete()
Data feed is complete...

Specified by:
dataComplete in interface IGatewayOutputProcessor

initialize

public void initialize(java.util.Map initParams)
Description copied from interface: IGatewayOutputProcessor
Used for dynamic initialization (connection, collection name, file name, etc.)

Specified by:
initialize in interface IGatewayOutputProcessor

initialize

public void initialize(org.w3c.dom.Element outputProcElem)
Description copied from interface: IResultSetProcessor
Initialize the from XML Element.

Specified by:
initialize in interface IResultSetProcessor

initialize

public void initialize(org.w3c.dom.Element outputProcElem,
                       ISearchFieldMap sfMap)
Description copied from interface: IGatewayOutputProcessor
Initialize the GatewayOutputProcessor from XML Configuration Element.

Specified by:
initialize in interface IGatewayOutputProcessor

getConfigurationXML

public java.lang.String getConfigurationXML()
Specified by:
getConfigurationXML in interface IGatewayOutputProcessor