mirror of
				https://github.com/meilisearch/meilisearch.git
				synced 2025-11-04 01:46:28 +00:00 
			
		
		
		
	Add logging timers
This commit is contained in:
		@@ -17,6 +17,7 @@ use crate::{FieldId, Result};
 | 
			
		||||
///
 | 
			
		||||
/// Returns the generated internal documents ids and a grenad reader
 | 
			
		||||
/// with the list of extracted words from the given chunk of documents.
 | 
			
		||||
#[logging_timer::time]
 | 
			
		||||
pub fn extract_docid_word_positions<R: io::Read>(
 | 
			
		||||
    mut obkv_documents: grenad::Reader<R>,
 | 
			
		||||
    indexer: GrenadParameters,
 | 
			
		||||
 
 | 
			
		||||
@@ -13,6 +13,7 @@ use crate::Result;
 | 
			
		||||
///
 | 
			
		||||
/// Returns a grenad reader with the list of extracted facet numbers and
 | 
			
		||||
/// documents ids from the given chunk of docid facet number positions.
 | 
			
		||||
#[logging_timer::time]
 | 
			
		||||
pub fn extract_facet_number_docids<R: io::Read>(
 | 
			
		||||
    mut docid_fid_facet_number: grenad::Reader<R>,
 | 
			
		||||
    indexer: GrenadParameters,
 | 
			
		||||
 
 | 
			
		||||
@@ -15,6 +15,7 @@ use crate::{FieldId, Result};
 | 
			
		||||
///
 | 
			
		||||
/// Returns a grenad reader with the list of extracted facet strings and
 | 
			
		||||
/// documents ids from the given chunk of docid facet string positions.
 | 
			
		||||
#[logging_timer::time]
 | 
			
		||||
pub fn extract_facet_string_docids<R: io::Read>(
 | 
			
		||||
    mut docid_fid_facet_string: grenad::Reader<R>,
 | 
			
		||||
    indexer: GrenadParameters,
 | 
			
		||||
 
 | 
			
		||||
@@ -15,6 +15,7 @@ use crate::{DocumentId, FieldId, Result};
 | 
			
		||||
///
 | 
			
		||||
/// Returns the generated grenad reader containing the docid the fid and the orginal value as key
 | 
			
		||||
/// and the normalized value as value extracted from the given chunk of documents.
 | 
			
		||||
#[logging_timer::time]
 | 
			
		||||
pub fn extract_fid_docid_facet_values<R: io::Read>(
 | 
			
		||||
    mut obkv_documents: grenad::Reader<R>,
 | 
			
		||||
    indexer: GrenadParameters,
 | 
			
		||||
 
 | 
			
		||||
@@ -16,6 +16,7 @@ use crate::{DocumentId, FieldId, Result};
 | 
			
		||||
///
 | 
			
		||||
/// Returns a grenad reader with the list of extracted field id word counts
 | 
			
		||||
/// and documents ids from the given chunk of docid word positions.
 | 
			
		||||
#[logging_timer::time]
 | 
			
		||||
pub fn extract_fid_word_count_docids<R: io::Read>(
 | 
			
		||||
    mut docid_word_positions: grenad::Reader<R>,
 | 
			
		||||
    indexer: GrenadParameters,
 | 
			
		||||
 
 | 
			
		||||
@@ -14,6 +14,7 @@ use crate::Result;
 | 
			
		||||
///
 | 
			
		||||
/// Returns a grenad reader with the list of extracted words and
 | 
			
		||||
/// documents ids from the given chunk of docid word positions.
 | 
			
		||||
#[logging_timer::time]
 | 
			
		||||
pub fn extract_word_docids<R: io::Read>(
 | 
			
		||||
    mut docid_word_positions: grenad::Reader<R>,
 | 
			
		||||
    indexer: GrenadParameters,
 | 
			
		||||
 
 | 
			
		||||
@@ -10,6 +10,7 @@ use crate::{DocumentId, Result};
 | 
			
		||||
///
 | 
			
		||||
/// Returns a grenad reader with the list of extracted words at positions and
 | 
			
		||||
/// documents ids from the given chunk of docid word positions.
 | 
			
		||||
#[logging_timer::time]
 | 
			
		||||
pub fn extract_word_level_position_docids<R: io::Read>(
 | 
			
		||||
    mut docid_word_positions: grenad::Reader<R>,
 | 
			
		||||
    indexer: GrenadParameters,
 | 
			
		||||
 
 | 
			
		||||
@@ -17,6 +17,7 @@ use crate::{DocumentId, Result};
 | 
			
		||||
///
 | 
			
		||||
/// Returns a grenad reader with the list of extracted word pairs proximities and
 | 
			
		||||
/// documents ids from the given chunk of docid word positions.
 | 
			
		||||
#[logging_timer::time]
 | 
			
		||||
pub fn extract_word_pair_proximity_docids<R: io::Read>(
 | 
			
		||||
    mut docid_word_positions: grenad::Reader<R>,
 | 
			
		||||
    indexer: GrenadParameters,
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user