mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-03 11:57:07 +02:00
fix get search crop len
This commit is contained in:
parent
25af262e79
commit
9cc31c2258
3 changed files with 7 additions and 5 deletions
|
@ -13,7 +13,7 @@ use serde_json::{Map, Value};
|
|||
use crate::helpers::EnvSizer;
|
||||
use error::Result;
|
||||
|
||||
pub use search::{SearchQuery, SearchResult, DEFAULT_SEARCH_LIMIT};
|
||||
pub use search::{SearchQuery, SearchResult, DEFAULT_SEARCH_LIMIT, default_crop_length};
|
||||
pub use updates::{Checked, Facets, Settings, Unchecked};
|
||||
|
||||
use self::error::IndexError;
|
||||
|
|
|
@ -23,7 +23,7 @@ const fn default_search_limit() -> usize {
|
|||
}
|
||||
|
||||
pub const DEFAULT_CROP_LENGTH: usize = 200;
|
||||
const fn default_crop_length() -> usize {
|
||||
pub const fn default_crop_length() -> usize {
|
||||
DEFAULT_CROP_LENGTH
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue