Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MemoryIndex ¶
type MemoryIndex struct {
// contains filtered or unexported fields
}
func NewMemoryIndex ¶
func NewMemoryIndex() *MemoryIndex
func (*MemoryIndex) DeleteAll ¶
func (mi *MemoryIndex) DeleteAll() error
func (*MemoryIndex) Index ¶
func (mi *MemoryIndex) Index(id string) *Indexer
func (*MemoryIndex) Query ¶
func (mi *MemoryIndex) Query(q string) *SearchRequest
func (*MemoryIndex) SetAnalyzer ¶
func (mi *MemoryIndex) SetAnalyzer(field, analyzerID string) error
type SearchRequest ¶
type SearchRequest struct {
// contains filtered or unexported fields
}
func (*SearchRequest) Do ¶
func (sr *SearchRequest) Do() *SearchResult
func (*SearchRequest) Offset ¶
func (sr *SearchRequest) Offset(offset int64) *SearchRequest
func (*SearchRequest) Size ¶
func (sr *SearchRequest) Size(size int64) *SearchRequest
type SearchResult ¶
type SearchResult struct { Error error Total int64 Results []*SearchResultItem }
func (*SearchResult) GetIDs ¶
func (sr *SearchResult) GetIDs() (ret []string)
type SearchResultItem ¶
Click to show internal directories.
Click to hide internal directories.