com.raritantechnologies.federated.fast
Class FastSearchSourceFactory
java.lang.Object
com.raritantechnologies.searchApp.XMLSearchSourceFactory
com.raritantechnologies.federated.fast.FastSearchSourceFactory
- All Implemented Interfaces:
- IXMLSearchSourceFactory
- public class FastSearchSourceFactory
- extends XMLSearchSourceFactory
Defines a FAST DataSearch source.
XML Configuration Template:
<SourceType name="[ source name ]" type="FastSearchSource" displayName="[ source display name ]"
sourceFactoryClass="com.raritantechnologies.federated.fast.FastSearchSourceFactory"
queryProcessor="com.raritantechnologies.federated.fast.FastQueryProcessor"
blankQueryReturnsAll="true|false(default)"
host="[ host name of Fast DataSearch server ]"
port="[ port number of Fast DataSearch server ]"
collection="[ collection name ]"
searchView = "[ optional search View Name ]"
searchViewParam="[ optional request parameter that contains search View Name ]"
defaultSortSpec="foo asc"
isSecure="true|false(default)"
IDField="[ field that has document ID ]"
URLField="[ field that has document url ]"
titleField="[ field that has document title ]" >
<QueryResultHandler class="[ class of com.raritantechnologies.federated.fast.IFastQueryResultHandler ]" >
</QueryResultHandler>
<!-- Set of FAST ESP Query Features to be activated -->
<QueryFeatures>
<Feature name="[ name of FAST query features ]" value="[ its value ]" />
</QueryFeatures>
<Fields>
<!-- One or more Field elements: -->
<Field ID="[abstract field name ]" collectionField="[ name in Fast IndexProfile ]"
type="[ QUERY | CATEGORY ]"
modifier="[ optional field with boolean modifier (e.g. any,all,not) ]" >
</Fields>
<SortMap defaultField="[ default sort Field ]" defaultDir="[ asc | desc ]" >
<!-- One or more BackgroundField elements - determine secondary and tertiary (etc.) sort orders... -->
<BackgroundField primaryField="[primary field ]" secondaryField="[secondary field name]" secondaryDir="[asc | desc]" />
<BackgroundField primaryField="[primary field ]" secondaryField="[secondary field name]" secondaryDir="[asc | desc]" />
</SortMap>
</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 |
FastSearchSourceFactory
public FastSearchSourceFactory()
createSearchSources
public SearchSource[] createSearchSources(org.w3c.dom.Element sourceElem,
ISearchFieldMapFactory factory)
- Specified by:
createSearchSources in interface IXMLSearchSourceFactory- Specified by:
createSearchSources in class XMLSearchSourceFactory
readInFields
protected void readInFields(org.w3c.dom.Element sourceElem,
ISearchFieldMapFactory factory,
FastSearchSource fastSource)