|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.raritantechnologies.concept.RelatedDocumentProcessor
Uses clustering to compute related documents based on sets of common keywords. Uses a
nested IDocumentKeywordProcessor to handle document keyword extraction. Used
to generate a list of similar documents.
Creates an output IResultSet with one result per document from the input result sets. Each output result contains a nested result set with the set of related documents.
XML Configuration Template:
<OutputProcessor class="com.raritantechnologies.concept.RelatedDocumentProcessor"
resultKeyField="[ field id for document key value ]"
relatedDocKeyField="[ nested result field name for related docs ]"
relatedDocFields="[ list of fields that should be copied to related Document ]" >
<DocumentProcessor class="[ class of com.raritantechnologies.concept.IDocumentKeywordProcessor ]" >
</DocumentProcessor>
<!-- Gateway Output Processor to handle related document results -->
<OutputProcessor class="[ class of com.raritantechnologies.searchApp.dataCollection.IGatewayOutputProcessor ]" >
</OutputProcessor>
</OutputProcessor>
| Constructor Summary | |
RelatedDocumentProcessor()
|
|
| Method Summary | |
void |
dataComplete()
Data feed is complete. |
java.lang.String |
getConfigurationXML()
|
java.lang.String |
getRelatedDocumentSetKey()
|
java.lang.String |
getResultKeyField()
|
OrderedMap |
getWordDocumentMap()
Returns a map of keyword and Documents that contain the keyword. |
OrderedMap |
getWordDocumentMap(WordCountComparator sortBy)
Returns a map of keyword and Documents that contain the keyword. |
void |
initialize(org.w3c.dom.Element outputProcElem)
Initialize the GatewayOutputProcessor from XML Element. |
void |
initialize(org.w3c.dom.Element outputProcElem,
ISearchFieldMap sfMap)
Initialize the GatewayOutputProcessor from XML Configuration Element. |
void |
initialize(java.util.Map initParams)
Used for dynamic initialization (connection, collection name, file name, etc.) |
java.lang.String |
processData(IResultSet data)
returns name of XML File created/appended. |
void |
processResultSet(java.lang.String sessionID,
IResultSet data)
processes the IResultSet (somehow) |
void |
setOutputProcessor(IGatewayOutputProcessor outputProc)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public RelatedDocumentProcessor()
| Method Detail |
public java.lang.String processData(IResultSet data)
IGatewayOutputProcessor
processData in interface IGatewayOutputProcessor
public void processResultSet(java.lang.String sessionID,
IResultSet data)
IResultSetProcessor
processResultSet in interface IResultSetProcessorpublic void dataComplete()
dataComplete in interface IGatewayOutputProcessorpublic OrderedMap getWordDocumentMap()
public OrderedMap getWordDocumentMap(WordCountComparator sortBy)
public void initialize(java.util.Map initParams)
IGatewayOutputProcessor
initialize in interface IGatewayOutputProcessorpublic void initialize(org.w3c.dom.Element outputProcElem)
initialize in interface IResultSetProcessor
public void initialize(org.w3c.dom.Element outputProcElem,
ISearchFieldMap sfMap)
IGatewayOutputProcessor
initialize in interface IGatewayOutputProcessorpublic java.lang.String getConfigurationXML()
getConfigurationXML in interface IGatewayOutputProcessorpublic void setOutputProcessor(IGatewayOutputProcessor outputProc)
public java.lang.String getRelatedDocumentSetKey()
public java.lang.String getResultKeyField()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||