Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TransmutePipeline ¶
type TransmutePipeline struct { Parser parser.QueryParser Compiler backend.Compiler Options TransmutePipelineOptions }
TransmutePipeline contains the information needed to execute a full compilation.
func NewPipeline ¶
func NewPipeline(parser parser.QueryParser, compiler backend.Compiler, options TransmutePipelineOptions) TransmutePipeline
NewPipeline creates a new transmute pipeline.
func (TransmutePipeline) Execute ¶
func (p TransmutePipeline) Execute(query string) (backend.BooleanQuery, error)
Execute takes a pipeline and a query and will fully lex, parse, and compile the query.
type TransmutePipelineOptions ¶
type TransmutePipelineOptions struct { LexOptions lexer.LexOptions FieldMapping map[string][]string AddRedundantParenthesis bool RequiresLexing bool }
TransmutePipelineOptions contains additional optional components relating to the pipeline.
Click to show internal directories.
Click to hide internal directories.