mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-01-09 13:04:30 +01:00
apply review comments
This commit is contained in:
parent
8ebfc9fa92
commit
ae5a04e85c
@ -471,10 +471,6 @@ pub enum Kind {
|
|||||||
}
|
}
|
||||||
|
|
||||||
impl Kind {
|
impl Kind {
|
||||||
pub fn all_variants() -> Vec<Self> {
|
|
||||||
enum_iterator::all::<Kind>().collect()
|
|
||||||
}
|
|
||||||
|
|
||||||
pub fn related_to_one_index(&self) -> bool {
|
pub fn related_to_one_index(&self) -> bool {
|
||||||
match self {
|
match self {
|
||||||
Kind::DocumentAdditionOrUpdate
|
Kind::DocumentAdditionOrUpdate
|
||||||
|
@ -673,7 +673,7 @@ pub struct SearchResult {
|
|||||||
#[serde(flatten)]
|
#[serde(flatten)]
|
||||||
pub hits_info: HitsInfo,
|
pub hits_info: HitsInfo,
|
||||||
#[serde(skip_serializing_if = "Option::is_none")]
|
#[serde(skip_serializing_if = "Option::is_none")]
|
||||||
#[schema(value_type = HashMap<String, Value>)]
|
#[schema(value_type = Option<BTreeMap<String, Value>>)]
|
||||||
pub facet_distribution: Option<BTreeMap<String, IndexMap<String, u64>>>,
|
pub facet_distribution: Option<BTreeMap<String, IndexMap<String, u64>>>,
|
||||||
#[serde(skip_serializing_if = "Option::is_none")]
|
#[serde(skip_serializing_if = "Option::is_none")]
|
||||||
pub facet_stats: Option<BTreeMap<String, FacetStats>>,
|
pub facet_stats: Option<BTreeMap<String, FacetStats>>,
|
||||||
@ -1043,7 +1043,7 @@ pub fn perform_search(
|
|||||||
|
|
||||||
#[derive(Debug, Clone, Default, Serialize, ToSchema)]
|
#[derive(Debug, Clone, Default, Serialize, ToSchema)]
|
||||||
pub struct ComputedFacets {
|
pub struct ComputedFacets {
|
||||||
#[schema(value_type = Option<BTreeMap<String, BTreeMap<String, u64>>>)]
|
#[schema(value_type = BTreeMap<String, BTreeMap<String, u64>>)]
|
||||||
pub distribution: BTreeMap<String, IndexMap<String, u64>>,
|
pub distribution: BTreeMap<String, IndexMap<String, u64>>,
|
||||||
pub stats: BTreeMap<String, FacetStats>,
|
pub stats: BTreeMap<String, FacetStats>,
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user