Documentation ¶
Overview ¶
Package bluge organizes codes of the indexing library bluge
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseAggsFilterRangeQuery ¶
func ParseAggsFilterRangeQuery(rangeQuery *indexlib.RangeQuery) (search.Aggregation, error)
func ParseRangeQuery ¶
func ParseRangeQuery(rangeQuery *indexlib.RangeQuery) (bluge.Query, error)
Types ¶
type BlugeReader ¶
type BlugeReader struct { *indexlib.Config Segments []string Readers []*bluge.Reader // contains filtered or unexported fields }
func MergeReader ¶
func MergeReader( config *indexlib.Config, segments []string, readers []indexlib.Reader, ) (*BlugeReader, error)
MergeReader multiple readers into one BlugeReader. The readers(or their underlying readers) must be type of BlugeReader.
func NewBlugeReader ¶
func NewBlugeReader( config *indexlib.Config, segments []string, readers []*bluge.Reader, closeHook func(*BlugeReader), ) *BlugeReader
func (*BlugeReader) Close ¶
func (b *BlugeReader) Close()
func (*BlugeReader) Count ¶
func (b *BlugeReader) Count() int
func (*BlugeReader) OpenReader ¶
func (b *BlugeReader) OpenReader() error
func (*BlugeReader) Search ¶
func (b *BlugeReader) Search( ctx context.Context, query indexlib.QueryRequest, limit, from int, ) (*indexlib.QueryResponse, error)
type BlugeWriter ¶
type BlugeWriter struct { *indexlib.Config Mappings protocol.Mappings Index string Segment string Writer *bluge.Writer }
func NewBlugeWriter ¶
func (*BlugeWriter) Close ¶
func (b *BlugeWriter) Close()
func (*BlugeWriter) Insert ¶
func (b *BlugeWriter) Insert( docID string, doc protocol.Document, ) error
func (*BlugeWriter) OpenWriter ¶
func (b *BlugeWriter) OpenWriter() error
type DocHeap ¶
type DocHeap struct {
// contains filtered or unexported fields
}
An DocHeap is a min-heap of search.DocumentMatch.
type ReaderResult ¶
type ReaderResult struct {
// contains filtered or unexported fields
}
Directories ¶
Path | Synopsis |
---|---|
Package aggregations contains custom aggregation for bluge
|
Package aggregations contains custom aggregation for bluge |
Package config organizes codes of the bluge config
|
Package config organizes codes of the bluge config |
directory
|
|
fs
Package fs is just a simple encapsulation of index.NewFileSystemDirectory for logging time cost.
|
Package fs is just a simple encapsulation of index.NewFileSystemDirectory for logging time cost. |
oss
Package oss is used to implement the AliCloud-Object-Storage-Service storage medium for the underlying data and indexes.
|
Package oss is used to implement the AliCloud-Object-Storage-Service storage medium for the underlying data and indexes. |
Click to show internal directories.
Click to hide internal directories.