|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.raritantechnologies.autonomy.category.AutonomyClassifierOutputProcessor
Generates Autonomy Category Nodes. Pushes them to IDOL using the ACI interface.
XML Configuration Template:
<OutputProcessor class="com.raritantechnologies.autonomy.category.AutonomyClassifierOutputProcessor"
aciHost="[ ACI host ]"
aciPort="[ ACI port ]"
aciUserID="[ user ID to ACI ]"
databases="[ comma separated list of IDOL collections to be categorized by this category ]"
nameAttribute="[ NAME | ID | PATH | tree node attribute that contains category name ]"
booleanAttribute="[ tree node attribute that contains boolean query ]"
trainingTextAttribute="[ tree node attribute that contains training text ]"
fieldTextAttribute="[ tree node attribute that contains field text ]"
termAttribute="[ tree node attribute (or result field) that contains terms ]"
standardTermWeight="[ integer constant to be used as term weight factor ]"
processMode="[ CREATE (default) | UPDATE ]" >
<!-- If used as GatewayOutputProcessor, need to have a ResultPathTreeBuilder -->
<ResultPathTreeBuilder>
</ResultPathTreeBuilder>
<!-- Optional com.raritantechnologies.utils.tree.filter.ITreeFilter to pre-process Tree before uploading to IDOL -->
<TreeFilter>
</TreeFilter>
<!-- IResultMatcher to select results for Terms N Weights -->
<ResultTermMatcher class="[ class of com.raritantechnologies.searchApp.IResultMatcher ]"
termField="[ field in result that contains term ]"
weightField="[ field in result that has weight ]" >
</ResultTermMatcher>
<TrainingDocResultMatcher class="[ class of com.raritantechnologies.searchApp.IResultMatcher ]"
documentReferenceField="[ field in result that has document URL ]"
documentTitleField="[ field in result that has document title ]"
documentContentField="[ field in result that has document content ]" >
</TrainingDocResultMatcher>
<CategoryFields >
<Field categoryName="[ name of category field ]" resultField="[ name of result field ]" />
</CategoryFields>
</OutputProcessor>
| Constructor Summary | |
AutonomyClassifierOutputProcessor()
|
|
| Method Summary | |
void |
dataComplete()
Data feed is complete. |
java.lang.String |
getConfigurationXML()
|
void |
initialize(org.w3c.dom.Element elem)
Initializes the object from an XML tag or 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.) |
java.lang.String |
processData(IResultSet data)
returns name of XML File created/appended. |
void |
processTree(TreeRoot tree)
|
void |
updateCategory(Category category,
TreeNode treeNode,
ChannelsFunctionality channels)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public AutonomyClassifierOutputProcessor()
| Method Detail |
public java.lang.String processData(IResultSet data)
IGatewayOutputProcessor
processData in interface IGatewayOutputProcessorpublic void processTree(TreeRoot tree)
processTree in interface ITreeProcessor
public void updateCategory(Category category,
TreeNode treeNode,
ChannelsFunctionality channels)
public void dataComplete()
dataComplete in interface IGatewayOutputProcessor
public void initialize(org.w3c.dom.Element outputProcElem,
ISearchFieldMap sfMap)
initialize in interface IGatewayOutputProcessorpublic void initialize(org.w3c.dom.Element elem)
IConfigurable
initialize in interface IConfigurablepublic void initialize(java.util.Map initParameters)
initialize in interface IGatewayOutputProcessorpublic java.lang.String getConfigurationXML()
getConfigurationXML in interface IGatewayOutputProcessor
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||