mirror of
https://github.com/meilisearch/MeiliSearch
synced 2024-12-23 21:20:24 +01:00
Document that the LevelEntry fields order is important
This commit is contained in:
parent
0b97596c93
commit
7c157fc442
@ -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…
x
Reference in New Issue
Block a user