databrickslabs / databrickslabs/ontos
[Feature]: Estate: Search Integration for Remote Entities
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 212
- Forks
- 71
- Avg merge
- 4d 10h
- Merged PRs (30d)
- 43
Description
Parent PRD
#143
What to build
Extend the search system so remote entities appear inline in search results with proper remote metadata, enabling cross-instance discovery.
- Extend
SearchIndexItemwithis_remote: bool,source_instance_id: Optional[str],source_instance_name: Optional[str]fields - Update
SearchManager.build_index()to queryRemoteEntityMetadataDband populate remote fields on index items for imported entities - No ranking bias between local and remote results
- Update
/api/searchresponse to include the new fields
See "Search Integration" section of the parent PRD.
Acceptance criteria
-
SearchIndexItemhasis_remote,source_instance_id,source_instance_namefields - Remote entities appear in search results with
is_remote=Trueand source metadata populated - Local entities continue to work unchanged (
is_remote=FalseorNone) - No ranking bias between local and remote results
- Stale remote entities are excluded from search (or shown with stale indicator)
- Tests: extend
test_search_manager.pywith remote entity scenarios
Blocked by
- Blocked by #145 (Remote Entity Metadata)
- Blocked by #150 (Import Sync Service)
User stories addressed
- User story 9, 10, 24
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the Search Integration section of parent PRD #143, after reviewing blocked issues #145 and #150. Trace SearchIndexItem, SearchManager.build_index(), RemoteEntityMetadataDb, and the /api/search response, then extend test_search_manager.py with remote scenarios. Done means remote metadata appears without ranking bias, local results remain unchanged, and stale entities follow the agreed behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- api, backend, search
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100