/*
* opensearch-client
*
* Rust Client for OpenSearch
*
* The version of the OpenAPI document: 3.1.0
* Contact: alberto.paro@gmail.com
* Generated by Paro OpenAPI Generator
*/
use serde::{Deserialize, Serialize};
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct ChiSquareHeuristic { /// Set to `false` to filter out the terms that appear less often in the subset than in documents outside the subset.
#[serde(rename = "include_negatives")]
pub include_negatives: bool, /// Set to `false` if you defined a custom background filter that represents a different set of documents that you want to compare to.
#[serde(rename = "background_is_superset")]
pub background_is_superset: bool,
}
impl ChiSquareHeuristic {
pub fn new(include_negatives: bool, background_is_superset: bool) -> ChiSquareHeuristic {
ChiSquareHeuristic {
include_negatives,
background_is_superset,
}
}
}