mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-04 20:37:15 +02:00
Rename the Index facets method into facets_distribution
This commit is contained in:
parent
433ac8c38a
commit
65b821b192
4 changed files with 3 additions and 4 deletions
|
@ -351,7 +351,7 @@ impl Index {
|
|||
Ok(self.documents_ids(rtxn).map(|docids| docids.len() as usize)?)
|
||||
}
|
||||
|
||||
pub fn facets<'a>(&'a self, rtxn: &'a RoTxn) -> FacetDistribution<'a> {
|
||||
pub fn facets_distribution<'a>(&'a self, rtxn: &'a RoTxn) -> FacetDistribution<'a> {
|
||||
FacetDistribution::new(rtxn, self)
|
||||
}
|
||||
|
||||
|
|
|
@ -76,7 +76,7 @@ pub fn run(opt: Opt) -> anyhow::Result<()> {
|
|||
}
|
||||
|
||||
if opt.print_facet_distribution {
|
||||
let facets = index.facets(&rtxn).candidates(result.candidates).execute()?;
|
||||
let facets = index.facets_distribution(&rtxn).candidates(result.candidates).execute()?;
|
||||
serde_json::to_writer(&mut stdout, &facets)?;
|
||||
let _ = writeln!(&mut stdout);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue