xsearchpb

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

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

Go to latest
Published: Dec 10, 2018 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Command_Type_name = map[int32]string{
	0: "INDEX",
	1: "REMOVE",
}
View Source
var Command_Type_value = map[string]int32{
	"INDEX":  0,
	"REMOVE": 1,
}
View Source
var PluginType_name = map[int32]string{
	0: "ANALYSIS",
	1: "RERANK",
}
View Source
var PluginType_value = map[string]int32{
	"ANALYSIS": 0,
	"RERANK":   1,
}

Functions

This section is empty.

Types

type Command

type Command struct {
	Type Command_Type `protobuf:"varint,1,opt,name=type,proto3,enum=xsearchpb.Command_Type" json:"type,omitempty"`
	// Types that are valid to be assigned to DocOneof:
	//	*Command_Doc
	//	*Command_DocID
	DocOneof             isCommand_DocOneof `protobuf_oneof:"doc_oneof"`
	XXX_NoUnkeyedLiteral struct{}           `json:"-"`
	XXX_unrecognized     []byte             `json:"-"`
	XXX_sizecache        int32              `json:"-"`
}

func (*Command) Descriptor

func (*Command) Descriptor() ([]byte, []int)

func (*Command) GetDoc

func (m *Command) GetDoc() *Document

func (*Command) GetDocID

func (m *Command) GetDocID() string

func (*Command) GetDocOneof

func (m *Command) GetDocOneof() isCommand_DocOneof

func (*Command) GetType

func (m *Command) GetType() Command_Type

func (*Command) ProtoMessage

func (*Command) ProtoMessage()

func (*Command) Reset

func (m *Command) Reset()

func (*Command) String

func (m *Command) String() string

func (*Command) XXX_DiscardUnknown

func (m *Command) XXX_DiscardUnknown()

func (*Command) XXX_Marshal

func (m *Command) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Command) XXX_Merge

func (dst *Command) XXX_Merge(src proto.Message)

func (*Command) XXX_OneofFuncs

func (*Command) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{})

XXX_OneofFuncs is for the internal use of the proto package.

func (*Command) XXX_Size

func (m *Command) XXX_Size() int

func (*Command) XXX_Unmarshal

func (m *Command) XXX_Unmarshal(b []byte) error

type Command_Doc

type Command_Doc struct {
	Doc *Document `protobuf:"bytes,2,opt,name=doc,proto3,oneof"`
}

type Command_DocID

type Command_DocID struct {
	DocID string `protobuf:"bytes,3,opt,name=docID,proto3,oneof"`
}

type Command_Type

type Command_Type int32
const (
	Command_INDEX  Command_Type = 0
	Command_REMOVE Command_Type = 1
)

func (Command_Type) EnumDescriptor

func (Command_Type) EnumDescriptor() ([]byte, []int)

func (Command_Type) String

func (x Command_Type) String() string

type Document

type Document struct {
	ID                   string   `protobuf:"bytes,1,opt,name=ID,proto3" json:"ID,omitempty"`
	Content              string   `protobuf:"bytes,2,opt,name=content,proto3" json:"content,omitempty"`
	Tokens               []*Token `protobuf:"bytes,3,rep,name=tokens,proto3" json:"tokens,omitempty"`
	BM25Score            float32  `protobuf:"fixed32,4,opt,name=BM25Score,proto3" json:"BM25Score,omitempty"`
	SimNetScore          float32  `protobuf:"fixed32,5,opt,name=SimNetScore,proto3" json:"SimNetScore,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Document) Descriptor

func (*Document) Descriptor() ([]byte, []int)

func (*Document) GetBM25Score

func (m *Document) GetBM25Score() float32

func (*Document) GetContent

func (m *Document) GetContent() string

func (*Document) GetID

func (m *Document) GetID() string

func (*Document) GetSimNetScore

func (m *Document) GetSimNetScore() float32

func (*Document) GetTokens

func (m *Document) GetTokens() []*Token

func (*Document) ProtoMessage

func (*Document) ProtoMessage()

func (*Document) Reset

func (m *Document) Reset()

func (*Document) String

func (m *Document) String() string

func (*Document) XXX_DiscardUnknown

func (m *Document) XXX_DiscardUnknown()

func (*Document) XXX_Marshal

func (m *Document) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Document) XXX_Merge

func (dst *Document) XXX_Merge(src proto.Message)

func (*Document) XXX_Size

func (m *Document) XXX_Size() int

func (*Document) XXX_Unmarshal

func (m *Document) XXX_Unmarshal(b []byte) error

type PluginType

type PluginType int32
const (
	PluginType_ANALYSIS PluginType = 0
	PluginType_RERANK   PluginType = 1
)

func (PluginType) EnumDescriptor

func (PluginType) EnumDescriptor() ([]byte, []int)

func (PluginType) String

func (x PluginType) String() string

type Query

type Query struct {
	Raw                  string   `protobuf:"bytes,1,opt,name=raw,proto3" json:"raw,omitempty"`
	Tokens               []*Token `protobuf:"bytes,2,rep,name=tokens,proto3" json:"tokens,omitempty"`
	Tags                 []string `protobuf:"bytes,3,rep,name=tags,proto3" json:"tags,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Query) Descriptor

func (*Query) Descriptor() ([]byte, []int)

func (*Query) GetRaw

func (m *Query) GetRaw() string

func (*Query) GetTags

func (m *Query) GetTags() []string

func (*Query) GetTokens

func (m *Query) GetTokens() []*Token

func (*Query) ProtoMessage

func (*Query) ProtoMessage()

func (*Query) Reset

func (m *Query) Reset()

func (*Query) String

func (m *Query) String() string

func (*Query) XXX_DiscardUnknown

func (m *Query) XXX_DiscardUnknown()

func (*Query) XXX_Marshal

func (m *Query) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Query) XXX_Merge

