com.raritantechnologies.rql.map
Class RQLMapQueryResultMatcher

java.lang.Object
  extended bycom.raritantechnologies.rql.map.RQLMapQueryResultMatcher
All Implemented Interfaces:
IConfigurable, IQueryResultMatcher

public class RQLMapQueryResultMatcher
extends java.lang.Object
implements IQueryResultMatcher

Uses an RQLMapTopicBuilder to create an RQLMap from the input query parameters. Then uses a DocumentClassifier to determine if an IResult matches.

XML Configuration Template:
  <QueryResultMatcher class="com.raritantechnologies.rql.map.RQLMapQueryResultMatcher" >

    <IndexedFields>
      <!-- Unfiltered field: -->
      <Field ID="[ ID of result field to be indexed ]" useFieldNameDelimiter="true|false(default)" />

      <Field ID="[ ID of result field to be indexed ]" >
        <StringFilter class="[ class of com.raritantechnologies.utils.filter.IStringFilter ]" >

        </StringFilter>
      </Field>
    </IndexedFields>

  </QueryResultMatcher>
 

Developed by Raritan Technologies .

Author:
Ted Sullivan

Constructor Summary
RQLMapQueryResultMatcher()
           
 
Method Summary
 boolean equals(ILoginInfo user, OrderedMap queryParams, IResult result)
           
 void initialize(org.w3c.dom.Element elem)
          Initializes the object from an XML tag or element.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RQLMapQueryResultMatcher

public RQLMapQueryResultMatcher()
Method Detail

equals

public boolean equals(ILoginInfo user,
                      OrderedMap queryParams,
                      IResult result)
Specified by:
equals in interface IQueryResultMatcher

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