java.lang.Object
com.aquima.interactions.matching.impl.functions.MatchFunction
com.aquima.interactions.matching.impl.functions.fulltext.FullTextMatch
All Implemented Interfaces:
IMatchFunction

public final class FullTextMatch extends MatchFunction

Copyright: Copyright (c) 2002

Company: Everest b.v.

Since:
6.2
Author:
O. Kerpershoek
  • Constructor Details

  • Method Details

    • getSupportedTypes

      public DataType[] getSupportedTypes()
      Description copied from interface: IMatchFunction
      This method returns an array of data types that are supported by this match function.
      Returns:
      an array of data types that are supported by this match function.
    • onLoadComplete

      public void onLoadComplete()
      Description copied from interface: IMatchFunction
      This method is invoked by the casebase after all the cases have been initialized. The onLoadComplete method may be used to optimize or adjust weight values based on the distribution of the case values.
      Specified by:
      onLoadComplete in interface IMatchFunction
      Overrides:
      onLoadComplete in class MatchFunction
    • getDictionary

      protected Dictionary getDictionary()
    • supplyValueFor

      public IMatchValue supplyValueFor(IValue attrValue)
      Description copied from interface: IMatchFunction
      This method is invoked to convert a value object to a matchable supply value.
      Parameters:
      attrValue - The value object that should be converted.
      Returns:
      The supply value for the object value.
    • demandValueFor

      public IMatchValue demandValueFor(IValue attrValue)
      Description copied from interface: IMatchFunction
      This method is invoked to convert a value object to a matchable demand value.
      Parameters:
      attrValue - The value object that should be converted.
      Returns:
      The demand value for the object value.
    • getDocumentFrequency

      protected int getDocumentFrequency(IndexTerm term)
    • getDocumentCount

      protected int getDocumentCount()
    • match

      public int match(IMatchValue vraagObj, IMatchValue aanbodObj)
      Description copied from interface: IMatchFunction
      This method should compare the demand value against the supply value and determine the match score.
      Parameters:
      vraagObj - The value that is demanded.
      aanbodObj - The value that is supplied.
      Returns:
      The match score for the supply and demand combination.