mirror of
https://github.com/meilisearch/meilisearch.git
synced 2024-11-23 02:27:40 +08:00
Remove useless Facet variant
This commit is contained in:
parent
30a094cbb2
commit
06e6eaa7b4
@ -63,7 +63,6 @@ pub enum Code {
|
|||||||
MissingDocumentId,
|
MissingDocumentId,
|
||||||
InvalidDocumentId,
|
InvalidDocumentId,
|
||||||
|
|
||||||
Facet,
|
|
||||||
Filter,
|
Filter,
|
||||||
Sort,
|
Sort,
|
||||||
|
|
||||||
@ -133,8 +132,6 @@ impl Code {
|
|||||||
MissingDocumentId => ErrCode::invalid("missing_document_id", StatusCode::BAD_REQUEST),
|
MissingDocumentId => ErrCode::invalid("missing_document_id", StatusCode::BAD_REQUEST),
|
||||||
InvalidDocumentId => ErrCode::invalid("invalid_document_id", StatusCode::BAD_REQUEST),
|
InvalidDocumentId => ErrCode::invalid("invalid_document_id", StatusCode::BAD_REQUEST),
|
||||||
|
|
||||||
// error related to facets
|
|
||||||
Facet => ErrCode::invalid("invalid_facet", StatusCode::BAD_REQUEST),
|
|
||||||
// error related to filters
|
// error related to filters
|
||||||
Filter => ErrCode::invalid("invalid_filter", StatusCode::BAD_REQUEST),
|
Filter => ErrCode::invalid("invalid_filter", StatusCode::BAD_REQUEST),
|
||||||
// error related to sorts
|
// error related to sorts
|
||||||
|
@ -367,7 +367,7 @@ mod compat {
|
|||||||
"invalid_request" => Code::InvalidRankingRule,
|
"invalid_request" => Code::InvalidRankingRule,
|
||||||
"max_fields_limit_exceeded" => Code::MaxFieldsLimitExceeded,
|
"max_fields_limit_exceeded" => Code::MaxFieldsLimitExceeded,
|
||||||
"missing_document_id" => Code::MissingDocumentId,
|
"missing_document_id" => Code::MissingDocumentId,
|
||||||
"invalid_facet" => Code::Facet,
|
"invalid_facet" => Code::Filter,
|
||||||
"invalid_filter" => Code::Filter,
|
"invalid_filter" => Code::Filter,
|
||||||
"invalid_sort" => Code::Sort,
|
"invalid_sort" => Code::Sort,
|
||||||
"bad_parameter" => Code::BadParameter,
|
"bad_parameter" => Code::BadParameter,
|
||||||
|
Loading…
Reference in New Issue
Block a user