Documentation ¶
Index ¶
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) GetLastModified ¶
GetLastModified 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.