mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-03 03:47:02 +02:00
Document that the LevelEntry fields order is important
This commit is contained in:
parent
0b97596c93
commit
7c157fc442
1 changed files with 3 additions and 0 deletions
|
@ -56,6 +56,9 @@ pub fn count_iterate_over_facet_distribution<'t, CB>(
|
||||||
where
|
where
|
||||||
CB: FnMut(&'t [u8], u64, DocumentId) -> Result<ControlFlow<()>>,
|
CB: FnMut(&'t [u8], u64, DocumentId) -> Result<ControlFlow<()>>,
|
||||||
{
|
{
|
||||||
|
/// # Important
|
||||||
|
/// The order of the fields determines the order in which the facet values will be returned.
|
||||||
|
/// This struct is inserted in a BinaryHeap and popped later on.
|
||||||
#[derive(Debug, PartialOrd, Ord, PartialEq, Eq)]
|
#[derive(Debug, PartialOrd, Ord, PartialEq, Eq)]
|
||||||
struct LevelEntry<'t> {
|
struct LevelEntry<'t> {
|
||||||
/// The number of candidates in this entry.
|
/// The number of candidates in this entry.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue