mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-15 13:58:36 +02:00
Merge pull request #114 from Kerollmops/hot-fix-ranked-attribute
Do not error when an attribute is registered for ranking
This commit is contained in:
commit
23833bac10
1 changed files with 1 additions and 1 deletions
|
@ -78,7 +78,7 @@ impl<'a> SortByAttr<'a> {
|
|||
None => return Err(SortByAttrError::AttributeNotFound),
|
||||
};
|
||||
|
||||
if schema.props(attr).is_ranked() {
|
||||
if !schema.props(attr).is_ranked() {
|
||||
return Err(SortByAttrError::AttributeNotRegisteredForRanking);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue