Documentation ¶
Index ¶
- type ContactIndexer
- func (i *ContactIndexer) FindIndexes() []string
- func (i *ContactIndexer) GetDBLastModified(ctx context.Context, db *sql.DB) (time.Time, error)
- func (i *ContactIndexer) GetESLastModified(index string) (time.Time, error)
- func (i *ContactIndexer) Index(rt *runtime.Runtime, rebuild, cleanup bool) (string, error)
- func (i *ContactIndexer) Name() string
- func (i *ContactIndexer) Stats() Stats
- type IndexDefinition
- type Indexer
- type Stats
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ContactIndexer ¶
type ContactIndexer struct {
// contains filtered or unexported fields
}
ContactIndexer is an indexer for contacts
func NewContactIndexer ¶
func NewContactIndexer(elasticURL, name string, shards, replicas, batchSize int) *ContactIndexer
NewContactIndexer creates a new contact indexer
func (*ContactIndexer) FindIndexes ¶
func (i *ContactIndexer) FindIndexes() []string
FindIndexes finds all our physical indexes
func (*ContactIndexer) GetDBLastModified ¶ added in v9.1.1
func (*ContactIndexer) GetESLastModified ¶ added in v9.1.1
GetESLastModified queries a concrete index and finds the last modified document, returning its modified time
type IndexDefinition ¶
type IndexDefinition struct { Settings struct { Index struct { NumberOfShards int `json:"number_of_shards"` NumberOfReplicas int `json:"number_of_replicas"` RoutingPartitionSize int `json:"routing_partition_size"` } `json:"index"` Analysis json.RawMessage `json:"analysis"` } `json:"settings"` Mappings json.RawMessage `json:"mappings"` }
IndexDefinition is what we pass to elastic to create an index, see https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-create-index.html
Click to show internal directories.
Click to hide internal directories.