authority

package
v0.0.0-...-9c67b44 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2023 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	HighlightPreTag  = "<strong>"
	HighlightPostTag = "</strong>"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthorityHit

type AuthorityHit struct {
	Doc       map[string]interface{} `json:"doc,omitempty"`
	Highlight map[string][]string    `json:"highlight,omitempty"`
}

type AuthorityHits

type AuthorityHits struct {
	TotalHits int            `json:"totalHits,omitempty"`
	Hits      []AuthorityHit `json:"hits,omitempty"`
}

type SearchAuthorityClient

type SearchAuthorityClient interface {
	SearchAuthority(query string, types []string) (AuthorityHits, error)
	SearchAuthorityByExternalId(source string, id string, types []string) (AuthorityHits, error)
	FindPublicationsByNaturalId(completeQuery string) (AuthorityHits, error)
}

func NewSearchAuthorityClient

func NewSearchAuthorityClient(esUrl *url.URL) (SearchAuthorityClient, error)

Jump to

Keyboard shortcuts

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