Documentation
¶
Index ¶
- type FacetsInfo
- type FacetsResult
- type Plan
- type Service
- func (s *Service) Explain(gql string) (string, error)
- func (s *Service) Facets(ctx context.Context, q search.FacetsQuery) (*FacetsResult, error)
- func (s *Service) Search(ctx context.Context, q search.Query) (*search.Result, error)
- func (s *Service) Stats(ctx context.Context) (*search.IndexMeta, error)
- func (s *Service) Validate(gql string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FacetsInfo ¶
type FacetsInfo = search.FacetsInfo
FacetsInfo describes the executed faceted query.
type FacetsResult ¶
type FacetsResult = search.FacetsResult
FacetsResult is one faceted-search response.
type Plan ¶
type Plan = plannersqlite.Plan
Plan aliases the SQLite planner's plan (keeps signatures tidy).
type Service ¶
type Service struct {
DB *sql.DB
// Defaults (PD-1 and SPEC-03 §3); a Query's explicit values win.
DefaultMode planner.Mode
DefaultLimit int
DefaultTimeout time.Duration
}
Service executes GQL searches against the personal search_index view.
func (*Service) Explain ¶
Explain compiles the query and renders the SQLite plan (the API's /explain route).
func (*Service) Facets ¶
func (s *Service) Facets(ctx context.Context, q search.FacetsQuery) (*FacetsResult, error)
Facets computes the requested facet dimensions over the same filtered row set the search would return.
Click to show internal directories.
Click to hide internal directories.