mirror of
https://github.com/meilisearch/meilisearch.git
synced 2025-07-27 00:31:02 +00:00
enable search with get route
This commit is contained in:
@ -1,7 +1,7 @@
|
||||
mod search;
|
||||
mod updates;
|
||||
|
||||
pub use search::{SearchQuery, SearchResult};
|
||||
pub use search::{SearchQuery, SearchResult, DEFAULT_SEARCH_LIMIT};
|
||||
|
||||
use std::fs::create_dir_all;
|
||||
use std::ops::Deref;
|
||||
@ -28,7 +28,7 @@ impl Deref for Data {
|
||||
#[derive(Clone)]
|
||||
pub struct DataInner {
|
||||
pub index_controller: Arc<LocalIndexController>,
|
||||
api_keys: ApiKeys,
|
||||
pub api_keys: ApiKeys,
|
||||
options: Opt,
|
||||
}
|
||||
|
||||
|
@ -11,7 +11,7 @@ use serde_json::{Value, Map};
|
||||
use crate::index_controller::IndexController;
|
||||
use super::Data;
|
||||
|
||||
const DEFAULT_SEARCH_LIMIT: usize = 20;
|
||||
pub const DEFAULT_SEARCH_LIMIT: usize = 20;
|
||||
|
||||
const fn default_search_limit() -> usize { DEFAULT_SEARCH_LIMIT }
|
||||
|
||||
|
Reference in New Issue
Block a user