Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func VisitAtoms ¶
VisitAtoms runs `v` on all atom queries within `q`.
Types ¶
type Q ¶
type Q interface {
String() string
}
Q is a representation for a possibly hierarchical search query.
func ExpandFileContent ¶
Expand expands Substr queries into (OR file_substr content_substr) queries, and the same for Regexp queries..
func RegexpToQuery ¶
RegexpToQuery tries to distill a substring search query that matches a superset of the regexp. If the returned query is equivalent with the original regexp, it returns true. An equivalent query has the same behaviour as the original regexp and can be used instead.
type Substring ¶
type Substring struct { Pattern string CaseSensitive bool // Match only filename FileName bool // Match only content Content bool }
Substring is the most basic query: a query for a substring.
type SuggestQueryError ¶
func (*SuggestQueryError) Error ¶
func (e *SuggestQueryError) Error() string
Click to show internal directories.
Click to hide internal directories.