mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-21 05:45:37 +08:00
Neither is on the production read path. Lazy search goes through the populator-built whoosh index (LazyToolboxSearch -> ToolWhooshIndex), and /api/sanitize_allow builds its response from config.sanitize_allowlist against the toolbox. The two ToolIndex methods were called only from benchmarks.py and unit tests, and ToolIndex.search's token ranking diverged from whoosh's BM25F — a correctness trap. Remove both (whoosh search stays covered by test_multi_store_search.py); keep the reusable per-entry ToolIndexEntry.to_sanitize_entry projection. Claude-Session: https://claude.ai/code/session_018L7ZmCv2ubKA3JNeSL8Pkr