Class SearchResultItemImpl<T>

java.lang.Object
org.opencastproject.elasticsearch.impl.SearchResultItemImpl<T>
All Implemented Interfaces:
Comparable<SearchResultItem<T>>, SearchResultItem<T>

public class SearchResultItemImpl<T> extends Object implements SearchResultItem<T>
Default implementation of a SearchResultItem.
  • Field Details

    • source

      protected T source
      Source of the search result
    • score

      protected double score
      Score within the search result
  • Constructor Details

    • SearchResultItemImpl

      public SearchResultItemImpl(double relevance, T source)
      Creates a new search result item with the given uri. The source is the object that created the item, usually, this will be the site itself but it could very well be a module that added to a search result.
      Parameters:
      relevance - the score inside the search result
      source - the object that produced the result item
  • Method Details