mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-15 13:58:36 +02:00
Add document import tests
This commit is contained in:
parent
ae59d37b75
commit
cda4ba2bb6
3 changed files with 547 additions and 7 deletions
|
@ -366,8 +366,9 @@ mod tests {
|
|||
use crate::documents::documents_batch_reader_from_objects;
|
||||
use crate::heed_codec::facet::OrderedF64Codec;
|
||||
use crate::heed_codec::StrRefCodec;
|
||||
use crate::milli_snap;
|
||||
use crate::index::tests::TempIndex;
|
||||
use crate::update::facet::test_helpers::{ordered_string, FacetIndex};
|
||||
use crate::{db_snap, milli_snap};
|
||||
|
||||
#[test]
|
||||
fn insert() {
|
||||
|
@ -492,7 +493,6 @@ mod tests {
|
|||
db_snap!(index, number_faceted_documents_ids, "initial", @"01594fecbb316798ce3651d6730a4521");
|
||||
}
|
||||
|
||||
|
||||
#[test]
|
||||
fn insert_string() {
|
||||
let test = |name: &str, group_size: u8, min_level_size: u8| {
|
||||
|
|
|
@ -66,9 +66,6 @@ impl<'t, 'u, 'i> PrefixWordPairsProximityDocids<'t, 'u, 'i> {
|
|||
common_prefix_fst_words: &[&'a [String]],
|
||||
del_prefix_fst_words: &HashSet<Vec<u8>>,
|
||||
) -> Result<()> {
|
||||
println!("{new_prefix_fst_words:?}");
|
||||
println!("{common_prefix_fst_words:?}");
|
||||
println!("{del_prefix_fst_words:?}");
|
||||
index_word_prefix_database(
|
||||
self.wtxn,
|
||||
self.index.word_pair_proximity_docids,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue