com.raritantechnologies.searchApp.resultComparators
Class ResultDocumentMatcher
java.lang.Object
com.raritantechnologies.searchApp.resultComparators.ResultDocumentMatcher
- All Implemented Interfaces:
- IConfigurable, IResultMatcher
- public class ResultDocumentMatcher
- extends java.lang.Object
- implements IResultMatcher
Uses an IDocumentMatcher that can do advanced query matching on the result text.
XML Configuration Template:
<ResultMatcher class="com.raritantechnologies.searchApp.resultComparators.ResultDocumentMatcher"
textFields="[ comma separated list of text fields to examine ]" >
<DocumentMatcher class="[ class of com.raritantechnologies.concept.classifier.IDocumentMatcher ]" >
</DocumentMatcher>
</ResultMatcher>
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ResultDocumentMatcher
public ResultDocumentMatcher()
ResultDocumentMatcher
public ResultDocumentMatcher(IDocumentMatcher docMatcher)
ResultDocumentMatcher
public ResultDocumentMatcher(IDocumentMatcher docMatcher,
java.lang.String[] textFields)
setDocumentMatcher
public void setDocumentMatcher(IDocumentMatcher docMatcher)
equals
public boolean equals(ILoginInfo user,
IResult result)
- Specified by:
equals in interface IResultMatcher
initialize
public void initialize(org.w3c.dom.Element elem)
- Description copied from interface:
IConfigurable
- Initializes the object from an XML tag or element.
This method is called by the Framework as part of the application initializtion.
see ConfigurationManager, XMLConfigurationManager, XMLSearchFieldMapFactory, XMLSearchSourceFactory.
Configurable objects that are owned or contained by other configurable objects will be initialized
in by the parent object.
- Specified by:
initialize in interface IConfigurable
getConfigurationXML
public java.lang.String getConfigurationXML()
- Specified by:
getConfigurationXML in interface IResultMatcher
getConfigurationXML
public java.lang.String getConfigurationXML(java.lang.String configurationTemplate)
- Specified by:
getConfigurationXML in interface IResultMatcher