elasticsearch

package
v0.0.0-...-3c15023 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 10, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRepository

func NewRepository(esClient *elastic.Client) *repository

Types

type ElasticQuery

type ElasticQuery struct {
	Index    string
	Query    *elastic.BoolQuery
	SortInfo elastic.SortInfo
	From     int
	Size     int
}

ElasticQuery struct

func CreateSearchQuery

func CreateSearchQuery(q map[string]string) *ElasticQuery

type Repository

type Repository interface {
	SaveArticleDocument(input *entity.Article) error
}

Directories

Path Synopsis
Package mock_elasticsearch is a generated GoMock package.
Package mock_elasticsearch is a generated GoMock package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL