Documentation
¶
Index ¶
- Constants
- func And(queries ...blevequery.Query) blevequery.Query
- func BuildIndexPath(indexPath string) string
- func NewKeyworldFieldMapping() *mapping.FieldMapping
- func NewMatchAny(field string, values []string) blevequery.Query
- func NewReindexer[T any](reindexBatchIndexProvider ReindexBatchIndexProviderTx[T], ...) libkv.RunnableTx
- func NewResetIndexHandler(index bleve.Index, cancel context.CancelFunc) http.Handler
- func OpenDir(ctx context.Context, indexMapping mapping.IndexMapping, indexPath string) (bleve.Index, error)
- func OpenPath(ctx context.Context, indexMapping mapping.IndexMapping, indexPath string) (bleve.Index, error)
- func OpenTemp(ctx context.Context, indexMapping mapping.IndexMapping) (bleve.Index, error)
- func Or(queries ...blevequery.Query) blevequery.Query
- func RemoveIndex(ctx context.Context, indexPath string) error
- type Index
- type IndexerTx
- type ReindexBatchIndexProviderFuncTx
- type ReindexBatchIndexProviderTx
- type ReindexStreamerTx
Constants ¶
View Source
const DefaultSearchLimit = 10000
Variables ¶
This section is empty.
Functions ¶
func And ¶
func And(queries ...blevequery.Query) blevequery.Query
func BuildIndexPath ¶
func NewKeyworldFieldMapping ¶
func NewKeyworldFieldMapping() *mapping.FieldMapping
func NewMatchAny ¶
func NewMatchAny(field string, values []string) blevequery.Query
func NewReindexer ¶
func NewReindexer[T any]( reindexBatchIndexProvider ReindexBatchIndexProviderTx[T], streamer ReindexStreamerTx[T], bleveIndex bleve.Index, batchSize uint64, ) libkv.RunnableTx
NewReindexer creates a Tx-based reindexer that operates within a transaction. The caller is responsible for wrapping this in db.View() to provide the transaction.
func NewResetIndexHandler ¶
func Or ¶
func Or(queries ...blevequery.Query) blevequery.Query
Types ¶
type Index ¶
func NewBatchIndex ¶
type ReindexBatchIndexProviderFuncTx ¶
func (ReindexBatchIndexProviderFuncTx[T]) CreateIndexer ¶
func (r ReindexBatchIndexProviderFuncTx[T]) CreateIndexer(batch *bleve.Batch) IndexerTx[T]
Click to show internal directories.
Click to hide internal directories.