Interface Result


public interface Result
The Result is used to supplement Metacard fields when a Metacard is returned from a query. It adds a relevance score and distance in meters to the Metacard's existing attributes.
See Also:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
    Constant used to specify a sort policy based on distance.
    static final String
    Constant used to specify a sort policy based on relevance.
    static final String
    Constant used to specify a sort policy based on temporal data.
  • Method Summary

    Modifier and Type
    Method
    Description
    Gets the distance in meters.
    Gets the Metacard wrapped by this Result.
    Gets the relevance score.
  • Field Details

  • Method Details

    • getMetacard

      Metacard getMetacard()
      Gets the Metacard wrapped by this Result.
      Returns:
      the Metacard wrapped by this Result
    • getRelevanceScore

      Double getRelevanceScore()
      Gets the relevance score.
      Returns:
      relevance score (typical range of 0-1, values over 1 are those that have been boosted)
    • getDistanceInMeters

      Double getDistanceInMeters()
      Gets the distance in meters.
      Returns:
      distance in meters, null if Result was not part of a search that was sorted by distance.