mirror of
https://github.com/meilisearch/meilisearch.git
synced 2025-07-23 23:00:59 +00:00
add the limit field to http-ui
This commit is contained in:
@ -683,6 +683,7 @@ async fn main() -> anyhow::Result<()> {
|
||||
filters: Option<String>,
|
||||
facet_filters: Option<Vec<UntaggedEither<Vec<String>, String>>>,
|
||||
facet_distribution: Option<bool>,
|
||||
limit: Option<usize>,
|
||||
}
|
||||
|
||||
#[derive(Debug, Serialize)]
|
||||
@ -735,6 +736,10 @@ async fn main() -> anyhow::Result<()> {
|
||||
search.filter(condition);
|
||||
}
|
||||
|
||||
if let Some(limit) = query.limit {
|
||||
search.limit(limit);
|
||||
}
|
||||
|
||||
let SearchResult { matching_words, candidates, documents_ids } =
|
||||
search.execute().unwrap();
|
||||
|
||||
|
Reference in New Issue
Block a user