Class OntologySearchSource

java.lang.Object
ubic.gemma.core.search.source.OntologySearchSource
All Implemented Interfaces:
SearchSource

@Component public class OntologySearchSource extends Object implements SearchSource
Ontology-driven 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.