mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-03 20:07:09 +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
1
http-ui/Cargo.lock
generated
1
http-ui/Cargo.lock
generated
|
@ -1335,7 +1335,6 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
|
|||
checksum = "9fe9037165d7023b1228bc4ae9a2fa1a2b0095eca6c2998c624723dfd01314a5"
|
||||
dependencies = [
|
||||
"num-traits",
|
||||
"serde",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
|
|
|
@ -702,7 +702,7 @@ async fn main() -> anyhow::Result<()> {
|
|||
|
||||
let number_of_candidates = candidates.len();
|
||||
let facets = if query.facet_distribution == Some(true) {
|
||||
Some(index.facets(&rtxn).candidates(candidates).execute().unwrap())
|
||||
Some(index.facets_distribution(&rtxn).candidates(candidates).execute().unwrap())
|
||||
} else {
|
||||
None
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue