com.raritantechnologies.marklogic
Class MarkLogicSearchSourceFactory
java.lang.Object
com.raritantechnologies.searchApp.XMLSearchSourceFactory
com.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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MarkLogicSearchSourceFactory
public MarkLogicSearchSourceFactory()
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:
- SecurityModel
- Source-specific formatting
- Specified by:
initializeSource in interface IXMLSearchSourceFactory- Overrides:
initializeSource in class XMLSearchSourceFactory