Documentation ¶
Index ¶
- type ElasticSearchIndexer
- func (i *ElasticSearchIndexer) FindByID(linkID uuid.UUID) (*index.Document, error)
- func (i *ElasticSearchIndexer) Index(doc *index.Document) error
- func (i *ElasticSearchIndexer) Search(q index.Query) (index.Iterator, error)
- func (i *ElasticSearchIndexer) UpdateScore(linkID uuid.UUID, score float64) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ElasticSearchIndexer ¶
type ElasticSearchIndexer struct {
// contains filtered or unexported fields
}
func NewElasticSearchIndexer ¶
func NewElasticSearchIndexer(esNodes []string, syncUpdates bool) (*ElasticSearchIndexer, error)
func (*ElasticSearchIndexer) Index ¶
func (i *ElasticSearchIndexer) Index(doc *index.Document) error
func (*ElasticSearchIndexer) UpdateScore ¶
func (i *ElasticSearchIndexer) UpdateScore(linkID uuid.UUID, score float64) error
Click to show internal directories.
Click to hide internal directories.