mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-04 20:37:15 +02:00
feat: Allow querying ranges in the results list
This commit is contained in:
parent
8cd07462aa
commit
3acac1458f
4 changed files with 29 additions and 13 deletions
|
@ -73,7 +73,7 @@ fn search(metadata: &Metadata, database: &DB, common_words: &CommonWords, query:
|
|||
builder.criteria(criterion::default());
|
||||
|
||||
let mut stream = builder.build();
|
||||
let documents = stream.retrieve_documents(20);
|
||||
let documents = stream.retrieve_documents(0..20);
|
||||
|
||||
for document in documents {
|
||||
let id_key = format!("{}-id", document.id);
|
||||
|
|
|
@ -103,7 +103,7 @@ where M: AsRef<Metadata>,
|
|||
builder.criteria(criterion::default());
|
||||
|
||||
let mut stream = builder.build();
|
||||
let documents = stream.retrieve_documents(20);
|
||||
let documents = stream.retrieve_documents(0..20);
|
||||
|
||||
let mut body = Vec::new();
|
||||
write!(&mut body, "[")?;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue