com.raritantechnologies.verity.parametric
Class ParametricSearchSourceFactory

java.lang.Object
  extended bycom.raritantechnologies.searchApp.XMLSearchSourceFactory
      extended bycom.raritantechnologies.verity.VeritySearchSourceFactory
          extended bycom.raritantechnologies.verity.parametric.ParametricSearchSourceFactory
All Implemented Interfaces:
IXMLSearchSourceFactory

public class ParametricSearchSourceFactory
extends VeritySearchSourceFactory

Constructs a ParametricSearchSource from an XML Configuration source.

XML Configuration Template:
 <SourceType 
        name="[Parametric Source Name]" 
        type="ParametricSearchSource" 
        displayName="[Source Name displayed to User]"
        sourceFactoryClass="com.raritantechnologies.verity.parametric.ParametricSearchSourceFactory" 
        queryProcessor="com.raritantechnologies.verity.parametric.SortingParametricQueryProcessor"
        maxVPSearchUses="[ number of uses for a VPSearch object (default=10) ]" >

    <PIConfig
       PI="[PI Alias on K2 server]" 
       hostPortString="[K2 server hostport]" 
       collectionFields="[comma separated list of collection field aliases]" 
       DidYouMeanCollection="[colon-separated list of collections to use for Did You Mean lookups]" 
       selectFields="[comma separated list of select (dropdown) fields]"
       defaultSortField="[default sorting field]"
       taxFields="[comma separated list of taxonomy fields]" 
       maxDoc = "0"
       numPerPage = "10"
       searchCaseSensitive="true/false"  <!-- default is false -->
       browseClearsSearch="true/false"   <!-- default is false -->
       />

    <QueryParser class="[queryParser class]" >
       <!-- parameters needed by QueryParser -->
    </QueryParser>

    <QueryCooker class="[queryCooker class]" >
       <!-- parameters needed by QueryCooker -->
    </QueryCooker>

    <SecurityModel>
      <search>[public/restricted]
      <fullText>[public/restricted]
    </SecurityModel>

   </SourceType>
 

Developed by Raritan Technologies .

Author:
Ted Sullivan

Constructor Summary
ParametricSearchSourceFactory()
           
 
Method Summary
 SearchSource[] createSearchSources(org.w3c.dom.Element sourceElem, ISearchFieldMapFactory factory)
           
 
Methods inherited from class com.raritantechnologies.verity.VeritySearchSourceFactory
createVeritySearchSources, initQueryCooker, initQueryParser, initSearchSource, initSourceFields, initZoneSource, readInFields
 
Methods inherited from class com.raritantechnologies.searchApp.XMLSearchSourceFactory
changeBasePath, initializeFieldFormatters, initializeSource, initializeStaticFields
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ParametricSearchSourceFactory

public ParametricSearchSourceFactory()
Method Detail

createSearchSources

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