use crate::segment::json_path::JsonPath;
use crate::segment::types::Filter;
use crate::shard::facet::FacetRequestInternal;
#[derive(Clone, Debug, PartialEq)]
pub struct FacetRequest {
pub key: JsonPath,
pub limit: usize,
pub filter: Option<Filter>,
pub exact: bool,
}
impl FacetRequest {
pub fn new(key: JsonPath) -> Self {
Self {
key,
limit: FacetRequestInternal::DEFAULT_LIMIT,
filter: None,
exact: false,
}
}
}