From e701090a3a8c5d0f332d2065f9155569faf61af2 Mon Sep 17 00:00:00 2001 From: Krzysztof Kiewicz Date: Sat, 28 Dec 2024 16:00:59 +0100 Subject: [PATCH] Remove 1 file added by accident --- quesma/model/search_after_strategy.go | 26 -------------------------- 1 file changed, 26 deletions(-) delete mode 100644 quesma/model/search_after_strategy.go diff --git a/quesma/model/search_after_strategy.go b/quesma/model/search_after_strategy.go deleted file mode 100644 index f94d607a8..000000000 --- a/quesma/model/search_after_strategy.go +++ /dev/null @@ -1,26 +0,0 @@ -package model - -import ( - "quesma/schema" -) - -type ( - SearchAfterStrategy interface { - // ValidateAndParse validates the 'searchAfter', which is what came from the request's search_after field. - ValidateAndParse(query *Query, indexSchema schema.Schema) (searchAfterParamParsed []Expr, err error) - TransformQuery(query *Query, searchAfterParameterParsed []Expr) (*Query, error) - TransformHit(hit SearchHit) (SearchHit, error) - } - SearchAfterStrategyType int -) - -const ( - BasicAndFast SearchAfterStrategyType = iota - Bulletproof - JustDiscardTheParameter - DefaultSearchAfterStrategy = Bulletproof -) - -func (s SearchAfterStrategyType) String() string { - return []string{"BasicAndFast", "Bulletproof", "JustDiscardTheParameter"}[s] -}