mirror of
https://github.com/meilisearch/meilisearch.git
synced 2024-11-22 18:17:39 +08:00
feat: Remove env variable search output limit lookup
This commit is contained in:
parent
79d8555620
commit
d082ca4fd1
@ -17,8 +17,7 @@ fn search(map: &DocIndexMap, lev_builder: &LevBuilder, query: &str) {
|
|||||||
automatons.push(lev);
|
automatons.push(lev);
|
||||||
}
|
}
|
||||||
|
|
||||||
let limit: Option<usize> = env::var("RAPTOR_OUTPUT_LIMIT").ok().and_then(|x| x.parse().ok());
|
let mut stream = RankedStream::new(&map, map.values(), automatons, 20);
|
||||||
let mut stream = RankedStream::new(&map, map.values(), automatons, limit.unwrap_or(20));
|
|
||||||
while let Some(document_id) = stream.next() {
|
while let Some(document_id) = stream.next() {
|
||||||
print!("{:?}", document_id);
|
print!("{:?}", document_id);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user