mirror of
https://github.com/meilisearch/MeiliSearch
synced 2024-11-23 05:14:27 +01:00
Run cargo fmt
This commit is contained in:
parent
d187b32a28
commit
bb9ce3c5c5
@ -426,12 +426,12 @@ pub fn resolve_phrase(ctx: &dyn Context, phrase: &[Option<String>]) -> Result<Ro
|
|||||||
// Get all the documents with the matching distance for each word pairs.
|
// Get all the documents with the matching distance for each word pairs.
|
||||||
let mut bitmaps = Vec::with_capacity(winsize.pow(2));
|
let mut bitmaps = Vec::with_capacity(winsize.pow(2));
|
||||||
for (offset, s1) in win.iter().enumerate().filter_map(|(index, word)| {
|
for (offset, s1) in win.iter().enumerate().filter_map(|(index, word)| {
|
||||||
if let Some(word) = word {
|
if let Some(word) = word {
|
||||||
Some((index, word))
|
Some((index, word))
|
||||||
} else {
|
} else {
|
||||||
None
|
None
|
||||||
}
|
}
|
||||||
}) {
|
}) {
|
||||||
for (dist, s2) in win.iter().skip(offset + 1).enumerate().filter_map(|(index, word)| {
|
for (dist, s2) in win.iter().skip(offset + 1).enumerate().filter_map(|(index, word)| {
|
||||||
if let Some(word) = word {
|
if let Some(word) = word {
|
||||||
Some((index, word))
|
Some((index, word))
|
||||||
|
@ -15,10 +15,10 @@ use slice_group_by::GroupBy;
|
|||||||
mod distinct;
|
mod distinct;
|
||||||
mod facet_distribution;
|
mod facet_distribution;
|
||||||
mod filters;
|
mod filters;
|
||||||
|
mod phrase_search;
|
||||||
mod query_criteria;
|
mod query_criteria;
|
||||||
mod sort;
|
mod sort;
|
||||||
mod typo_tolerance;
|
mod typo_tolerance;
|
||||||
mod phrase_search;
|
|
||||||
|
|
||||||
pub const TEST_QUERY: &'static str = "hello world america";
|
pub const TEST_QUERY: &'static str = "hello world america";
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user