Class SearchResult<T extends Identifiable>

java.lang.Object
ubic.gemma.core.search.SearchResult<T>
All Implemented Interfaces:
Comparable<SearchResult<?>>

public class SearchResult<T extends Identifiable> extends Object implements Comparable<SearchResult<?>>
Represents an individual search result.

Search result minimally have a type and ID and may have their result object populated at a later time via setResultObject(Identifiable).

Results have a score and possibly number of highlights. Two results are considered equal if they have the same type and ID. You may use a SearchResultSet to combine results in a sensible way, retaining result objects and highlights when a better result is added.

Author:
paul, poirigui
See Also:
  • Constructor Details

    • SearchResult

      public SearchResult()
  • Method Details