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] -}