solr

package
v0.0.0-...-75d87db Latest Latest
Warning

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

Go to latest
Published: May 1, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	URL      string `json:"url"`
	Core     string `json:"core"`
	User     string `json:"user"`
	Password string `json:"password"`
}

type ISolr

type ISolr interface {
	Add(data []byte) error
	Update(data []byte) error
}

ISolr interface

func New

func New(conf Config) (ISolr, error)

New Solr object

type Solr

type Solr struct {
	// contains filtered or unexported fields
}

Solr struct

func (*Solr) Add

func (s *Solr) Add(data []byte) error

Add document to Solr

func (*Solr) Update

func (s *Solr) Update(data []byte) error

Update document in Solr

Jump to

Keyboard shortcuts

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