diff options
| author | Alexander_Kabui <alexanderkabui@proton.me> | 2026-11-17 12:11:19 +0300 |
|---|---|---|
| committer | Alexander_Kabui <alexanderkabui@proton.me> | 2026-11-17 14:06:50 +0300 |
| commit | f76043bf82b6c86b5e844b27b53e957d770aeb33 (patch) | |
| tree | 5b4257c2523410f077e9fbc4f71f3fd797360b9f /tests/search_native_dev_corpus.rs | |
| parent | e13bbd27d0b7addd277d0f50d9e90fee2a936211 (diff) | |
| download | genenetwork4-search/extract-engine.tar.gz | |
* src/search (engine): no default arm, so a wrong name is refused. search/extract-engine
An unrecognised SEARCH_ENGINE used to fall through to the gn3 proxy, which turned a typo into a silently different engine. The arms are now explicit - "crate"/"native" for the in-process engine, "forward" for the proxy - and anything else returns the value it was given. src/search/native.rs is deleted; the former name resolves through the same arm.
Diffstat (limited to 'tests/search_native_dev_corpus.rs')
| -rw-r--r-- | tests/search_native_dev_corpus.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/search_native_dev_corpus.rs b/tests/search_native_dev_corpus.rs index 66ed86a..de118fc 100644 --- a/tests/search_native_dev_corpus.rs +++ b/tests/search_native_dev_corpus.rs @@ -28,7 +28,7 @@ //! - `XAPIAN_DB_PATH` — the dev index directory; //! - `GN4_DEV_CORPUS_DIR` — output directory for the full corpus. -use genenetwork4::search::{Engine, SearchError, SearchHit, native::Native}; +use genenetwork4::search::{Engine, SearchError, SearchHit, gnindex::CrateEngine}; /// One row of the harness's shape table, parsed from its source. struct RecordedShape { @@ -172,7 +172,7 @@ async fn record_dev_corpus() { let mut recorded = 0usize; for shape in &shapes { let path = std::path::Path::new(&out_dir).join(format!("{}.json", shape.id)); - let search = Native + let search = CrateEngine::from_config() .search(&shape.raw_query, &shape.kind, RECORD_FETCH_LIMIT, 1) .await; match shape.class.as_str() { |
