Documentation
¶
Index ¶
- func NewElasticsearchV7Database(ctx context.Context, uri string) (database.LibraryOfCongressDatabase, error)
- type ElasticsearchV7Database
- func (elasticsearch_db *ElasticsearchV7Database) Index(ctx context.Context, sources []*database.Source, monitor timings.Monitor) error
- func (elasticsearch_db *ElasticsearchV7Database) Query(ctx context.Context, q string, pg_opts pagination.Options) ([]*database.QueryResult, pagination.Results, error)
- type QueryResponse
- type QueryResponseHits
- type QueryResponseResult
- type QueryResponseTotal
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ElasticsearchV7Database ¶
type ElasticsearchV7Database struct { database.LibraryOfCongressDatabase // contains filtered or unexported fields }
type QueryResponse ¶
type QueryResponse struct {
Hits *QueryResponseHits `json:"hits"`
}
type QueryResponseHits ¶
type QueryResponseHits struct { Total *QueryResponseTotal `json:"total"` Results []*QueryResponseResult `json:"hits"` }
type QueryResponseResult ¶
type QueryResponseTotal ¶
Click to show internal directories.
Click to hide internal directories.