Documentation
¶
Overview ¶
Package search is a generated protocol buffer package.
It is generated from these files:
google.golang.org/appengine/internal/search/search.proto
It has these top-level messages:
Scope Entry AccessControlList FieldValue Field FieldTypes FacetValue Facet Document SearchServiceError RequestStatus IndexSpec IndexMetadata IndexDocumentParams IndexDocumentRequest IndexDocumentResponse DeleteDocumentParams DeleteDocumentRequest DeleteDocumentResponse ListDocumentsParams ListDocumentsRequest ListDocumentsResponse ListIndexesParams ListIndexesRequest ListIndexesResponse DeleteSchemaParams DeleteSchemaRequest DeleteSchemaResponse SortSpec ScorerSpec FieldSpec FacetRange FacetRequestParam FacetAutoDetectParam FacetRequest FacetRefine SearchParams SearchRequest FacetResultValue FacetResult SearchResult SearchResponse
Index ¶
- Constants
- Variables
- type AccessControlList
- type DeleteDocumentParams
- type DeleteDocumentRequest
- type DeleteDocumentResponse
- type DeleteSchemaParams
- type DeleteSchemaRequest
- type DeleteSchemaResponse
- type Document
- func (m *Document) GetAcl() *AccessControlList
- func (m *Document) GetFacet() []*Facet
- func (m *Document) GetField() []*Field
- func (m *Document) GetId() string
- func (m *Document) GetLanguage() string
- func (m *Document) GetOrderId() int32
- func (m *Document) GetStorage() Document_Storage
- func (m *Document) GetVersion() int64
- func (*Document) ProtoMessage()
- func (m *Document) Reset()
- func (m *Document) String() string
- type Document_Storage
- type Entry
- type Entry_Permission
- type Facet
- type FacetAutoDetectParam
- type FacetRange
- type FacetRefine
- func (m *FacetRefine) GetEnd() string
- func (m *FacetRefine) GetName() string
- func (m *FacetRefine) GetStart() string
- func (m *FacetRefine) GetType() FacetValue_ContentType
- func (m *FacetRefine) GetValue() string
- func (*FacetRefine) ProtoMessage()
- func (m *FacetRefine) Reset()
- func (m *FacetRefine) String() string
- type FacetRequest
- type FacetRequestParam
- type FacetResult
- type FacetResultValue
- type FacetValue
- type FacetValue_ContentType
- type Field
- type FieldSpec
- type FieldSpec_Expression
- type FieldTypes
- type FieldValue
- type FieldValue_ContentType
- type FieldValue_Geo
- type IndexDocumentParams
- func (m *IndexDocumentParams) GetDocument() []*Document
- func (m *IndexDocumentParams) GetFreshness() IndexDocumentParams_Freshness
- func (m *IndexDocumentParams) GetIndexSpec() *IndexSpec
- func (*IndexDocumentParams) ProtoMessage()
- func (m *IndexDocumentParams) Reset()
- func (m *IndexDocumentParams) String() string
- type IndexDocumentParams_Freshness
- type IndexDocumentRequest
- type IndexDocumentResponse
- type IndexMetadata
- type IndexMetadata_Storage
- type IndexSpec
- func (m *IndexSpec) GetConsistency() IndexSpec_Consistency
- func (m *IndexSpec) GetMode() IndexSpec_Mode
- func (m *IndexSpec) GetName() string
- func (m *IndexSpec) GetNamespace() string
- func (m *IndexSpec) GetSource() IndexSpec_Source
- func (m *IndexSpec) GetVersion() int32
- func (*IndexSpec) ProtoMessage()
- func (m *IndexSpec) Reset()
- func (m *IndexSpec) String() string
- type IndexSpec_Consistency
- type IndexSpec_Mode
- type IndexSpec_Source
- type ListDocumentsParams
- func (m *ListDocumentsParams) GetIncludeStartDoc() bool
- func (m *ListDocumentsParams) GetIndexSpec() *IndexSpec
- func (m *ListDocumentsParams) GetKeysOnly() bool
- func (m *ListDocumentsParams) GetLimit() int32
- func (m *ListDocumentsParams) GetStartDocId() string
- func (*ListDocumentsParams) ProtoMessage()
- func (m *ListDocumentsParams) Reset()
- func (m *ListDocumentsParams) String() string
- type ListDocumentsRequest
- type ListDocumentsResponse
- type ListIndexesParams
- func (m *ListIndexesParams) GetFetchSchema() bool
- func (m *ListIndexesParams) GetIncludeStartIndex() bool
- func (m *ListIndexesParams) GetIndexNamePrefix() string
- func (m *ListIndexesParams) GetLimit() int32
- func (m *ListIndexesParams) GetNamespace() string
- func (m *ListIndexesParams) GetOffset() int32
- func (m *ListIndexesParams) GetSource() IndexSpec_Source
- func (m *ListIndexesParams) GetStartIndexName() string
- func (*ListIndexesParams) ProtoMessage()
- func (m *ListIndexesParams) Reset()
- func (m *ListIndexesParams) String() string
- type ListIndexesRequest
- type ListIndexesResponse
- type RequestStatus
- type Scope
- type Scope_Type
- type ScorerSpec
- type ScorerSpec_Scorer
- type SearchParams
- func (m *SearchParams) GetAutoDiscoverFacetCount() int32
- func (m *SearchParams) GetCursor() string
- func (m *SearchParams) GetCursorType() SearchParams_CursorType
- func (m *SearchParams) GetFacetAutoDetectParam() *FacetAutoDetectParam
- func (m *SearchParams) GetFacetRefine() []*FacetRefine
- func (m *SearchParams) GetFieldSpec() *FieldSpec
- func (m *SearchParams) GetIncludeFacet() []*FacetRequest
- func (m *SearchParams) GetIndexSpec() *IndexSpec
- func (m *SearchParams) GetKeysOnly() bool
- func (m *SearchParams) GetLimit() int32
- func (m *SearchParams) GetMatchedCountAccuracy() int32
- func (m *SearchParams) GetOffset() int32
- func (m *SearchParams) GetParsingMode() SearchParams_ParsingMode
- func (m *SearchParams) GetQuery() string
- func (m *SearchParams) GetScorerSpec() *ScorerSpec
- func (m *SearchParams) GetSortSpec() []*SortSpec
- func (*SearchParams) ProtoMessage()
- func (m *SearchParams) Reset()
- func (m *SearchParams) String() string
- type SearchParams_CursorType
- type SearchParams_ParsingMode
- type SearchRequest
- type SearchResponse
- func (m *SearchResponse) ExtensionMap() map[int32]proto.Extension
- func (*SearchResponse) ExtensionRangeArray() []proto.ExtensionRange
- func (m *SearchResponse) GetCursor() string
- func (m *SearchResponse) GetFacetResult() []*FacetResult
- func (m *SearchResponse) GetMatchedCount() int64
- func (m *SearchResponse) GetResult() []*SearchResult
- func (m *SearchResponse) GetStatus() *RequestStatus
- func (*SearchResponse) ProtoMessage()
- func (m *SearchResponse) Reset()
- func (m *SearchResponse) String() string
- type SearchResult
- type SearchServiceError
- type SearchServiceError_ErrorCode
- type SortSpec
Constants ¶
View Source
const Default_Document_Language string = "en"
View Source
const Default_FacetAutoDetectParam_ValueLimit int32 = 10
View Source
const Default_FieldValue_Language string = "en"
View Source
const Default_ListDocumentsParams_IncludeStartDoc bool = true
View Source
const Default_ListDocumentsParams_Limit int32 = 100
View Source
const Default_ListIndexesParams_IncludeStartIndex bool = true
View Source
const Default_ListIndexesParams_Limit int32 = 20
View Source
const Default_ScorerSpec_Limit int32 = 1000
View Source
const Default_SearchParams_AutoDiscoverFacetCount int32 = 0
View Source
const Default_SearchParams_Limit int32 = 20
View Source
const Default_SortSpec_SortDescending bool = true
Variables ¶
View Source
var Document_Storage_name = map[int32]string{
0: "DISK",
}
View Source
var Document_Storage_value = map[string]int32{
"DISK": 0,
}
View Source
var Entry_Permission_name = map[int32]string{
1: "READ",
2: "WRITE",
3: "FULL_CONTROL",
}
View Source
var Entry_Permission_value = map[string]int32{
"READ": 1,
"WRITE": 2,
"FULL_CONTROL": 3,
}
View Source
var FacetValue_ContentType_name = map[int32]string{
2: "ATOM",
3: "DATE",
4: "NUMBER",
}
View Source
var FacetValue_ContentType_value = map[string]int32{
"ATOM": 2,
"DATE": 3,
"NUMBER": 4,
}
View Source
var FieldValue_ContentType_name = map[int32]string{
0: "TEXT",
1: "HTML",
2: "ATOM",
3: "DATE",
4: "NUMBER",
5: "GEO",
}
View Source
var FieldValue_ContentType_value = map[string]int32{
"TEXT": 0,
"HTML": 1,
"ATOM": 2,
"DATE": 3,
"NUMBER": 4,
"GEO": 5,
}
View Source
var IndexDocumentParams_Freshness_name = map[int32]string{
0: "SYNCHRONOUSLY",
1: "WHEN_CONVENIENT",
}
View Source
var IndexDocumentParams_Freshness_value = map[string]int32{
"SYNCHRONOUSLY": 0,
"WHEN_CONVENIENT": 1,
}
View Source
var IndexSpec_Consistency_name = map[int32]string{
0: "GLOBAL",
1: "PER_DOCUMENT",
}
View Source
var IndexSpec_Consistency_value = map[string]int32{
"GLOBAL": 0,
"PER_DOCUMENT": 1,
}
View Source
var IndexSpec_Mode_name = map[int32]string{
0: "PRIORITY",
1: "BACKGROUND",
}
View Source
var IndexSpec_Mode_value = map[string]int32{
"PRIORITY": 0,
"BACKGROUND": 1,
}
View Source
var IndexSpec_Source_name = map[int32]string{
0: "SEARCH",
1: "DATASTORE",
2: "CLOUD_STORAGE",
}
View Source
var IndexSpec_Source_value = map[string]int32{
"SEARCH": 0,
"DATASTORE": 1,
"CLOUD_STORAGE": 2,
}
View Source
var Scope_Type_name = map[int32]string{
1: "USER_BY_CANONICAL_ID",
2: "USER_BY_EMAIL",
3: "GROUP_BY_CANONICAL_ID",
4: "GROUP_BY_EMAIL",
5: "GROUP_BY_DOMAIN",
6: "ALL_USERS",
7: "ALL_AUTHENTICATED_USERS",
}
View Source
var Scope_Type_value = map[string]int32{
"USER_BY_CANONICAL_ID": 1,
"USER_BY_EMAIL": 2,
"GROUP_BY_CANONICAL_ID": 3,
"GROUP_BY_EMAIL": 4,
"GROUP_BY_DOMAIN": 5,
"ALL_USERS": 6,
"ALL_AUTHENTICATED_USERS": 7,
}
View Source
var ScorerSpec_Scorer_name = map[int32]string{
0: "RESCORING_MATCH_SCORER",
2: "MATCH_SCORER",
}
View Source
var ScorerSpec_Scorer_value = map[string]int32{
"RESCORING_MATCH_SCORER": 0,
"MATCH_SCORER": 2,
}
View Source
var SearchParams_CursorType_name = map[int32]string{
0: "NONE",
1: "SINGLE",
2: "PER_RESULT",
}
View Source
var SearchParams_CursorType_value = map[string]int32{
"NONE": 0,
"SINGLE": 1,
"PER_RESULT": 2,
}
View Source
var SearchParams_ParsingMode_name = map[int32]string{
0: "STRICT",
1: "RELAXED",
}
View Source
var SearchParams_ParsingMode_value = map[string]int32{
"STRICT": 0,
"RELAXED": 1,
}
View Source
var SearchServiceError_ErrorCode_name = map[int32]string{
0: "OK",
1: "INVALID_REQUEST",
2: "TRANSIENT_ERROR",
3: "INTERNAL_ERROR",
4: "PERMISSION_DENIED",
5: "TIMEOUT",
6: "CONCURRENT_TRANSACTION",
}
View Source
var SearchServiceError_ErrorCode_value = map[string]int32{
"OK": 0,
"INVALID_REQUEST": 1,
"TRANSIENT_ERROR": 2,
"INTERNAL_ERROR": 3,
"PERMISSION_DENIED": 4,
"TIMEOUT": 5,
"CONCURRENT_TRANSACTION": 6,
}
Functions ¶
This section is empty.
Types ¶
type AccessControlList ¶
type AccessControlList struct {
Owner *string `protobuf:"bytes,1,opt,name=owner" json:"owner,omitempty"`
Entries []*Entry `protobuf:"bytes,2,rep,name=entries" json:"entries,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
func (*AccessControlList) GetEntries ¶
func (m *AccessControlList) GetEntries() []*Entry
func (*AccessControlList) ProtoMessage ¶
func (*AccessControlList) ProtoMessage()
type DeleteDocumentParams ¶
type DeleteDocumentParams struct {
DocId []string `protobuf:"bytes,1,rep,name=doc_id" json:"doc_id,omitempty"`
IndexSpec *IndexSpec `protobuf:"bytes,2,req,name=index_spec" json:"index_spec,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
func (*DeleteDocumentParams) GetIndexSpec ¶
func (m *DeleteDocumentParams) GetIndexSpec() *IndexSpec
func (*DeleteDocumentParams) ProtoMessage ¶
func (*DeleteDocumentParams) ProtoMessage()
type DeleteDocumentRequest ¶
type DeleteDocumentRequest struct {
Params *DeleteDocumentParams `protobuf:"bytes,1,req,name=params" json:"params,omitempty"`
AppId []byte `protobuf:"bytes,3,opt,name=app_id" json:"app_id,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
func (*DeleteDocumentRequest) GetParams ¶
func (m *DeleteDocumentRequest) GetParams() *DeleteDocumentParams
func (*DeleteDocumentRequest) ProtoMessage ¶
func (*DeleteDocumentRequest) ProtoMessage()
type DeleteDocumentResponse ¶
type DeleteDocumentResponse struct {
Status []*RequestStatus `protobuf:"bytes,1,rep,name=status" json:"status,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
func (*DeleteDocumentResponse) GetStatus ¶
func (m *DeleteDocumentResponse) GetStatus() []*RequestStatus
func (*DeleteDocumentResponse) ProtoMessage ¶
func (*DeleteDocumentResponse) ProtoMessage()
type DeleteSchemaParams ¶
type DeleteSchemaParams struct {
Source *IndexSpec_Source `protobuf:"varint,1,opt,name=source,enum=search.IndexSpec_Source,def=0" json:"source,omitempty"`
IndexSpec []*IndexSpec `protobuf:"bytes,2,rep,name=index_spec" json:"index_spec,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
func (*DeleteSchemaParams) GetIndexSpec ¶
func (m *DeleteSchemaParams) GetIndexSpec() []*IndexSpec
func (*DeleteSchemaParams) ProtoMessage ¶
func (*DeleteSchemaParams) ProtoMessage()
type DeleteSchemaRequest ¶
type DeleteSchemaRequest struct {
Params *DeleteSchemaParams `protobuf:"bytes,1,req,name=params" json:"params,omitempty"`
AppId []byte `protobuf:"bytes,3,opt,name=app_id" json:"app_id,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
func (*DeleteSchemaRequest) GetParams ¶
func (m *DeleteSchemaRequest) GetParams() *DeleteSchemaParams
func (*DeleteSchemaRequest) ProtoMessage ¶
func (*DeleteSchemaRequest) ProtoMessage()
type DeleteSchemaResponse ¶
type DeleteSchemaResponse struct {
Status []*RequestStatus `protobuf:"bytes,1,rep,name=status" json:"status,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
func (*DeleteSchemaResponse) GetStatus ¶
func (m *DeleteSchemaResponse) GetStatus() []*RequestStatus
func (*DeleteSchemaResponse) ProtoMessage ¶
func (*DeleteSchemaResponse) ProtoMessage()
type Document ¶
type Document struct {
Id *string `protobuf:"bytes,1,opt,name=id" json:"id,omitempty"`
Language *string `protobuf:"bytes,2,opt,name=language,def=en" json:"language,omitempty"`
Field []*Field `protobuf:"bytes,3,rep,name=field" json:"field,omitempty"`
OrderId *int32 `protobuf:"varint,4,opt,name=order_id" json:"order_id,omitempty"`
Storage *Document_Storage `protobuf:"varint,5,opt,name=storage,enum=search.Document_Storage,def=0" json:"storage,omitempty"`
Acl *AccessControlList `protobuf:"bytes,6,opt,name=acl" json:"acl,omitempty"`
Version *int64 `protobuf:"varint,7,opt,name=version" json:"version,omitempty"`
Facet []*Facet `protobuf:"bytes,8,rep,name=facet" json:"facet,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
func (*Document) GetLanguage ¶
func (m *Document) GetLanguage() string
func (*Document) GetOrderId ¶
func (m *Document) GetOrderId() int32
func (*Document) GetStorage ¶
func (m *Document) GetStorage() Document_Storage
func (*Document) GetVersion ¶
func (m *Document) GetVersion() int64
func (*Document) ProtoMessage ¶
func (*Document) ProtoMessage()
type Document_Storage ¶
type Document_Storage int32
const Default_Document_Storage Document_Storage = Document_DISK
const (
Document_DISK Document_Storage = 0
)
func (*Document_Storage) UnmarshalJSON ¶
func (x *Document_Storage) UnmarshalJSON(data []byte) error
type Entry ¶
type Entry struct {
Scope *Scope `protobuf:"bytes,1,opt,name=scope" json:"scope,omitempty"`
Permission *Entry_Permission `protobuf:"varint,2,opt,name=permission,enum=search.Entry_Permission" json:"permission,omitempty"`
DisplayName *string `protobuf:"bytes,3,opt,name=display_name" json:"display_name,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
func (*Entry) GetDisplayName ¶
func (m *Entry) GetDisplayName() string
func (*Entry) GetPermission ¶
func (m *Entry) GetPermission() Entry_Permission
func (*Entry) ProtoMessage ¶
func (*Entry) ProtoMessage()
type Entry_Permission ¶
type Entry_Permission int32
const (
Entry_READ Entry_Permission = 1
Entry_WRITE Entry_Permission = 2
Entry_FULL_CONTROL Entry_Permission = 3
)
func (*Entry_Permission) UnmarshalJSON ¶
func (x *Entry_Permission) UnmarshalJSON(data []byte) error
type Facet ¶
type Facet struct {
Name *string `protobuf:"bytes,1,req,name=name" json:"name,omitempty"`
Value *FacetValue `protobuf:"bytes,2,req,name=value" json:"value,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
func (*Facet) ProtoMessage ¶
func (*Facet) ProtoMessage()
type FacetAutoDetectParam ¶
type FacetAutoDetectParam struct {
ValueLimit *int32 `protobuf:"varint,1,opt,name=value_limit,def=10" json:"value_limit,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
func (*FacetAutoDetectParam) GetValueLimit ¶
func (m *FacetAutoDetectParam) GetValueLimit() int32
func (*FacetAutoDetectParam) ProtoMessage ¶
func (*FacetAutoDetectParam) ProtoMessage()
type FacetRange ¶
type FacetRange struct {
Name *string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
Start *string `protobuf:"bytes,2,opt,name=start" json:"start,omitempty"`
End *string `protobuf:"bytes,3,opt,name=end" json:"end,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
func (*FacetRange) ProtoMessage ¶
func (*FacetRange) ProtoMessage()
type FacetRefine ¶
type FacetRefine struct {
Name *string `protobuf:"bytes,1,req,name=name" json:"name,omitempty"`
Type *FacetValue_ContentType `protobuf:"varint,2,req,name=type,enum=search.FacetValue_ContentType" json:"type,omitempty"`
Value *string `protobuf:"bytes,3,opt,name=value" json:"value,omitempty"`
Start *string `protobuf:"bytes,4,opt,name=start" json:"start,omitempty"`
End *string `protobuf:"bytes,5,opt,name=end" json:"end,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
func (*FacetRefine) ProtoMessage ¶
func (*FacetRefine) ProtoMessage()
type FacetRequest ¶
type FacetRequest struct {
Name *string `protobuf:"bytes,1,req,name=name" json:"name,omitempty"`
Type *FacetValue_ContentType `protobuf:"varint,2,req,name=type,enum=search.FacetValue_ContentType" json:"type,omitempty"`
Params *FacetRequestParam `protobuf:"bytes,3,opt,name=params" json:"params,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
func (*FacetRequest) ProtoMessage ¶
func (*FacetRequest) ProtoMessage()
type FacetRequestParam ¶
type FacetRequestParam struct {
ValueLimit *int32 `protobuf:"varint,1,opt,name=value_limit" json:"value_limit,omitempty"`
Range []*FacetRange `protobuf:"bytes,2,rep,name=range" json:"range,omitempty"`
ValueConstraint []string `protobuf:"bytes,3,rep,name=value_constraint" json:"value_constraint,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
func (*FacetRequestParam) GetValueConstraint ¶
func (m *FacetRequestParam) GetValueConstraint() []string
func (*FacetRequestParam) GetValueLimit ¶
func (m *FacetRequestParam) GetValueLimit() int32
func (*FacetRequestParam) ProtoMessage ¶
func (*FacetRequestParam) ProtoMessage()
type FacetResult ¶
type FacetResult struct {
Name *string `protobuf:"bytes,1,req,name=name" json:"name,omitempty"`
Type *FacetValue_ContentType `protobuf:"varint,2,req,name=type,enum=search.FacetValue_ContentType" json:"type,omitempty"`
Value []*FacetResultValue `protobuf:"bytes,3,rep,name=value" json:"value,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
func (*FacetResult) ProtoMessage ¶
func (*FacetResult) ProtoMessage()
type FacetResultValue ¶
type FacetResultValue struct {
Name *string `protobuf:"bytes,1,req,name=name" json:"name,omitempty"`
Count *int32 `protobuf:"varint,2,req,name=count" json:"count,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
func (*FacetResultValue) ProtoMessage ¶
func (*FacetResultValue) ProtoMessage()
type FacetValue ¶
type FacetValue struct {
Type *FacetValue_ContentType `protobuf:"varint,1,opt,name=type,enum=search.FacetValue_ContentType,def=2" json:"type,omitempty"`
StringValue *string `protobuf:"bytes,3,opt,name=string_value" json:"string_value,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
func (*FacetValue) GetStringValue ¶
func (m *FacetValue) GetStringValue() string
func (*FacetValue) ProtoMessage ¶
func (*FacetValue) ProtoMessage()
type FacetValue_ContentType ¶
type FacetValue_ContentType int32
const (
FacetValue_ATOM FacetValue_ContentType = 2
FacetValue_DATE FacetValue_ContentType = 3
FacetValue_NUMBER FacetValue_ContentType = 4
)
const Default_FacetValue_Type FacetValue_ContentType = FacetValue_ATOM
func (*FacetValue_ContentType) UnmarshalJSON ¶
func (x *FacetValue_ContentType) UnmarshalJSON(data []byte) error
type Field ¶
type Field struct {
Name *string `protobuf:"bytes,1,req,name=name" json:"name,omitempty"`
Value *FieldValue `protobuf:"bytes,2,req,name=value" json:"value,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
func (*Field) ProtoMessage ¶
func (*Field) ProtoMessage()
type FieldSpec ¶
type FieldSpec struct {
Name []string `protobuf:"bytes,1,rep,name=name" json:"name,omitempty"`
Expression []*FieldSpec_Expression `protobuf:"group,2,rep" json:"expression,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
func (*FieldSpec) GetExpression ¶
func (m *FieldSpec) GetExpression() []*FieldSpec_Expression
func (*FieldSpec) ProtoMessage ¶
func (*FieldSpec) ProtoMessage()
type FieldSpec_Expression ¶
type FieldSpec_Expression struct {
Name *string `protobuf:"bytes,3,req,name=name" json:"name,omitempty"`
Expression *string `protobuf:"bytes,4,req,name=expression" json:"expression,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
func (*FieldSpec_Expression) GetExpression ¶
func (m *FieldSpec_Expression) GetExpression() string
func (*FieldSpec_Expression) ProtoMessage ¶
func (*FieldSpec_Expression) ProtoMessage()
type FieldTypes ¶
type FieldTypes struct {
Name *string `protobuf:"bytes,1,req,name=name" json:"name,omitempty"`
Type []FieldValue_ContentType `protobuf:"varint,2,rep,name=type,enum=search.FieldValue_ContentType" json:"type,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
func (*FieldTypes) ProtoMessage ¶
func (*FieldTypes) ProtoMessage()
type FieldValue ¶
type FieldValue struct {
Type *FieldValue_ContentType `protobuf:"varint,1,opt,name=type,enum=search.FieldValue_ContentType,def=0" json:"type,omitempty"`
Language *string `protobuf:"bytes,2,opt,name=language,def=en" json:"language,omitempty"`
StringValue *string `protobuf:"bytes,3,opt,name=string_value" json:"string_value,omitempty"`
Geo *FieldValue_Geo `protobuf:"group,4,opt" json:"geo,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
func (*FieldValue) GetLanguage ¶
func (m *FieldValue) GetLanguage() string
func (*FieldValue) GetStringValue ¶
func (m *FieldValue) GetStringValue() string
func (*FieldValue) ProtoMessage ¶
func (*FieldValue) ProtoMessage()
type FieldValue_ContentType ¶
type FieldValue_ContentType int32
const (
FieldValue_TEXT FieldValue_ContentType = 0
FieldValue_HTML FieldValue_ContentType = 1
FieldValue_ATOM FieldValue_ContentType = 2
FieldValue_DATE FieldValue_ContentType = 3
FieldValue_NUMBER FieldValue_ContentType = 4
FieldValue_GEO FieldValue_ContentType = 5
)
const Default_FieldValue_Type FieldValue_ContentType = FieldValue_TEXT
func (*FieldValue_ContentType) UnmarshalJSON ¶
func (x *FieldValue_ContentType) UnmarshalJSON(data []byte) error
type FieldValue_Geo ¶
type FieldValue_Geo struct {
Lat *float64 `protobuf:"fixed64,5,req,name=lat" json:"lat,omitempty"`
Lng *float64 `protobuf:"fixed64,6,req,name=lng" json:"lng,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
func (*FieldValue_Geo) ProtoMessage ¶
func (*FieldValue_Geo) ProtoMessage()
type IndexDocumentParams ¶
type IndexDocumentParams struct {
Document []*Document `protobuf:"bytes,1,rep,name=document" json:"document,omitempty"`
Freshness *IndexDocumentParams_Freshness `protobuf:"varint,2,opt,name=freshness,enum=search.IndexDocumentParams_Freshness,def=0" json:"freshness,omitempty"`
IndexSpec *IndexSpec `protobuf:"bytes,3,req,name=index_spec" json:"index_spec,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
func (*IndexDocumentParams) GetDocument ¶
func (m *IndexDocumentParams) GetDocument() []*Document
func (*IndexDocumentParams) GetFreshness ¶
func (m *IndexDocumentParams) GetFreshness() IndexDocumentParams_Freshness
func (*IndexDocumentParams) GetIndexSpec ¶
func (m *IndexDocumentParams) GetIndexSpec() *IndexSpec
func (*IndexDocumentParams) ProtoMessage ¶
func (*IndexDocumentParams) ProtoMessage()
type IndexDocumentParams_Freshness ¶
type IndexDocumentParams_Freshness int32
const (
IndexDocumentParams_SYNCHRONOUSLY IndexDocumentParams_Freshness = 0
IndexDocumentParams_WHEN_CONVENIENT IndexDocumentParams_Freshness = 1
)
const Default_IndexDocumentParams_Freshness IndexDocumentParams_Freshness = IndexDocumentParams_SYNCHRONOUSLY
func (IndexDocumentParams_Freshness) Enum ¶
func (x IndexDocumentParams_Freshness) Enum() *IndexDocumentParams_Freshness
func (IndexDocumentParams_Freshness) String ¶
func (x IndexDocumentParams_Freshness) String() string
func (*IndexDocumentParams_Freshness) UnmarshalJSON ¶
func (x *IndexDocumentParams_Freshness) UnmarshalJSON(data []byte) error
type IndexDocumentRequest ¶
type IndexDocumentRequest struct {
Params *IndexDocumentParams `protobuf:"bytes,1,req,name=params" json:"params,omitempty"`
AppId []byte `protobuf:"bytes,3,opt,name=app_id" json:"app_id,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
func (*IndexDocumentRequest) GetParams ¶
func (m *IndexDocumentRequest) GetParams() *IndexDocumentParams
func (*IndexDocumentRequest) ProtoMessage ¶
func (*IndexDocumentRequest) ProtoMessage()
type IndexDocumentResponse ¶
type IndexDocumentResponse struct {
Status []*RequestStatus `protobuf:"bytes,1,rep,name=status" json:"status,omitempty"`
DocId []string `protobuf:"bytes,2,rep,name=doc_id" json:"doc_id,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
func (*IndexDocumentResponse) GetStatus ¶
func (m *IndexDocumentResponse) GetStatus() []*RequestStatus
func (*IndexDocumentResponse) ProtoMessage ¶
func (*IndexDocumentResponse) ProtoMessage()
type IndexMetadata ¶
type IndexMetadata struct {
IndexSpec *IndexSpec `protobuf:"bytes,1,req,name=index_spec" json:"index_spec,omitempty"`
Field []*FieldTypes `protobuf:"bytes,2,rep,name=field" json:"field,omitempty"`
Storage *IndexMetadata_Storage `protobuf:"bytes,3,opt,name=storage" json:"storage,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
func (*IndexMetadata) GetIndexSpec ¶
func (m *IndexMetadata) GetIndexSpec() *IndexSpec
func (*IndexMetadata) GetStorage ¶
func (m *IndexMetadata) GetStorage() *IndexMetadata_Storage
func (*IndexMetadata) ProtoMessage ¶
func (*IndexMetadata) ProtoMessage()
type IndexMetadata_Storage ¶
type IndexMetadata_Storage struct {
AmountUsed *int64 `protobuf:"varint,1,opt,name=amount_used" json:"amount_used,omitempty"`
Limit *int64 `protobuf:"varint,2,opt,name=limit" json:"limit,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
func (*IndexMetadata_Storage) GetAmountUsed ¶
func (m *IndexMetadata_Storage) GetAmountUsed() int64
func (*IndexMetadata_Storage) ProtoMessage ¶
func (*IndexMetadata_Storage) ProtoMessage()
type IndexSpec ¶
type IndexSpec struct {
Name *string `protobuf:"bytes,1,req,name=name" json:"name,omitempty"`
Consistency *IndexSpec_Consistency `protobuf:"varint,2,opt,name=consistency,enum=search.IndexSpec_Consistency,def=1" json:"consistency,omitempty"`
Namespace *string `protobuf:"bytes,3,opt,name=namespace" json:"namespace,omitempty"`
Version *int32 `protobuf:"varint,4,opt,name=version" json:"version,omitempty"`
Source *IndexSpec_Source `protobuf:"varint,5,opt,name=source,enum=search.IndexSpec_Source,def=0" json:"source,omitempty"`
Mode *IndexSpec_Mode `protobuf:"varint,6,opt,name=mode,enum=search.IndexSpec_Mode,def=0" json:"mode,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
func (*IndexSpec) GetConsistency ¶
func (m *IndexSpec) GetConsistency() IndexSpec_Consistency
func (*IndexSpec) GetNamespace ¶
func (m *IndexSpec) GetNamespace() string
func (*IndexSpec) GetVersion ¶
func (m *IndexSpec) GetVersion() int32
func (*IndexSpec) ProtoMessage ¶
func (*IndexSpec) ProtoMessage()
type IndexSpec_Consistency ¶
type IndexSpec_Consistency int32
const (
IndexSpec_GLOBAL IndexSpec_Consistency = 0
IndexSpec_PER_DOCUMENT IndexSpec_Consistency = 1
)
const Default_IndexSpec_Consistency IndexSpec_Consistency = IndexSpec_PER_DOCUMENT
func (*IndexSpec_Consistency) UnmarshalJSON ¶
func (x *IndexSpec_Consistency) UnmarshalJSON(data []byte) error
type IndexSpec_Mode ¶
type IndexSpec_Mode int32
const (
IndexSpec_PRIORITY IndexSpec_Mode = 0
IndexSpec_BACKGROUND IndexSpec_Mode = 1
)
const Default_IndexSpec_Mode IndexSpec_Mode = IndexSpec_PRIORITY
func (*IndexSpec_Mode) UnmarshalJSON ¶
func (x *IndexSpec_Mode) UnmarshalJSON(data []byte) error
type IndexSpec_Source ¶
type IndexSpec_Source int32
const (
IndexSpec_SEARCH IndexSpec_Source = 0
IndexSpec_DATASTORE IndexSpec_Source = 1
IndexSpec_CLOUD_STORAGE IndexSpec_Source = 2
)
const Default_DeleteSchemaParams_Source IndexSpec_Source = IndexSpec_SEARCH
const Default_IndexSpec_Source IndexSpec_Source = IndexSpec_SEARCH
const Default_ListIndexesParams_Source IndexSpec_Source = IndexSpec_SEARCH
func (*IndexSpec_Source) UnmarshalJSON ¶
func (x *IndexSpec_Source) UnmarshalJSON(data []byte) error
type ListDocumentsParams ¶
type ListDocumentsParams struct {
IndexSpec *IndexSpec `protobuf:"bytes,1,req,name=index_spec" json:"index_spec,omitempty"`
StartDocId *string `protobuf:"bytes,2,opt,name=start_doc_id" json:"start_doc_id,omitempty"`
IncludeStartDoc *bool `protobuf:"varint,3,opt,name=include_start_doc,def=1" json:"include_start_doc,omitempty"`
Limit *int32 `protobuf:"varint,4,opt,name=limit,def=100" json:"limit,omitempty"`
KeysOnly *bool `protobuf:"varint,5,opt,name=keys_only" json:"keys_only,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
func (*ListDocumentsParams) GetIncludeStartDoc ¶
func (m *ListDocumentsParams) GetIncludeStartDoc() bool
func (*ListDocumentsParams) GetIndexSpec ¶
func (m *ListDocumentsParams) GetIndexSpec() *IndexSpec
func (*ListDocumentsParams) GetKeysOnly ¶
func (m *ListDocumentsParams) GetKeysOnly() bool
func (*ListDocumentsParams) GetStartDocId ¶
func (m *ListDocumentsParams) GetStartDocId() string
func (*ListDocumentsParams) ProtoMessage ¶
func (*ListDocumentsParams) ProtoMessage()
type ListDocumentsRequest ¶
type ListDocumentsRequest struct {
Params *ListDocumentsParams `protobuf:"bytes,1,req,name=params" json:"params,omitempty"`
AppId []byte `protobuf:"bytes,2,opt,name=app_id" json:"app_id,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
func (*ListDocumentsRequest) GetParams ¶
func (m *ListDocumentsRequest) GetParams() *ListDocumentsParams
func (*ListDocumentsRequest) ProtoMessage ¶
func (*ListDocumentsRequest) ProtoMessage()
type ListDocumentsResponse ¶
type ListDocumentsResponse struct {
Status *RequestStatus `protobuf:"bytes,1,req,name=status" json:"status,omitempty"`
Document []*Document `protobuf:"bytes,2,rep,name=document" json:"document,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
func (*ListDocumentsResponse) GetDocument ¶
func (m *ListDocumentsResponse) GetDocument() []*Document
func (*ListDocumentsResponse) GetStatus ¶
func (m *ListDocumentsResponse) GetStatus() *RequestStatus
func (*ListDocumentsResponse) ProtoMessage ¶
func (*ListDocumentsResponse) ProtoMessage()
type ListIndexesParams ¶
type ListIndexesParams struct {
FetchSchema *bool `protobuf:"varint,1,opt,name=fetch_schema" json:"fetch_schema,omitempty"`
Limit *int32 `protobuf:"varint,2,opt,name=limit,def=20" json:"limit,omitempty"`
Namespace *string `protobuf:"bytes,3,opt,name=namespace" json:"namespace,omitempty"`
StartIndexName *string `protobuf:"bytes,4,opt,name=start_index_name" json:"start_index_name,omitempty"`
IncludeStartIndex *bool `protobuf:"varint,5,opt,name=include_start_index,def=1" json:"include_start_index,omitempty"`
IndexNamePrefix *string `protobuf:"bytes,6,opt,name=index_name_prefix" json:"index_name_prefix,omitempty"`
Offset *int32 `protobuf:"varint,7,opt,name=offset" json:"offset,omitempty"`
Source *IndexSpec_Source `protobuf:"varint,8,opt,name=source,enum=search.IndexSpec_Source,def=0" json:"source,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
func (*ListIndexesParams) GetFetchSchema ¶
func (m *ListIndexesParams) GetFetchSchema() bool
func (*ListIndexesParams) GetIncludeStartIndex ¶
func (m *ListIndexesParams) GetIncludeStartIndex() bool
func (*ListIndexesParams) GetIndexNamePrefix ¶
func (m *ListIndexesParams) GetIndexNamePrefix() string
func (*ListIndexesParams) GetNamespace ¶
func (m *ListIndexesParams) GetNamespace() string
func (*ListIndexesParams) GetStartIndexName ¶
func (m *ListIndexesParams) GetStartIndexName() string
func (*ListIndexesParams) ProtoMessage ¶
func (*ListIndexesParams) ProtoMessage()
type ListIndexesRequest ¶
type ListIndexesRequest struct {
Params *ListIndexesParams `protobuf:"bytes,1,req,name=params" json:"params,omitempty"`
AppId []byte `protobuf:"bytes,3,opt,name=app_id" json:"app_id,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
func (*ListIndexesRequest) ProtoMessage ¶
func (*ListIndexesRequest) ProtoMessage()
type ListIndexesResponse ¶
type ListIndexesResponse struct {
Status *RequestStatus `protobuf:"bytes,1,req,name=status" json:"status,omitempty"`
IndexMetadata []*IndexMetadata `protobuf:"bytes,2,rep,name=index_metadata" json:"index_metadata,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
func (*ListIndexesResponse) GetIndexMetadata ¶
func (m *ListIndexesResponse) GetIndexMetadata() []*IndexMetadata
func (*ListIndexesResponse) ProtoMessage ¶
func (*ListIndexesResponse) ProtoMessage()
type RequestStatus ¶
type RequestStatus struct {
Code *SearchServiceError_ErrorCode `protobuf:"varint,1,req,name=code,enum=search.SearchServiceError_ErrorCode" json:"code,omitempty"`
ErrorDetail *string `protobuf:"bytes,2,opt,name=error_detail" json:"error_detail,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
func (*RequestStatus) GetErrorDetail ¶
func (m *RequestStatus) GetErrorDetail() string
func (*RequestStatus) ProtoMessage ¶
func (*RequestStatus) ProtoMessage()
type Scope ¶
type Scope struct {
Type *Scope_Type `protobuf:"varint,1,opt,name=type,enum=search.Scope_Type" json:"type,omitempty"`
Value *string `protobuf:"bytes,2,opt,name=value" json:"value,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
func (*Scope) ProtoMessage ¶
func (*Scope) ProtoMessage()
type Scope_Type ¶
type Scope_Type int32
const (
Scope_USER_BY_CANONICAL_ID Scope_Type = 1
Scope_USER_BY_EMAIL Scope_Type = 2
Scope_GROUP_BY_CANONICAL_ID Scope_Type = 3
Scope_GROUP_BY_EMAIL Scope_Type = 4
Scope_GROUP_BY_DOMAIN Scope_Type = 5
Scope_ALL_USERS Scope_Type = 6
Scope_ALL_AUTHENTICATED_USERS Scope_Type = 7
)
func (*Scope_Type) UnmarshalJSON ¶
func (x *Scope_Type) UnmarshalJSON(data []byte) error
type ScorerSpec ¶
type ScorerSpec struct {
Scorer *ScorerSpec_Scorer `protobuf:"varint,1,opt,name=scorer,enum=search.ScorerSpec_Scorer,def=2" json:"scorer,omitempty"`
Limit *int32 `protobuf:"varint,2,opt,name=limit,def=1000" json:"limit,omitempty"`
MatchScorerParameters *string `protobuf:"bytes,9,opt,name=match_scorer_parameters" json:"match_scorer_parameters,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
func (*ScorerSpec) GetMatchScorerParameters ¶
func (m *ScorerSpec) GetMatchScorerParameters() string
func (*ScorerSpec) ProtoMessage ¶
func (*ScorerSpec) ProtoMessage()
type ScorerSpec_Scorer ¶
type ScorerSpec_Scorer int32
const (
ScorerSpec_RESCORING_MATCH_SCORER ScorerSpec_Scorer = 0
ScorerSpec_MATCH_SCORER ScorerSpec_Scorer = 2
)
const Default_ScorerSpec_Scorer ScorerSpec_Scorer = ScorerSpec_MATCH_SCORER
func (*ScorerSpec_Scorer) UnmarshalJSON ¶
func (x *ScorerSpec_Scorer) UnmarshalJSON(data []byte) error
type SearchParams ¶
type SearchParams struct {
IndexSpec *IndexSpec `protobuf:"bytes,1,req,name=index_spec" json:"index_spec,omitempty"`
Query *string `protobuf:"bytes,2,req,name=query" json:"query,omitempty"`
Cursor *string `protobuf:"bytes,4,opt,name=cursor" json:"cursor,omitempty"`
Offset *int32 `protobuf:"varint,11,opt,name=offset" json:"offset,omitempty"`
CursorType *SearchParams_CursorType `protobuf:"varint,5,opt,name=cursor_type,enum=search.SearchParams_CursorType,def=0" json:"cursor_type,omitempty"`
Limit *int32 `protobuf:"varint,6,opt,name=limit,def=20" json:"limit,omitempty"`
MatchedCountAccuracy *int32 `protobuf:"varint,7,opt,name=matched_count_accuracy" json:"matched_count_accuracy,omitempty"`
SortSpec []*SortSpec `protobuf:"bytes,8,rep,name=sort_spec" json:"sort_spec,omitempty"`
ScorerSpec *ScorerSpec `protobuf:"bytes,9,opt,name=scorer_spec" json:"scorer_spec,omitempty"`
FieldSpec *FieldSpec `protobuf:"bytes,10,opt,name=field_spec" json:"field_spec,omitempty"`
KeysOnly *bool `protobuf:"varint,12,opt,name=keys_only" json:"keys_only,omitempty"`
ParsingMode *SearchParams_ParsingMode `protobuf:"varint,13,opt,name=parsing_mode,enum=search.SearchParams_ParsingMode,def=0" json:"parsing_mode,omitempty"`
AutoDiscoverFacetCount *int32 `protobuf:"varint,15,opt,name=auto_discover_facet_count,def=0" json:"auto_discover_facet_count,omitempty"`
IncludeFacet []*FacetRequest `protobuf:"bytes,16,rep,name=include_facet" json:"include_facet,omitempty"`
FacetRefine []*FacetRefine `protobuf:"bytes,17,rep,name=facet_refine" json:"facet_refine,omitempty"`
FacetAutoDetectParam *FacetAutoDetectParam `protobuf:"bytes,18,opt,name=facet_auto_detect_param" json:"facet_auto_detect_param,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
func (*SearchParams) GetAutoDiscoverFacetCount ¶
func (m *SearchParams) GetAutoDiscoverFacetCount() int32
func (*SearchParams) GetCursorType ¶
func (m *SearchParams) GetCursorType() SearchParams_CursorType
func (*SearchParams) GetFacetAutoDetectParam ¶
func (m *SearchParams) GetFacetAutoDetectParam() *FacetAutoDetectParam
func (*SearchParams) GetFacetRefine ¶
func (m *SearchParams) GetFacetRefine() []*FacetRefine
func (*SearchParams) GetFieldSpec ¶
func (m *SearchParams) GetFieldSpec() *FieldSpec
func (*SearchParams) GetIncludeFacet ¶
func (m *SearchParams) GetIncludeFacet() []*FacetRequest
func (*SearchParams) GetIndexSpec ¶
func (m *SearchParams) GetIndexSpec() *IndexSpec
func (*SearchParams) GetKeysOnly ¶
func (m *SearchParams) GetKeysOnly() bool
func (*SearchParams) GetMatchedCountAccuracy ¶
func (m *SearchParams) GetMatchedCountAccuracy() int32
func (*SearchParams) GetParsingMode ¶
func (m *SearchParams) GetParsingMode() SearchParams_ParsingMode
func (*SearchParams) GetScorerSpec ¶
func (m *SearchParams) GetScorerSpec() *ScorerSpec
func (*SearchParams) GetSortSpec ¶
func (m *SearchParams) GetSortSpec() []*SortSpec
func (*SearchParams) ProtoMessage ¶
func (*SearchParams) ProtoMessage()
type SearchParams_CursorType ¶
type SearchParams_CursorType int32
const (
SearchParams_NONE SearchParams_CursorType = 0
SearchParams_SINGLE SearchParams_CursorType = 1
SearchParams_PER_RESULT SearchParams_CursorType = 2
)
const Default_SearchParams_CursorType SearchParams_CursorType = SearchParams_NONE
func (SearchParams_CursorType) Enum ¶
func (x SearchParams_CursorType) Enum() *SearchParams_CursorType
func (*SearchParams_CursorType) UnmarshalJSON ¶
func (x *SearchParams_CursorType) UnmarshalJSON(data []byte) error
type SearchParams_ParsingMode ¶
type SearchParams_ParsingMode int32
const (
SearchParams_STRICT SearchParams_ParsingMode = 0
SearchParams_RELAXED SearchParams_ParsingMode = 1
)
const Default_SearchParams_ParsingMode SearchParams_ParsingMode = SearchParams_STRICT
func (SearchParams_ParsingMode) Enum ¶
func (x SearchParams_ParsingMode) Enum() *SearchParams_ParsingMode
func (*SearchParams_ParsingMode) UnmarshalJSON ¶
func (x *SearchParams_ParsingMode) UnmarshalJSON(data []byte) error
type SearchRequest ¶
type SearchRequest struct {
Params *SearchParams `protobuf:"bytes,1,req,name=params" json:"params,omitempty"`
AppId []byte `protobuf:"bytes,3,opt,name=app_id" json:"app_id,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
func (*SearchRequest) ProtoMessage ¶
func (*SearchRequest) ProtoMessage()
type SearchResponse ¶
type SearchResponse struct {
Result []*SearchResult `protobuf:"bytes,1,rep,name=result" json:"result,omitempty"`
MatchedCount *int64 `protobuf:"varint,2,req,name=matched_count" json:"matched_count,omitempty"`
Status *RequestStatus `protobuf:"bytes,3,req,name=status" json:"status,omitempty"`
Cursor *string `protobuf:"bytes,4,opt,name=cursor" json:"cursor,omitempty"`
FacetResult []*FacetResult `protobuf:"bytes,5,rep,name=facet_result" json:"facet_result,omitempty"`
XXX_extensions map[int32]proto.Extension `json:"-"`
XXX_unrecognized []byte `json:"-"`
}
func (*SearchResponse) ExtensionMap ¶
func (m *SearchResponse) ExtensionMap() map[int32]proto.Extension
func (*SearchResponse) ExtensionRangeArray ¶
func (*SearchResponse) ExtensionRangeArray() []proto.ExtensionRange
func (*SearchResponse) GetFacetResult ¶
func (m *SearchResponse) GetFacetResult() []*FacetResult
func (*SearchResponse) GetMatchedCount ¶
func (m *SearchResponse) GetMatchedCount() int64
func (*SearchResponse) ProtoMessage ¶
func (*SearchResponse) ProtoMessage()
type SearchResult ¶
type SearchResult struct {
Document *Document `protobuf:"bytes,1,req,name=document" json:"document,omitempty"`
Expression []*Field `protobuf:"bytes,4,rep,name=expression" json:"expression,omitempty"`
Score []float64 `protobuf:"fixed64,2,rep,name=score" json:"score,omitempty"`
Cursor *string `protobuf:"bytes,3,opt,name=cursor" json:"cursor,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
func (*SearchResult) GetDocument ¶
func (m *SearchResult) GetDocument() *Document
func (*SearchResult) GetExpression ¶
func (m *SearchResult) GetExpression() []*Field
func (*SearchResult) ProtoMessage ¶
func (*SearchResult) ProtoMessage()
type SearchServiceError ¶
type SearchServiceError struct {
XXX_unrecognized []byte `json:"-"`
}
func (*SearchServiceError) ProtoMessage ¶
func (*SearchServiceError) ProtoMessage()
type SearchServiceError_ErrorCode ¶
type SearchServiceError_ErrorCode int32
const (
SearchServiceError_OK SearchServiceError_ErrorCode = 0
SearchServiceError_INVALID_REQUEST SearchServiceError_ErrorCode = 1
SearchServiceError_TRANSIENT_ERROR SearchServiceError_ErrorCode = 2
SearchServiceError_INTERNAL_ERROR SearchServiceError_ErrorCode = 3
SearchServiceError_PERMISSION_DENIED SearchServiceError_ErrorCode = 4
SearchServiceError_TIMEOUT SearchServiceError_ErrorCode = 5
SearchServiceError_CONCURRENT_TRANSACTION SearchServiceError_ErrorCode = 6
)
func (SearchServiceError_ErrorCode) Enum ¶
func (x SearchServiceError_ErrorCode) Enum() *SearchServiceError_ErrorCode
func (*SearchServiceError_ErrorCode) UnmarshalJSON ¶
func (x *SearchServiceError_ErrorCode) UnmarshalJSON(data []byte) error
type SortSpec ¶
type SortSpec struct {
SortExpression *string `protobuf:"bytes,1,req,name=sort_expression" json:"sort_expression,omitempty"`
SortDescending *bool `protobuf:"varint,2,opt,name=sort_descending,def=1" json:"sort_descending,omitempty"`
DefaultValueText *string `protobuf:"bytes,4,opt,name=default_value_text" json:"default_value_text,omitempty"`
DefaultValueNumeric *float64 `protobuf:"fixed64,5,opt,name=default_value_numeric" json:"default_value_numeric,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
func (*SortSpec) GetDefaultValueNumeric ¶
func (m *SortSpec) GetDefaultValueNumeric() float64
func (*SortSpec) GetDefaultValueText ¶
func (m *SortSpec) GetDefaultValueText() string
func (*SortSpec) GetSortDescending ¶
func (m *SortSpec) GetSortDescending() bool
func (*SortSpec) GetSortExpression ¶
func (m *SortSpec) GetSortExpression() string
func (*SortSpec) ProtoMessage ¶
func (*SortSpec) ProtoMessage()
Click to show internal directories.
Click to hide internal directories.