helper

package
v0.0.0-...-ade5dbd Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2024 License: Apache-2.0 Imports: 18 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateAllCitations

func CreateAllCitations() int64

func CreateAllManifests

func CreateAllManifests() int64

func FilePathWalkDir

func FilePathWalkDir(root string) ([]string, error)

FilePathWalkDir will retrieve an root path an walks recursively over it an return an array of file path. If Get encounters any errors, it will return an error.

func IndexAll

func IndexAll() int64

Types

type IndexerJob

type IndexerJob struct {
	BaseDir     string `json:"basedir"`
	FulltextDir string `json:"fulltextdir"`
	Document    string `json:"document"` // document == ID
	Context     string `json:"context"`
	Key         string `json:"inkey"`
	Product     string `json:"product"` // product == bucket
	Ftype       string `json:"ftype"`   // fulltext type HTML, TXT_1, TXT_2, TEI_2
	Reindex     bool   `json:"reindex"`
}

IndexerJob ...

type OldSolrDatesMsg

type OldSolrDatesMsg struct {
	ID           string `json:"id"`
	DateModified string `json:"datemodified,omitempty"`
	DateIndexed  string `json:"dateindexed,omitempty"`
}

OldSolrDatesMsg ...

type Params

type Params struct {
	Q    string `json:"q"`
	Fl   string `json:"fl"`
	Rows string `json:"rows"`
	WT   string `json:"wt"`
}

Params ..

type SolrDoc

type SolrDoc struct {
	ID               string `json:"id,omitempty" bson:"id,omitempty"`
	RecordIdentifier string `json:"record_identifier,omitempty" bson:"record_identifier,omitempty"`
	DateIndexed      string `json:"date_indexed,omitempty" bson:"date_indexed,omitempty"`
	DateModified     string `json:"date_modified,omitempty" bson:"date_modified,omitempty"`
}

SolrDoc ..

type SolrResponse

type SolrResponse struct {
	ResponseHeader SolrResponseHeader `json:"responseHeader"`
	Response       SolrResponseBody   `json:"response"`
}

SolrResponse ...

type SolrResponseBody

type SolrResponseBody struct {
	NumFound int64     `json:"numFound"`
	Start    int64     `json:"start"`
	Docs     []SolrDoc `json:"docs"`
}

SolrResponseBody ...

type SolrResponseHeader

type SolrResponseHeader struct {
	Status int64   `json:"status"`
	QTime  float64 `json:"QTime"`
	Params Params  `json:"params"`
}

SolrResponseHeader ..

Jump to

Keyboard shortcuts

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