Versions in this module Expand all Collapse all v0 v0.1.5 Aug 2, 2022 Changes in this version type Index + func (index *Index) IsClosed() bool v0.1.4 Aug 2, 2022 v0.1.3 Aug 1, 2022 v0.1.2 Aug 1, 2022 v0.1.1 Jul 29, 2022 v0.1.0 Jul 22, 2022 v0.0.9 Jul 21, 2022 v0.0.8 Jul 21, 2022 v0.0.7 Jul 20, 2022 v0.0.6 Jul 18, 2022 Changes in this version + type BooleanQuery struct + BoostVal float64 + Must query.Query + MustNot query.Query + Should query.Query + func (b *BooleanQuery) Searcher(i bindex.IndexReader, m imapping.IndexMapping, options search.SearcherOptions) (search.Searcher, error) + type ConjunctionQuery struct + BoostVal float64 + Conjuncts []query.Query + func (c *ConjunctionQuery) Searcher(i bindex.IndexReader, m imapping.IndexMapping, options search.SearcherOptions) (search.Searcher, error) + type DateRangeQuery struct + BoostVal float64 + End time.Time + FieldVal string + InclusiveEnd *bool + InclusiveStart *bool + Start time.Time + func (d *DateRangeQuery) Searcher(i bindex.IndexReader, m imapping.IndexMapping, options search.SearcherOptions) (search.Searcher, error) + type DisjunctionQuery struct + BoostVal float64 + Disjuncts []query.Query + Min float64 + func (d *DisjunctionQuery) Searcher(i bindex.IndexReader, m imapping.IndexMapping, options search.SearcherOptions) (search.Searcher, error) + type DocIDQuery struct + BoostVal float64 + IDs []string + func (d *DocIDQuery) Searcher(i bindex.IndexReader, m imapping.IndexMapping, options search.SearcherOptions) (search.Searcher, error) + type FuzzyQuery struct + BoostVal float64 + FieldVal string + Fuzziness int + Prefix int + Term string + func (f *FuzzyQuery) Searcher(i bindex.IndexReader, m imapping.IndexMapping, options search.SearcherOptions) (search.Searcher, error) + type MatchAllQuery struct + BoostVal float64 + func (mq *MatchAllQuery) Searcher(i bindex.IndexReader, m imapping.IndexMapping, options search.SearcherOptions) (search.Searcher, error) + type MatchNoneQuery struct + BoostVal float64 + func (mq *MatchNoneQuery) Searcher(i bindex.IndexReader, m imapping.IndexMapping, options search.SearcherOptions) (search.Searcher, error) + type MatchPhraseQuery struct + Analyzer string + BoostVal float64 + FieldVal string + MatchPhrase string + func (mp *MatchPhraseQuery) Searcher(i bindex.IndexReader, m imapping.IndexMapping, options search.SearcherOptions) (search.Searcher, error) + type MatchQuery struct + Analyzer string + BoostVal float64 + FieldVal string + Fuzziness int + Match string + Operator string + Prefix int + func (mq *MatchQuery) Searcher(i bindex.IndexReader, m imapping.IndexMapping, options search.SearcherOptions) (search.Searcher, error) + type NumericRangeQuery struct + BoostVal float64 + FieldVal string + InclusiveMax *bool + InclusiveMin *bool + Max *float64 + Min *float64 + func (n *NumericRangeQuery) Searcher(i bindex.IndexReader, m imapping.IndexMapping, options search.SearcherOptions) (search.Searcher, error) + type PhraseQuery struct + BoostVal float64 + Field string + Terms []string + func (p *PhraseQuery) Searcher(i bindex.IndexReader, m imapping.IndexMapping, options search.SearcherOptions) (search.Searcher, error) + type TermQuery struct + BoostVal float64 + FieldVal string + Term string + func (t *TermQuery) Searcher(i bindex.IndexReader, m imapping.IndexMapping, options search.SearcherOptions) (search.Searcher, error) v0.0.5 Jul 15, 2022 v0.0.4 Jul 15, 2022 v0.0.3 Jul 15, 2022 v0.0.2 Jul 14, 2022 v0.0.1 Jul 14, 2022 Changes in this version + type BulkAction struct + Create *BulkActionDetail + Delete *BulkActionDetail + Index *BulkActionDetail + Update *BulkActionDetail + type BulkActionDetail struct + ID string + Index string + type BulkActionResult struct + Error interface{} + ID string + Index string + PrimaryTerm int64 + Result string + SeqNo int64 + Shards *BulkShards + Status int64 + Version int64 + func NewBulkActionResult(index string, docID string, result string, status int64, err interface{}, ...) *BulkActionResult + type BulkResult struct + Errors bool + Items []BulkResultItem + Took time.Duration + func Bulk(targetIndex string, reader io.Reader) (*BulkResult, error) + type BulkResultItem struct + Create *BulkActionResult + Delete *BulkActionResult + Index *BulkActionResult + Update *BulkActionResult + type BulkShards struct + Failed int64 + Successful int64 + Total int64 + type DateRangeFacet struct + Count int + End *string + Name string + Start *string + type DateTimeRange struct + End time.Time + Name string + Start time.Time + type Document struct + Found bool + ID string + Index string + PrimaryTerm int64 + SeqNo int64 + Source interface{} + Version int64 + type DocumentMapping struct + DefaultAnalyzer string + Disabled bool + Fields []*FieldMapping + Properties map[string]*DocumentMapping + type Engine struct + func NewEngine() *Engine + func (e *Engine) Run() error + func (e *Engine) Stop() error + type FacetRequest struct + DateTimeRanges []DateTimeRange + Field string + NumericRanges []NumericRange + Size int + type FacetResult struct + DateRanges []DateRangeFacet + Field string + Missing int + NumericRanges []NumericRangeFacet + Other int + Terms []TermFacet + Total int + type FieldMapping struct + Analyzer *string + Index *bool + Store *bool + Type string + type Hit struct + Explanation *search.Explanation + Fields map[string]interface{} + Fragments search.FieldFragmentMap + ID string + Index string + Locations search.FieldTermLocationMap + Score float64 + Sort []string + Source map[string]interface{} + Timestamp string + type Hits []*Hit + func (h Hits) Len() int + func (h Hits) Less(i, j int) bool + func (h Hits) Swap(i, j int) + type Index struct + CreateAt time.Time + DocNum uint64 + Mapping *IndexMapping + Name string + NumberOfShards int + Shards []*IndexShard + StorageSize uint64 + UID string + UpdateAt time.Time + func GetIndex(name string) (*Index, error) + func ListIndices() ([]*Index, error) + func NewIndex(opts ...Option) (*Index, error) + func (index *Index) BulkIndex(docs []map[string]interface{}) error + func (index *Index) Clone(name string) error + func (index *Index) Close() error + func (index *Index) Delete() error + func (index *Index) DeleteDocument(docID string) error + func (index *Index) GetDocument(docID string) (*Document, error) + func (index *Index) IndexOrUpdateDocument(docID string, source map[string]interface{}) error + func (index *Index) Open() error + func (index *Index) Search(req *SearchRequest) (*SearchResult, error) + func (index *Index) SetMapping(mapping interface{}) error + func (index *Index) UpdateDocumentPartially(docID string, fields map[string]interface{}) error + func (index *Index) UpdateMetadata() error + func (index *Index) UpdateMetadataByShard(n int) + type IndexMapping struct + DefaultAnalyzer *string + DefaultMapping *DocumentMapping + DefaultType *string + TypeField *string + TypeMapping map[string]*DocumentMapping + func BuildIndexMappingFromMap(m map[string]interface{}) (*IndexMapping, error) + type IndexShard struct + DocNum uint64 + ID int + Indexer bleve.Index + StorageSize uint64 + type NumericRange struct + Max float64 + Min float64 + Name string + type NumericRangeFacet struct + Count int + Max *float64 + Min *float64 + Name string + type Option func(*options) + func WithIndexMapping(m *IndexMapping) Option + func WithName(name string) Option + func WithShards(num int) Option + type QueryStringQuery struct + Boost float64 + Query string + func (q *QueryStringQuery) Searcher(i bindex.IndexReader, m imapping.IndexMapping, options search.SearcherOptions) (search.Searcher, error) + type SearchRequest struct + Explain bool + Facets map[string]*FacetRequest + Fields []string + From int + Highlight bool + IncludeLocations bool + Query query.Query + SearchAfter []string + SearchBefore []string + Size int + Sort []string + func (r *SearchRequest) UnmarshalJSON(input []byte) error + type SearchResult struct + Facets map[string]*FacetResult + Hits Hits + MaxScore float64 + Request *SearchRequest + Status Status + Took time.Duration + TotalHits uint64 + func Search(req *SearchRequest) (*SearchResult, error) + type Status struct + Failed int + Successful int + Total int + type TermFacet struct + Count int + Term string