From d082ca4fd11b6d639378be22f9fff75ee42975b9 Mon Sep 17 00:00:00 2001 From: Kerollmops Date: Sun, 24 Jun 2018 19:37:38 +0200 Subject: [PATCH] feat: Remove env variable search output limit lookup --- raptor-search/src/main.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/raptor-search/src/main.rs b/raptor-search/src/main.rs index 5bd8be798..503571599 100644 --- a/raptor-search/src/main.rs +++ b/raptor-search/src/main.rs @@ -17,8 +17,7 @@ fn search(map: &DocIndexMap, lev_builder: &LevBuilder, query: &str) { automatons.push(lev); } - let limit: Option = env::var("RAPTOR_OUTPUT_LIMIT").ok().and_then(|x| x.parse().ok()); - let mut stream = RankedStream::new(&map, map.values(), automatons, limit.unwrap_or(20)); + let mut stream = RankedStream::new(&map, map.values(), automatons, 20); while let Some(document_id) = stream.next() { print!("{:?}", document_id);