func (dst *Query) XXX_Merge(src proto.Message)

func (*Query) XXX_Size

func (m *Query) XXX_Size() int

func (*Query) XXX_Unmarshal

func (m *Query) XXX_Unmarshal(b []byte) error

type QueryAnalysisArgs

type QueryAnalysisArgs struct {
	Queries              []*Query `protobuf:"bytes,1,rep,name=queries,proto3" json:"queries,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*QueryAnalysisArgs) Descriptor

func (*QueryAnalysisArgs) Descriptor() ([]byte, []int)

func (*QueryAnalysisArgs) GetQueries

func (m *QueryAnalysisArgs) GetQueries() []*Query

func (*QueryAnalysisArgs) ProtoMessage

func (*QueryAnalysisArgs) ProtoMessage()

func (*QueryAnalysisArgs) Reset

func (m *QueryAnalysisArgs) Reset()

func (*QueryAnalysisArgs) String

func (m *QueryAnalysisArgs) String() string

func (*QueryAnalysisArgs) XXX_DiscardUnknown

func (m *QueryAnalysisArgs) XXX_DiscardUnknown()

func (*QueryAnalysisArgs) XXX_Marshal

func (m *QueryAnalysisArgs) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryAnalysisArgs) XXX_Merge

func (dst *QueryAnalysisArgs) XXX_Merge(src proto.Message)

func (*QueryAnalysisArgs) XXX_Size

func (m *QueryAnalysisArgs) XXX_Size() int

func (*QueryAnalysisArgs) XXX_Unmarshal

func (m *QueryAnalysisArgs) XXX_Unmarshal(b []byte) error

type RerankArgs

type RerankArgs struct {
	Query                *Query      `protobuf:"bytes,1,opt,name=query,proto3" json:"query,omitempty"`
	Docs                 []*Document `protobuf:"bytes,2,rep,name=docs,proto3" json:"docs,omitempty"`
	XXX_NoUnkeyedLiteral struct{}    `json:"-"`
	XXX_unrecognized     []byte      `json:"-"`
	XXX_sizecache        int32       `json:"-"`
}

func (*RerankArgs) Descriptor

func (*RerankArgs) Descriptor() ([]byte, []int)

func (*RerankArgs) GetDocs

func (m *RerankArgs) GetDocs() []*Document

func (*RerankArgs) GetQuery

func (m *RerankArgs) GetQuery() *Query

func (*RerankArgs) ProtoMessage

func (*RerankArgs) ProtoMessage()

func (*RerankArgs) Reset

func (m *RerankArgs) Reset()

func (*RerankArgs) String

func (m *RerankArgs) String() string

func (*RerankArgs) XXX_DiscardUnknown

func (m *RerankArgs) XXX_DiscardUnknown()

func (*RerankArgs) XXX_Marshal

func (m *RerankArgs) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*RerankArgs) XXX_Merge

func (dst *RerankArgs) XXX_Merge(src proto.Message)

func (*RerankArgs) XXX_Size

func (m *RerankArgs) XXX_Size() int

func (*RerankArgs) XXX_Unmarshal

func (m *RerankArgs) XXX_Unmarshal(b []byte) error

type Token

type Token struct {
	Term                 string   `protobuf:"bytes,1,opt,name=term,proto3" json:"term,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Token) Descriptor

func (*Token) Descriptor() ([]byte, []int)

func (*Token) GetTerm

func (m *Token) GetTerm() string

func (*Token) ProtoMessage

func (*Token) ProtoMessage()

func (*Token) Reset

func (m *Token) Reset()

func (*Token) String

func (m *Token) String() string

func (*Token) XXX_DiscardUnknown

func (m *Token) XXX_DiscardUnknown()

func (*Token) XXX_Marshal

func (m *Token) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Token) XXX_Merge

func (dst *Token) XXX_Merge(src proto.Message)

func (*Token) XXX_Size

func (m *Token) XXX_Size() int

func (*Token) XXX_Unmarshal

func (m *Token) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

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