|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.raritantechnologies.concept.classifier.ResultTypeTermProcessor
Creates a map of result 'type' to the number of 'hits' for each token in the result text fields. Used as a backup for inferential search: to rapidly choose the most likely content type for a query.
XML Configuration Template:
<OutputProcessor class="com.raritantechnologies.concept.classifier.ResultTypeTermProcessor"
fileName="[ name of Term Map data file ]"
resultTypeField="[ result field that has the 'type' metadata ]"
textFields="[ comma separated list of fields that have tokenizable text ]" />
| Nested Class Summary | |
class |
ResultTypeTermProcessor.Count
|
| Constructor Summary | |
ResultTypeTermProcessor()
|
|
| Method Summary | |
void |
dataComplete()
Data feed is complete. |
java.lang.String |
getConfigurationXML()
|
static java.util.Map |
getResultTypeMap(java.lang.String termMapFile)
|
java.util.Map |
getResultTypeTermMap()
|
java.util.Map |
getResultTypeTermMap(java.lang.String countType)
|
void |
initialize(org.w3c.dom.Element elem)
Initialize the from XML Element. |
void |
initialize(org.w3c.dom.Element outputProcElem,
ISearchFieldMap sfMap)
Initialize the GatewayOutputProcessor from XML Configuration Element. |
void |
initialize(java.util.Map initParameters)
Used for dynamic initialization (connection, collection name, file name, etc.) |
protected void |
initialzeTermMap(java.lang.String countType)
|
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) |
protected void |
storeTermMap()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ResultTypeTermProcessor()
| 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()
IResultSetProcessor
dataComplete in interface IResultSetProcessorprotected void initialzeTermMap(java.lang.String countType)
protected void storeTermMap()
public java.util.Map getResultTypeTermMap()
public java.util.Map getResultTypeTermMap(java.lang.String countType)
public static java.util.Map getResultTypeMap(java.lang.String termMapFile)
public void initialize(org.w3c.dom.Element outputProcElem,
ISearchFieldMap sfMap)
IGatewayOutputProcessor
initialize in interface IGatewayOutputProcessorpublic void initialize(org.w3c.dom.Element elem)
IResultSetProcessor
initialize in interface IResultSetProcessorpublic void initialize(java.util.Map initParameters)
initialize in interface IResultSetProcessorpublic java.lang.String getConfigurationXML()
getConfigurationXML in interface IGatewayOutputProcessor
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||