Documentation ¶
Index ¶
- Variables
- type Command
- func (*Command) Descriptor() ([]byte, []int)
- func (m *Command) GetDoc() *Document
- func (m *Command) GetDocID() string
- func (m *Command) GetDocOneof() isCommand_DocOneof
- func (m *Command) GetType() Command_Type
- func (*Command) ProtoMessage()
- func (m *Command) Reset()
- func (m *Command) String() string
- func (m *Command) XXX_DiscardUnknown()
- func (m *Command) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Command) XXX_Merge(src proto.Message)
- func (*Command) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, ...)
- func (m *Command) XXX_Size() int
- func (m *Command) XXX_Unmarshal(b []byte) error
- type Command_Doc
- type Command_DocID
- type Command_Type
- type Document
- func (*Document) Descriptor() ([]byte, []int)
- func (m *Document) GetBM25Score() float32
- func (m *Document) GetContent() string
- func (m *Document) GetID() string
- func (m *Document) GetSimNetScore() float32
- func (m *Document) GetTokens() []*Token
- func (*Document) ProtoMessage()
- func (m *Document) Reset()
- func (m *Document) String() string
- func (m *Document) XXX_DiscardUnknown()
- func (m *Document) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Document) XXX_Merge(src proto.Message)
- func (m *Document) XXX_Size() int
- func (m *Document) XXX_Unmarshal(b []byte) error
- type PluginType
- type Query
- func (*Query) Descriptor() ([]byte, []int)
- func (m *Query) GetRaw() string
- func (m *Query) GetTags() []string
- func (m *Query) GetTokens() []*Token
- func (*Query) ProtoMessage()
- func (m *Query) Reset()
- func (m *Query) String() string
- func (m *Query) XXX_DiscardUnknown()
- func (m *Query) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Query) XXX_Merge(src proto.Message)
- func (m *Query) XXX_Size() int
- func (m *Query) XXX_Unmarshal(b []byte) error
- type QueryAnalysisArgs
- func (*QueryAnalysisArgs) Descriptor() ([]byte, []int)
- func (m *QueryAnalysisArgs) GetQueries() []*Query
- func (*QueryAnalysisArgs) ProtoMessage()
- func (m *QueryAnalysisArgs) Reset()
- func (m *QueryAnalysisArgs) String() string
- func (m *QueryAnalysisArgs) XXX_DiscardUnknown()
- func (m *QueryAnalysisArgs) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *QueryAnalysisArgs) XXX_Merge(src proto.Message)
- func (m *QueryAnalysisArgs) XXX_Size() int
- func (m *QueryAnalysisArgs) XXX_Unmarshal(b []byte) error
- type RerankArgs
- func (*RerankArgs) Descriptor() ([]byte, []int)
- func (m *RerankArgs) GetDocs() []*Document
- func (m *RerankArgs) GetQuery() *Query
- func (*RerankArgs) ProtoMessage()
- func (m *RerankArgs) Reset()
- func (m *RerankArgs) String() string
- func (m *RerankArgs) XXX_DiscardUnknown()
- func (m *RerankArgs) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *RerankArgs) XXX_Merge(src proto.Message)
- func (m *RerankArgs) XXX_Size() int
- func (m *RerankArgs) XXX_Unmarshal(b []byte) error
- type Token
- func (*Token) Descriptor() ([]byte, []int)
- func (m *Token) GetTerm() string
- func (*Token) ProtoMessage()
- func (m *Token) Reset()
- func (m *Token) String() string
- func (m *Token) XXX_DiscardUnknown()
- func (m *Token) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Token) XXX_Merge(src proto.Message)
- func (m *Token) XXX_Size() int
- func (m *Token) XXX_Unmarshal(b []byte) error
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) GetDocOneof ¶
func (m *Command) GetDocOneof() isCommand_DocOneof
func (*Command) GetType ¶
func (m *Command) GetType() Command_Type
func (*Command) ProtoMessage ¶
func (*Command) ProtoMessage()
func (*Command) XXX_DiscardUnknown ¶
func (m *Command) XXX_DiscardUnknown()
func (*Command) XXX_Marshal ¶
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_Unmarshal ¶
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) GetBM25Score ¶
func (*Document) GetContent ¶
func (*Document) GetSimNetScore ¶
func (*Document) ProtoMessage ¶
func (*Document) ProtoMessage()
func (*Document) XXX_DiscardUnknown ¶
func (m *Document) XXX_DiscardUnknown()
func (*Document) XXX_Marshal ¶
func (*Document) XXX_Unmarshal ¶
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) ProtoMessage ¶
func (*Query) ProtoMessage()
func (*Query) XXX_DiscardUnknown ¶
func (m *Query) XXX_DiscardUnknown()
func (*Query) XXX_Marshal ¶
func (*Query) XXX_Unmarshal ¶
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) ProtoMessage ¶
func (*Token) ProtoMessage()
func (*Token) XXX_DiscardUnknown ¶
func (m *Token) XXX_DiscardUnknown()
func (*Token) XXX_Marshal ¶
func (*Token) XXX_Unmarshal ¶
Click to show internal directories.
Click to hide internal directories.