Interface IDfResultRaterFactory


public interface IDfResultRaterFactory
Creates ResultRater instances.
  • Method Summary

    Modifier and Type
    Method
    Description
    create(IDfQueryDefinition queryDefinition)
    Creates an IDfResultRater instance.
  • Method Details

    • create

      IDfResultRater create(IDfQueryDefinition queryDefinition) throws DfSearchException
      Creates an IDfResultRater instance. The implementing factory may throw a DfSearchException if the query definition is not supported by the result rater, because the rater is unable to compute scores for results retrieved by the query definition.
      Parameters:
      queryDefinition - The query definition that will be used by the IDfResultRater to compute the relevancy of results.
      Returns:
      An IDfResultRater.
      Throws:
      DfSearchException - If the query definition is not applicable to the result rater (the rater cannot compute any score for the query definition).