Documentation
¶
Overview ¶
create provides an interface to RedisSearch's create index functionality.
create provides an interface to RedisSearch's create index functionality.
query provides an interface to RedisSearch's query functionality.
ftsearch main module - defines the client class
Index ¶
- func DefaultQueryLimit() *queryLimit
- func DefaultQuerySummarize() *querySummarize
- func FilterValue(val float64, exclusive bool) interface{}
- func NewCreate() *create
- func NewDropIndex() *dropindex
- func NewQuery() *query
- func NewQueryFilter(attribute string) *queryFilter
- func NewQueryHighlight() *queryHighlight
- func NewQueryLimit(first int64, num int64) *queryLimit
- func NewQuerySummarize() *querySummarize
- func NewSchema() *schema
- type Client
- func (c *Client) CreateIndex(ctx context.Context, qry *create) (*CreateIndexResults, error)
- func (c *Client) DropIndex(ctx context.Context, qry *dropindex) (*DropIndexResults, error)
- func (c *Client) ReIndex(ctx context.Context, index string, qry *create) (*CreateIndexResults, error)
- func (c *Client) Search(ctx context.Context, qry *query) (*QueryResults, error)
- type CreateIndexResults
- type DropIndexResults
- type QueryResult
- type QueryResults
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultQueryLimit ¶
func DefaultQueryLimit() *queryLimit
DefaultQueryLimit returns an initialzied QueryLimit struct with the default limit range
func DefaultQuerySummarize ¶
func DefaultQuerySummarize() *querySummarize
func FilterValue ¶
FilterValue formats a value for use in a filter and returns it
func NewCreate ¶ added in v0.0.4
func NewCreate() *create
FT.CREATE echoTokenStoreIdx ON JSON SCHEMA $.metadata.type AS type TEXT $.metadata.client_id AS client_id TEXT $.metadata.subject AS subject TEXT
NewCreate creates a new create with defaults set https://redis.io/commands/ft.create/
func NewDropIndex ¶ added in v0.0.4
func NewDropIndex() *dropindex
FT.DROPINDEX echoTokenStoreIdx
NewDropIndex creates a new dropindex with defaults set https://redis.io/commands/ft.dropindex/
func NewQueryFilter ¶
func NewQueryFilter(attribute string) *queryFilter
func NewQueryHighlight ¶
func NewQueryHighlight() *queryHighlight
func NewQueryLimit ¶
NewQueryLimit returns an initialized QueryLimit struct
func NewQuerySummarize ¶
func NewQuerySummarize() *querySummarize
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) CreateIndex ¶ added in v0.0.4
func (c *Client) CreateIndex(ctx context.Context, qry *create) (*CreateIndexResults, error)
func (*Client) DropIndex ¶ added in v0.0.4
func (c *Client) DropIndex(ctx context.Context, qry *dropindex) (*DropIndexResults, error)
type CreateIndexResults ¶ added in v0.0.4
type CreateIndexResults struct {
RawResults interface{}
}
type DropIndexResults ¶ added in v0.0.4
type DropIndexResults struct {
RawResults interface{}
}
type QueryResult ¶
type QueryResults ¶
type QueryResults struct { Count int64 Data map[string]QueryResult }