-- import "github.com/rekki/go-query-index-dsl"
var (
ErrInvalidLengthDsl = fmt.Errorf("proto: negative length found during unmarshaling")
ErrIntOverflowDsl = fmt.Errorf("proto: integer overflow")
)
var Query_Type_name = map[int32]string{
0: "TERM",
1: "AND",
2: "OR",
3: "DISMAX",
}
var Query_Type_value = map[string]int32{
"TERM": 0,
"AND": 1,
"OR": 2,
"DISMAX": 3,
}
type Query struct {
Queries []*Query `protobuf:"bytes,1,rep,name=queries,proto3" json:"queries,omitempty"`
Type Query_Type `protobuf:"varint,2,opt,name=type,proto3,enum=go.query.dsl.Query_Type" json:"type,omitempty"`
Field string `protobuf:"bytes,3,opt,name=field,proto3" json:"field,omitempty"`
Value string `protobuf:"bytes,4,opt,name=value,proto3" json:"value,omitempty"`
Not *Query `protobuf:"bytes,5,opt,name=not,proto3" json:"not,omitempty"`
Tiebreaker float32 `protobuf:"fixed32,6,opt,name=tiebreaker,proto3" json:"tiebreaker,omitempty"`
Boost float32 `protobuf:"fixed32,7,opt,name=boost,proto3" json:"boost,omitempty"`
}
func (*Query) Descriptor() ([]byte, []int)
func (m *Query) GetBoost() float32
func (m *Query) GetField() string
func (m *Query) GetNot() *Query
func (m *Query) GetQueries() []*Query
func (m *Query) GetTiebreaker() float32
func (m *Query) GetType() Query_Type
func (m *Query) GetValue() string
func (m *Query) Marshal() (dAtA []byte, err error)
func (m *Query) MarshalTo(dAtA []byte) (int, error)
func (m *Query) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*Query) ProtoMessage()
func (m *Query) Reset()
func (m *Query) Size() (n int)
func (m *Query) String() string
func (m *Query) Unmarshal(dAtA []byte) error
func (m *Query) XXX_DiscardUnknown()
func (m *Query) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (m *Query) XXX_Merge(src proto.Message)
func (m *Query) XXX_Size() int
func (m *Query) XXX_Unmarshal(b []byte) error
type Query_Type int32
const (
Query_TERM Query_Type = 0
Query_AND Query_Type = 1
Query_OR Query_Type = 2
Query_DISMAX Query_Type = 3
)
func (Query_Type) EnumDescriptor() ([]byte, []int)
func (x Query_Type) String() string