com.raritantechnologies.marklogic
Class MarkLogicSearchSourceFactory

java.lang.Object
  extended bycom.raritantechnologies.searchApp.XMLSearchSourceFactory
      extended bycom.raritantechnologies.marklogic.MarkLogicSearchSourceFactory
All Implemented Interfaces:
IXMLSearchSourceFactory

public class MarkLogicSearchSourceFactory
extends XMLSearchSourceFactory

Defines a MarkLogic XDBC Search Source.

XML Configuration Template:
   <SourceType name="[ name of source ]" 
                  type="MarkLogicSearchSource" 
                  displayName="[ display name ]" 
                  sourceFactoryClass="com.raritantechnologies.marklogic.MarkLogicSearchSourceFactory" 
                  queryProcessor="com.raritantechnologies.marklogic.MarkLogicQueryProcessor"
                  IDField="[ name of result field to be used as result ID ]"
                  titleField="[ name of result field to be used as result title ]"
                  urlField="[ name of result field to be used as result URL ]"
                  serverURI="[ full MarkLogic server URI ]"
                  serverHost="[ host name of server ]"
                  serverPort="[ port number ]"
                  user="[ admin user name ]"
                  password="[ admin password ]"
                  contentbaseName="[ name of database ]" >

     <MarkLogicQueryParser>

     </MarkLogicQueryParser>

     <XMLResultProcessor>

     </XMLResultProcessor>

   </SourceType>
 

Developed by Raritan Technologies Inc..

Author:
Ted Sullivan

Constructor Summary
MarkLogicSearchSourceFactory()
           
 
Method Summary
 SearchSource[] createSearchSources(org.w3c.dom.Element sourceElem, ISearchFieldMapFactory factory)
           
 void initializeSource(org.w3c.dom.Element sourceElem, SearchSource source)
          Implements initializeSource.
 
Methods inherited from class com.raritantechnologies.searchApp.XMLSearchSourceFactory
changeBasePath, initializeFieldFormatters, initializeStaticFields
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MarkLogicSearchSourceFactory

public MarkLogicSearchSourceFactory()
Method Detail

createSearchSources

public SearchSource[] createSearchSources(org.w3c.dom.Element sourceElem,
                                          ISearchFieldMapFactory factory)
Specified by:
createSearchSources in interface IXMLSearchSourceFactory
Specified by:
createSearchSources in class XMLSearchSourceFactory

initializeSource

public void initializeSource(org.w3c.dom.Element sourceElem,
                             SearchSource source)
Description copied from class: XMLSearchSourceFactory

Implements initializeSource. Subclasses that need more granularity or have a more sophisticated SecurityModel can override this method.

Note: these initializations occur AFTER the SearchSource subclass has been initialized.
Adds global SearchSource characteristics:

Specified by:
initializeSource in interface IXMLSearchSourceFactory
Overrides:
initializeSource in class XMLSearchSourceFactory