Documentation ¶
Index ¶
- Variables
- type Document
- func (*Document) Descriptor() ([]byte, []int)
- func (m *Document) GetBitsFeature() uint64
- func (m *Document) GetBytes() []byte
- func (m *Document) GetId() string
- func (m *Document) GetIntId() uint64
- func (m *Document) GetKeywords() []*Keyword
- func (m *Document) Marshal() (dAtA []byte, err error)
- func (m *Document) MarshalTo(dAtA []byte) (int, error)
- func (m *Document) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Document) ProtoMessage()
- func (m *Document) Reset()
- func (m *Document) Size() (n int)
- func (m *Document) String() string
- func (m *Document) Unmarshal(dAtA []byte) error
- func (m *Document) XXX_DiscardUnknown()
- func (m *Document) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Document) XXX_Merge(src proto.Message)
- func (m *Document) XXX_Size() int
- func (m *Document) XXX_Unmarshal(b []byte) error
- type Keyword
- func (*Keyword) Descriptor() ([]byte, []int)
- func (m *Keyword) GetField() string
- func (m *Keyword) GetWord() string
- func (m *Keyword) Marshal() (dAtA []byte, err error)
- func (m *Keyword) MarshalTo(dAtA []byte) (int, error)
- func (m *Keyword) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Keyword) ProtoMessage()
- func (m *Keyword) Reset()
- func (m *Keyword) Size() (n int)
- func (m *Keyword) String() string
- func (kw Keyword) ToString() string
- func (m *Keyword) Unmarshal(dAtA []byte) error
- func (m *Keyword) XXX_DiscardUnknown()
- func (m *Keyword) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Keyword) XXX_Merge(src proto.Message)
- func (m *Keyword) XXX_Size() int
- func (m *Keyword) XXX_Unmarshal(b []byte) error
- type TermQuery
- func (tq *TermQuery) And(querys ...*TermQuery) *TermQuery
- func (*TermQuery) Descriptor() ([]byte, []int)
- func (tq TermQuery) Empty() bool
- func (m *TermQuery) GetKeyword() *Keyword
- func (m *TermQuery) GetMust() []*TermQuery
- func (m *TermQuery) GetShould() []*TermQuery
- func (m *TermQuery) Marshal() (dAtA []byte, err error)
- func (m *TermQuery) MarshalTo(dAtA []byte) (int, error)
- func (m *TermQuery) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (tq *TermQuery) Or(querys ...*TermQuery) *TermQuery
- func (*TermQuery) ProtoMessage()
- func (m *TermQuery) Reset()
- func (m *TermQuery) Size() (n int)
- func (m *TermQuery) String() string
- func (tq TermQuery) ToString() string
- func (m *TermQuery) Unmarshal(dAtA []byte) error
- func (m *TermQuery) XXX_DiscardUnknown()
- func (m *TermQuery) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *TermQuery) XXX_Merge(src proto.Message)
- func (m *TermQuery) XXX_Size() int
- func (m *TermQuery) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Document ¶
type Document struct { Id string `protobuf:"bytes,1,opt,name=Id,proto3" json:"Id,omitempty"` IntId uint64 `protobuf:"varint,2,opt,name=IntId,proto3" json:"IntId,omitempty"` BitsFeature uint64 `protobuf:"varint,3,opt,name=BitsFeature,proto3" json:"BitsFeature,omitempty"` Keywords []*Keyword `protobuf:"bytes,4,rep,name=Keywords,proto3" json:"Keywords,omitempty"` Bytes []byte `protobuf:"bytes,5,opt,name=Bytes,proto3" json:"Bytes,omitempty"` }
func (*Document) Descriptor ¶
func (*Document) GetBitsFeature ¶
func (*Document) GetKeywords ¶
func (*Document) MarshalToSizedBuffer ¶
func (*Document) ProtoMessage ¶
func (*Document) ProtoMessage()
func (*Document) XXX_DiscardUnknown ¶
func (m *Document) XXX_DiscardUnknown()
func (*Document) XXX_Marshal ¶
func (*Document) XXX_Unmarshal ¶
type Keyword ¶
type Keyword struct { Field string `protobuf:"bytes,1,opt,name=Field,proto3" json:"Field,omitempty"` Word string `protobuf:"bytes,2,opt,name=Word,proto3" json:"Word,omitempty"` }
func (*Keyword) Descriptor ¶
func (*Keyword) MarshalToSizedBuffer ¶
func (*Keyword) ProtoMessage ¶
func (*Keyword) ProtoMessage()
func (*Keyword) XXX_DiscardUnknown ¶
func (m *Keyword) XXX_DiscardUnknown()
func (*Keyword) XXX_Marshal ¶
func (*Keyword) XXX_Unmarshal ¶
type TermQuery ¶
type TermQuery struct { Keyword *Keyword `protobuf:"bytes,1,opt,name=Keyword,proto3" json:"Keyword,omitempty"` Must []*TermQuery `protobuf:"bytes,2,rep,name=Must,proto3" json:"Must,omitempty"` Should []*TermQuery `protobuf:"bytes,3,rep,name=Should,proto3" json:"Should,omitempty"` }
func NewTermQuery ¶
func (*TermQuery) Descriptor ¶
func (*TermQuery) GetKeyword ¶
func (*TermQuery) MarshalToSizedBuffer ¶
func (*TermQuery) ProtoMessage ¶
func (*TermQuery) ProtoMessage()
func (*TermQuery) XXX_DiscardUnknown ¶
func (m *TermQuery) XXX_DiscardUnknown()
func (*TermQuery) XXX_Marshal ¶
func (*TermQuery) XXX_Unmarshal ¶
Click to show internal directories.
Click to hide internal directories.