com.raritantechnologies.searchApp.filters
Class NestedResultClustererFilter

java.lang.Object
  extended bycom.raritantechnologies.searchApp.filters.NestedResultClustererFilter
All Implemented Interfaces:
IConfigurable, IResultSetFilter

public class NestedResultClustererFilter
extends java.lang.Object
implements IResultSetFilter

Builds a nested result set by recursive clustering on a list of result fields, using a FieldValueClusterer.

XML Configuration Template:
  <ResultSetFilter class="com.raritantechnologies.searchApp.filters.NestedResultClustererFilter"
                      fieldList="[ list in order of hierarchy of input fields to cluster on ]"
                      clusterField="[ name of output field that has clustered values ]"
                      subFieldName="[ name of field containing nested results ]"
                      maxResultSize="[ maximum number of results / cluster ]" />
 

Developed by Raritan Technologies .

Author:
Ted Sullivan

Field Summary
 
Fields inherited from interface com.raritantechnologies.searchApp.IResultSetFilter
TEMPLATE
 
Constructor Summary
NestedResultClustererFilter()
           
 
Method Summary
 IResultSet filterResultSet(java.lang.String sessionID, IResultSet data)
          Filter the IResultSet (somehow)
 void initialize(org.w3c.dom.Element elem)
          Initialize the from XML Element.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NestedResultClustererFilter

public NestedResultClustererFilter()
Method Detail

filterResultSet

public IResultSet filterResultSet(java.lang.String sessionID,
                                  IResultSet data)
Description copied from interface: IResultSetFilter
Filter the IResultSet (somehow)

Specified by:
filterResultSet in interface IResultSetFilter

initialize

public void initialize(org.w3c.dom.Element elem)
Description copied from interface: IResultSetFilter
Initialize the from XML Element.

Specified by:
initialize in interface IResultSetFilter