mirror of
https://github.com/meilisearch/meilisearch.git
synced 2024-11-26 03:55:07 +08:00
Merge #4491
4491: chore: remove repetitive words r=curquiza a=shuangcui # Pull Request ## Related issue Fixes #<issue_number> ## What does this PR do? - ... ## PR checklist Please check if your PR fulfills the following requirements: - [ ] Does this PR fix an existing issue, or have you listed the changes applied in the PR description (and why they are needed)? - [ ] Have you read the contributing guidelines? - [ ] Have you made sure that the title is accurate and descriptive of the changes? Thank you so much for contributing to Meilisearch! Co-authored-by: shuangcui <fliter@qq.com>
This commit is contained in:
commit
f84bcb09e1
@ -530,7 +530,7 @@ pub fn perform_search(
|
|||||||
// The attributes to retrieve are the ones explicitly marked as to retrieve (all by default),
|
// The attributes to retrieve are the ones explicitly marked as to retrieve (all by default),
|
||||||
// but these attributes must be also be present
|
// but these attributes must be also be present
|
||||||
// - in the fields_ids_map
|
// - in the fields_ids_map
|
||||||
// - in the the displayed attributes
|
// - in the displayed attributes
|
||||||
let to_retrieve_ids: BTreeSet<_> = query
|
let to_retrieve_ids: BTreeSet<_> = query
|
||||||
.attributes_to_retrieve
|
.attributes_to_retrieve
|
||||||
.as_ref()
|
.as_ref()
|
||||||
|
@ -168,7 +168,7 @@ impl<'t, 'b, 'bitmap> FacetRangeSearch<'t, 'b, 'bitmap> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// should we stop?
|
// should we stop?
|
||||||
// We should if the the search range doesn't include any
|
// We should if the search range doesn't include any
|
||||||
// element from the previous key or its successors
|
// element from the previous key or its successors
|
||||||
let should_stop = {
|
let should_stop = {
|
||||||
match self.right {
|
match self.right {
|
||||||
@ -232,7 +232,7 @@ impl<'t, 'b, 'bitmap> FacetRangeSearch<'t, 'b, 'bitmap> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// should we stop?
|
// should we stop?
|
||||||
// We should if the the search range doesn't include any
|
// We should if the search range doesn't include any
|
||||||
// element from the previous key or its successors
|
// element from the previous key or its successors
|
||||||
let should_stop = {
|
let should_stop = {
|
||||||
match self.right {
|
match self.right {
|
||||||
|
@ -5,7 +5,7 @@ The typo ranking rule should transform the query graph such that it only contain
|
|||||||
the combinations of word derivations that it used to compute its bucket.
|
the combinations of word derivations that it used to compute its bucket.
|
||||||
|
|
||||||
The proximity ranking rule should then look for proximities only between those specific derivations.
|
The proximity ranking rule should then look for proximities only between those specific derivations.
|
||||||
For example, given the the search query `beautiful summer` and the dataset:
|
For example, given the search query `beautiful summer` and the dataset:
|
||||||
```text
|
```text
|
||||||
{ "id": 0, "text": "beautigul summer...... beautiful day in the summer" }
|
{ "id": 0, "text": "beautigul summer...... beautiful day in the summer" }
|
||||||
{ "id": 1, "text": "beautiful summer" }
|
{ "id": 1, "text": "beautiful summer" }
|
||||||
|
Loading…
Reference in New Issue
Block a user