search

package
v0.0.0-...-c8b2685 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 27, 2023 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Overview

Package search implements the handling of search queries. Duh.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Query

type Query struct {
	Tags      []string
	DateBegin time.Time
	DateEnd   time.Time
	Query     []string
	// contains filtered or unexported fields
}

Query represents a ... you guessed it: a search query. Using multiple

func ParseQueryStr

func ParseQueryStr(d *database.Database, s string) (*Query, error)

ParseQueryStr parses a query string and returns a SearchQuery object.

func (*Query) Equal

func (q *Query) Equal(other *Query) bool

Equal returns true if the given SearchQuery is structurally identical to the receiver.

func (*Query) Execute

func (q *Query) Execute() ([]feed.Item, error)

Execute runs the query and returns the resulting Items.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL