searchquery

package
v0.0.0-...-5ba556e Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2024 License: MIT Imports: 8 Imported by: 1

Documentation

Index

Constants

View Source
const (
	QueryOperatorOR  Operator = "OR"
	QueryOperatorAND Operator = "AND"
	QueryOperatorNOT Operator = "NOT"

	QualifierBoolFilterIs        = "is"
	QualifierBoolTruncated       = "truncated"
	QualifierBoolError           = "error"
	QualifierBoolInputTruncated  = "isinput_trunc"
	QualifierBoolOutputTruncated = "isoutput_trunc"

	QualifierQueryFuzzy    = "fuzzy"
	QualifierQueryIn       = "in"
	QualifierQueryInInput  = "input"
	QualifierQueryInOutput = "output"

	QualifierFilterConnection     = "connection"
	QualifierFilterConnectionType = "connection_type"
	QualifierFilterSession        = "session"
	QualifierFilterUser           = "user"
	QualifierFilterVerb           = "verb"
	QualifierFilterSize           = "size"
	QualifierFilterDuration       = "duration"
	QualifierFilterStartDate      = "started"
	QualifierFilterCompleteDate   = "completed"
)

Variables

This section is empty.

Functions

func Parse

func Parse(scopeUserID, queryString string) (query.Query, error)

Parse parses a query expression to a bleve query.Query the syntax is heavily inspired in GitHub search query API

SEARCH_KEYWORD_1 SEARCH_KEYWORD_N QUALIFIER_1 QUALIFIER_N Example: dwarf kingdom in:input connection:postgres

Types

type Operator

type Operator string

Jump to

Keyboard shortcuts

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