Class OntologySearchSource
- All Implemented Interfaces:
SearchSource
SearchSource for ExpressionExperiment discovery
via Characteristic URIs.
Phase 3 restoration. This class was deleted wholesale in the Phase 2
"stub/delete search subsystem cascade" commit (ed93c2f023) and is restored here
per SEARCH_RECCE.md Section 6.3 Step 5. The body is the pre-strip
implementation (416 LoC) with one adjustment: the findExperimentsByUris
call uses the current public CharacteristicService signature
(which carries an explicit loadEEs parameter).
Known runtime gap (2026-05-19). This source consumes
OntologyService.findTerms(String, int, long, TimeUnit), which in turn
routes through baseCode's pre-renovations findTerm machinery.
baseCode 1.1.34-RENOVATIONS-SNAPSHOT stubbed its Lucene-3 indexer and exposes
no public hook for the in-Gemma OntologySearchService
(jena-text / Lucene 9) to slot under it. Until either baseCode gains
such a hook, or Gemma's OntologyServiceImpl.findTerms is rewired to
also consult OntologySearchService,
full-text ontology search will return empty results and only the term-URI
exact-match path through CharacteristicService.findBestByUri(String)
will populate. See SEARCH_RECCE.md Section 6 for the architectural
gap recce and the path to closing it.
-
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) searchExpressionExperiment(SearchSettings settings, SearchContext context) Search via characteristics i.e.
-
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.- Specified by:
searchExpressionExperimentin interfaceSearchSource- Throws:
SearchException
-
highlightTerm
-