Files
opencloud/services/search/pkg/query/query.go
T
Dominik Schmidt 11047abb6a refactor(search): hand the engines the parsed query
The service parsed the query once for validation and every engine parsed the
expanded string again per space. Now the service parses once and the engines
compile an AST. The query template is parsed at startup and expanded by
substituting nodes, the indexer's up-to-date check is built as nodes as well.
2026-11-27 17:27:16 +01:00

10 lines
288 B
Go

// Package query provides functions to work with the different search query flavours.
package query
import "github.com/opencloud-eu/opencloud/pkg/ast"
// Compiler is the interface that wraps the basic Compile method.
type Compiler[T any] interface {
Compile(ast *ast.Ast) (T, error)
}