mirror of
https://github.com/meilisearch/MeiliSearch
synced 2024-12-24 13:40:31 +01:00
It is an error to merge docid word positions
This commit is contained in:
parent
ce8e56ee18
commit
67577a3760
@ -601,9 +601,8 @@ fn word_docids_merge(_key: &[u8], values: &[Vec<u8>]) -> Result<Vec<u8>, ()> {
|
||||
Ok(vec)
|
||||
}
|
||||
|
||||
fn docid_word_positions_merge(_key: &[u8], values: &[Vec<u8>]) -> Result<Vec<u8>, ()> {
|
||||
assert!(values.windows(2).all(|vs| vs[0] == vs[1]));
|
||||
Ok(values[0].to_vec())
|
||||
fn docid_word_positions_merge(key: &[u8], _values: &[Vec<u8>]) -> Result<Vec<u8>, ()> {
|
||||
panic!("merging word docid positions is an error ({:?})", key.as_bstr())
|
||||
}
|
||||
|
||||
fn words_pairs_proximities_docids_merge(_key: &[u8], values: &[Vec<u8>]) -> Result<Vec<u8>, ()> {
|
||||
@ -621,7 +620,7 @@ fn words_pairs_proximities_docids_merge(_key: &[u8], values: &[Vec<u8>]) -> Resu
|
||||
}
|
||||
|
||||
fn documents_merge(key: &[u8], _values: &[Vec<u8>]) -> Result<Vec<u8>, ()> {
|
||||
panic!("impossible to merge documents ({:?})", key.as_bstr())
|
||||
panic!("merging documents is an error ({:?})", key.as_bstr())
|
||||
}
|
||||
|
||||
fn merge_into_lmdb_database(
|
||||
|
Loading…
x
Reference in New Issue
Block a user