Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WithMatcherFactory ¶
WithMatcherFactory sets the matcher factory on the Percolator.
func WithPresearcher ¶
func WithPresearcher(presearcher presearchers.Presearcher) optionsFunc
WithPresearcher sets the presearcher on the Percolator.
Types ¶
type Percolator ¶
type Percolator struct {
// contains filtered or unexported fields
}
Percolator represents a percolator instance.
func NewPercolator ¶
func NewPercolator(opts ...optionsFunc) (*Percolator, error)
NewPercolator creates a new Percolator.
func (*Percolator) Match ¶
func (p *Percolator) Match(doc map[string]interface{}) (*Results, error)
Matches matches a document and applies the changes on the first matching Query.
func (*Percolator) Update ¶
func (p *Percolator) Update(qrys []Query) error
Update sets the queries on the Percolator.
Click to show internal directories.
Click to hide internal directories.