Package ubic.gemma.core.search.source
Class OntologySearchSource
java.lang.Object
ubic.gemma.core.search.source.OntologySearchSource
- All Implemented Interfaces:
SearchSource
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanaccepts(SearchSettings settings) Indicate if this source accepts the given search settings.highlightTerm(Highlighter highlighter, String termUri, String termLabel, String field) Highlight a given ontology term.searchExpressionExperiment(SearchSettings settings, SearchContext context) Search via characteristics i.e.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ubic.gemma.core.search.SearchSource
searchArrayDesign, searchBibliographicReference, searchBioSequence, searchBioSequenceAndGene, searchBlacklistedEntities, searchCompositeSequence, searchCompositeSequenceAndGene, searchExperimentSet, searchGene, searchGeneSet
-
Constructor Details
-
OntologySearchSource
public OntologySearchSource()
-
-
Method Details
-
accepts
Description copied from interface:SearchSourceIndicate if this source accepts the given search settings.- Specified by:
acceptsin interfaceSearchSource
-
searchExpressionExperiment
public Collection<SearchResult<ExpressionExperiment>> searchExpressionExperiment(SearchSettings settings, SearchContext context) throws SearchException Search via characteristics i.e. ontology terms.This is an important type of search but also a point of performance issues. Searches for "specific" terms are generally not a big problem (yielding less than 100 results); searches for "broad" terms can return numerous (thousands) results.
- Specified by:
searchExpressionExperimentin interfaceSearchSource- Throws:
SearchException
-
highlightTerm
@Nullable public Map<String,String> highlightTerm(@Nullable Highlighter highlighter, String termUri, String termLabel, String field) Highlight a given ontology term.- Returns:
- a highlight, or null if no provider is set or the provider returns null
-