classic

package
v0.0.0-...-d0be9ee Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2015 License: Apache-2.0 Imports: 9 Imported by: 2

Documentation

Index

Constants

View Source
const (
	EOF = iota

	AND
	OR
	NOT
	PLUS
	MINUS
	BAREOPER
	LPAREN
	RPAREN
	COLON
	STAR
	CARAT
	QUOTED
	TERM
	FUZZY_SLOP
	PREFIXTERM
	WILDTERM
	REGEXPTERM
	RANGEIN_START
	RANGEEX_START
	NUMBER
	RANGE_TO
	RANGEiN_END
	RAGEEX_END
	RANGE_QUOTED
	RANGE_GOOP
)
View Source
const (
	CONJ_NONE = iota
	CONJ_AND
	CONJ_OR
)
View Source
const (
	MOD_NONE = 0
	MOD_NOT  = 10
	MOD_REQ  = 11
)
View Source
const (
	LEXICAL_ERROR = iota
	STATIC_LEXER_ERROR
	INVALID_LEXICAL_STATE
	LOOP_DETECTED
)

Variables

View Source
var (
	OP_OR  = Operator(1)
	OP_AND = Operator(2)
)

Functions

This section is empty.

Types

type CharStream

type CharStream interface {
	// contains filtered or unexported methods
}

type FastCharStream

type FastCharStream struct {
	// contains filtered or unexported fields
}

type JJCalls

type JJCalls struct {
	// contains filtered or unexported fields
}

type LookAheadSuccess

type LookAheadSuccess bool

type Operator

type Operator int

type QueryBuilder

type QueryBuilder struct {
	// contains filtered or unexported fields
}

type QueryParser

type QueryParser struct {
	*QueryParserBase
	// contains filtered or unexported fields
}

func NewQueryParser

func NewQueryParser(matchVersion util.Version, f string, a analysis.Analyzer) *QueryParser

func (*QueryParser) Query

func (qp *QueryParser) Query(field string) (q search.Query, err error)

func (*QueryParser) ReInit

func (qp *QueryParser) ReInit(stream CharStream)

L540

func (*QueryParser) TopLevelQuery

func (qp *QueryParser) TopLevelQuery(field string) (q search.Query, err error)

type QueryParserBase

type QueryParserBase struct {
	*QueryBuilder
	// contains filtered or unexported fields
}

func (*QueryParserBase) Parse

func (qp *QueryParserBase) Parse(query string) (res search.Query, err error)

L116

type QueryParserBaseSPI

type QueryParserBaseSPI interface {
	ReInit(CharStream)
	TopLevelQuery(string) (search.Query, error)
}

type Token

type Token struct {
	// contains filtered or unexported fields
}

func (*Token) String

func (t *Token) String() string

type TokenManager

type TokenManager struct {
	// contains filtered or unexported fields
}

func (*TokenManager) ReInit

func (tm *TokenManager) ReInit(stream CharStream)

type TokenManagerError

type TokenManagerError struct {
}

func (*TokenManagerError) Error

func (err *TokenManagerError) Error() string

Jump to

Keyboard shortcuts

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