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 LookAheadSuccess ¶
type LookAheadSuccess bool
type QueryBuilder ¶
type QueryBuilder struct {
// contains filtered or unexported fields
}
type QueryParser ¶
type QueryParser struct { *QueryParserBase // contains filtered or unexported fields }
func NewQueryParser ¶
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 }
type QueryParserBaseSPI ¶
type QueryParserBaseSPI interface { ReInit(CharStream) TopLevelQuery(string) (search.Query, error) }
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
Click to show internal directories.
Click to hide internal directories.