mirror of
https://github.com/meilisearch/MeiliSearch
synced 2024-11-29 16:24:26 +01:00
chore: fix some typos in comments
Signed-off-by: yudrywet <yudeyao@yeah.net>
This commit is contained in:
parent
0661c86f16
commit
cf864a1c2e
@ -134,7 +134,7 @@ impl<'t> Matcher<'t, '_> {
|
|||||||
for (token_position, word_position, word) in words_positions {
|
for (token_position, word_position, word) in words_positions {
|
||||||
partial = match partial.match_token(word) {
|
partial = match partial.match_token(word) {
|
||||||
// token matches the partial match, but the match is not full,
|
// token matches the partial match, but the match is not full,
|
||||||
// we temporarly save the current token then we try to match the next one.
|
// we temporarily save the current token then we try to match the next one.
|
||||||
Some(MatchType::Partial(partial)) => {
|
Some(MatchType::Partial(partial)) => {
|
||||||
potential_matches.push((token_position, word_position, partial.char_len()));
|
potential_matches.push((token_position, word_position, partial.char_len()));
|
||||||
partial
|
partial
|
||||||
@ -722,7 +722,7 @@ mod tests {
|
|||||||
@"…void void void void void split the world void void"
|
@"…void void void void void split the world void void"
|
||||||
);
|
);
|
||||||
|
|
||||||
// Text containing matches with diferent density.
|
// Text containing matches with different density.
|
||||||
let text = "split void the void void world void void void void void void void void void void split the world void void";
|
let text = "split void the void void world void void void void void void void void void void split the world void void";
|
||||||
let mut matcher = builder.build(text);
|
let mut matcher = builder.build(text);
|
||||||
// crop should return 10 last words with a marker at the start.
|
// crop should return 10 last words with a marker at the start.
|
||||||
|
@ -119,7 +119,7 @@ pub fn located_query_terms_from_tokens(
|
|||||||
if let Some(located_query_term) = phrase.build(ctx) {
|
if let Some(located_query_term) = phrase.build(ctx) {
|
||||||
// as we are evaluating a negative operator we put the phrase
|
// as we are evaluating a negative operator we put the phrase
|
||||||
// in the negative one *but* we don't reset the negative operator
|
// in the negative one *but* we don't reset the negative operator
|
||||||
// as we are immediatly starting a new negative phrase.
|
// as we are immediately starting a new negative phrase.
|
||||||
if negative_phrase {
|
if negative_phrase {
|
||||||
negative_phrases.push(located_query_term);
|
negative_phrases.push(located_query_term);
|
||||||
} else {
|
} else {
|
||||||
|
@ -499,7 +499,7 @@ impl FacetsUpdateIncrementalInner {
|
|||||||
ModificationResult::Expand | ModificationResult::Reduce { .. }
|
ModificationResult::Expand | ModificationResult::Reduce { .. }
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
// if any modification occured, insert it in the database.
|
// if any modification occurred, insert it in the database.
|
||||||
self.db.put(txn, &insertion_key.as_ref(), &updated_value)?;
|
self.db.put(txn, &insertion_key.as_ref(), &updated_value)?;
|
||||||
Ok(insertion_key_modification)
|
Ok(insertion_key_modification)
|
||||||
} else {
|
} else {
|
||||||
|
@ -36,7 +36,7 @@ pub struct ExtractedFacetValues {
|
|||||||
|
|
||||||
/// Extracts the facet values of each faceted field of each document.
|
/// Extracts the facet values of each faceted field of each document.
|
||||||
///
|
///
|
||||||
/// Returns the generated grenad reader containing the docid the fid and the orginal value as key
|
/// Returns the generated grenad reader containing the docid the fid and the original value as key
|
||||||
/// and the normalized value as value extracted from the given chunk of documents.
|
/// and the normalized value as value extracted from the given chunk of documents.
|
||||||
/// We need the fid of the geofields to correctly parse them as numbers if they were sent as strings initially.
|
/// We need the fid of the geofields to correctly parse them as numbers if they were sent as strings initially.
|
||||||
#[tracing::instrument(level = "trace", skip_all, target = "indexing::extract")]
|
#[tracing::instrument(level = "trace", skip_all, target = "indexing::extract")]
|
||||||
|
Loading…
Reference in New Issue
Block a user