diff options
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() { |
