Add server-side full-text experiment search with SQLite FTS5 - #199
Merged
Conversation
Replace client-side filtering of the full ExperimentList.json with a server-side FTS5 search endpoint (GET /data/search). The FTS5 virtual table is populated from ExperimentList_adv.json at app startup and supports ranked full-text search across all experiment fields including SRA/GEO IDs, title, and attributes. The MCP tool now calls this endpoint instead of downloading the entire experiment list. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
experiments_fts) populated fromExperimentList_adv.jsonat app startup, enabling fast ranked full-text search across all experiment fields (SRX/SRA/GEO IDs, genome, antigen, cell type, title, attributes)GET /data/searchendpoint with params:q(required),genome(optional filter),limit(optional, default 20, max 100)chipatlas_search_experimentstool to use the new server-side endpoint instead of downloading the entire ExperimentList.json and filtering client-sideTest plan
rake db:migrateto create the FTS5 tablecurl "http://localhost:9292/data/search?q=H3K4me3&limit=5"— returns ranked resultscurl "http://localhost:9292/data/search?q=HeLa&genome=hg38"— genome filtering workschipatlas_search_experimentstool returns results with the newgenomeparameter🤖 Generated with Claude Code