apply review comments

This commit is contained in:
Tamo 2025-01-07 16:24:26 +01:00
parent 8ebfc9fa92
commit ae5a04e85c
No known key found for this signature in database
GPG Key ID: 20CD8020AFA88D69
2 changed files with 2 additions and 6 deletions

View File

@ -471,10 +471,6 @@ pub enum Kind {
}
impl Kind {
pub fn all_variants() -> Vec<Self> {
enum_iterator::all::<Kind>().collect()
}
pub fn related_to_one_index(&self) -> bool {
match self {
Kind::DocumentAdditionOrUpdate

View File

@ -673,7 +673,7 @@ pub struct SearchResult {
#[serde(flatten)]
pub hits_info: HitsInfo,
#[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>>>,
#[serde(skip_serializing_if = "Option::is_none")]
pub facet_stats: Option<BTreeMap<String, FacetStats>>,
@ -1043,7 +1043,7 @@ pub fn perform_search(
#[derive(Debug, Clone, Default, Serialize, ToSchema)]
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 stats: BTreeMap<String, FacetStats>,
}