solrjavacodec

package module
v0.0.0-...-2064d89 Latest Latest
Warning

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

Go to latest
Published: May 7, 2019 License: MIT Imports: 6 Imported by: 0

README

solrjavabindecoder

port of javabin decoder of solr in golang

This package have decoder for javabin format in solr. You may get javabin format from solr by setting wt parameter in URL to javabin. eg: http://localhost:8983/solr/movies/select?indent=off&q=:&wt=javabin Please refer to test file function BenchmarkDecodeBin to see how to use the decoder

Documentation

Index

Constants

View Source
const (
	NULL             = 0
	BOOL_TRUE        = 1
	BOOL_FALSE       = 2
	BYTE             = 3
	SHORT            = 4
	DOUBLE           = 5
	INT              = 6
	LONG             = 7
	FLOAT            = 8
	DATE             = 9
	MAP              = 10
	SOLRDOC          = 11
	SOLRDOCLST       = 12
	BYTEARR          = 13
	ITERATOR         = 14
	END              = 15
	SOLRINPUTDOC     = 16
	MAP_ENTRY_ITER   = 17
	ENUM_FIELD_VALUE = 18
	MAP_ENTRY        = 19

	STR           = byte(1 << 5)
	SINT          = byte(2 << 5)
	SLONG         = byte(3 << 5)
	ARR           = byte(4 << 5) //
	ORDERED_MAP   = byte(5 << 5) // SimpleOrderedMap (a NamedList subclass, and more common)
	NAMED_LST     = byte(6 << 5) // NamedList
	EXTERN_STRING = byte(7 << 5)
)
View Source
const END_OBJ = "HELLOSOLDER"

Variables

This section is empty.

Functions

func UnmarshalByte

func UnmarshalByte(m interface{}, data []byte) error

func UnmarshalStream

func UnmarshalStream(m interface{}, dataStream *bytes.Buffer) error

Types

type SolrDocumentList

type SolrDocumentList struct {
	NumFound int64
	Start    int64
	MaxScore float32
	Docs     []interface{}
}

type SolrDocument map[string]interface{}

Jump to

Keyboard shortcuts

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