com.raritantechnologies.quickstart
Class SimilarResultsSource

java.lang.Object
  extended bycom.raritantechnologies.searchApp.SearchSource
      extended bycom.raritantechnologies.quickstart.CurrentResultsSource
          extended bycom.raritantechnologies.quickstart.SimilarResultsSource
All Implemented Interfaces:
IQueryProcessor, IXMLSearchSourceFactory

public class SimilarResultsSource
extends CurrentResultsSource

Computes a similarity ranking between a selected document within a result set. The filterResults method returns a result set that has the all of the other results ranked according to similarity with the selected document.


Field Summary
 
Fields inherited from class com.raritantechnologies.quickstart.CurrentResultsSource
cachedResultsName
 
Fields inherited from class com.raritantechnologies.searchApp.SearchSource
ID_FIELD, IS_FEDERATED, NUMBER_OF_FIELDS, SECURE, SOURCE_NAME, SOURCE_TYPE, TITLE_FIELD, URL_FIELD
 
Constructor Summary
SimilarResultsSource()
           
 
Method Summary
protected  IResultSet filterResults(java.lang.String sessionID, IResultSet currentResults, OrderedMap inputParameters)
           
 void initialize(org.w3c.dom.Element elem)
           
 
Methods inherited from class com.raritantechnologies.quickstart.CurrentResultsSource
createSearchSources, executeQuery, getCurrentResults, getName, getQueryProcessor, initializeSource, setCachedResultName, setName, setSearchWithin
 
Methods inherited from class com.raritantechnologies.searchApp.SearchSource
addFieldFormatter, addSearchField, addSourceAttributes, addStaticField, addStaticFields, addUserSearchField, canAccess, canConsolidateSources, consolidateSources, delSearchField, formatResult, formatResult, formatResultField, formatResultField, formatResults, formatResults, getAccessableFields, getAttributes, getBasePath, getConfigPath, getDisplayName, getFieldFormatters, getIDField, getProperty, getSearchField, getSearchFieldID, getSearchFields, getSearchFields, getSecondarySortSpec, getSecurityManager, getSecurityManagerName, getSecurityModel, getSortSpec, getSourceCredentials, getSourcePropertyNames, getTitleField, getType, getURLField, getUserSearchFields, isMultiThreaded, setConfigPath, setDisplayName, setIDField, setMultiThreaded, setSecurityManagerName, setSecurityModel, setSortMap, setSourcePropertyInfoSource, setTitleField, setType, setURLField, shouldFormatResults, supportsBackgroundSort
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimilarResultsSource

public SimilarResultsSource()
Method Detail

filterResults

protected IResultSet filterResults(java.lang.String sessionID,
                                   IResultSet currentResults,
                                   OrderedMap inputParameters)
Overrides:
filterResults in class CurrentResultsSource

initialize

public void initialize(org.w3c.dom.Element elem)