mirror of
https://github.com/meilisearch/meilisearch.git
synced 2024-11-26 12:05:05 +08:00
fix: Do not error when an attribute is registered for ranking
This commit is contained in:
parent
7f937eea5a
commit
8235b6efc9
@ -78,7 +78,7 @@ impl<'a> SortByAttr<'a> {
|
|||||||
None => return Err(SortByAttrError::AttributeNotFound),
|
None => return Err(SortByAttrError::AttributeNotFound),
|
||||||
};
|
};
|
||||||
|
|
||||||
if schema.props(attr).is_ranked() {
|
if !schema.props(attr).is_ranked() {
|
||||||
return Err(SortByAttrError::AttributeNotRegisteredForRanking);
|
return Err(SortByAttrError::AttributeNotRegisteredForRanking);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user