openapi

package module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2024 License: Apache-2.0 Imports: 20 Imported by: 1

README

Go API client for openapi

Сlient for Manticore Search.

Overview

This API client was generated by the OpenAPI Generator project.

Installation

Install the following dependencies:

go get github.com/stretchr/testify/assert
go get golang.org/x/net/context

Put the package under your project folder and add the following in import:

import openapi "github.com/manticoresoftware/manticoresearch-go"

To use a proxy, set the environment variable HTTP_PROXY:

os.Setenv("HTTP_PROXY", "http://proxy_name:proxy_port")

Configuration of Server URL

Default configuration comes with Servers field that contains server objects as defined in the OpenAPI specification.

Select Server Configuration

For using other server than the one defined on index 0 set context value openapi.ContextServerIndex of type int.

ctx := context.WithValue(context.Background(), openapi.ContextServerIndex, 1)
Templated Server URL

Templated server URL is formatted using default variables from configuration or from context value openapi.ContextServerVariables of type map[string]string.

ctx := context.WithValue(context.Background(), openapi.ContextServerVariables, map[string]string{
	"basePath": "v2",
})

Note, enum values are always validated and all unused variables are silently ignored.

URLs Configuration per Operation

Each operation can use different server URL defined using OperationServers map in the Configuration. An operation is uniquely identified by "{classname}Service.{nickname}" string. Similar rules for overriding default operation server index and variables applies by using openapi.ContextOperationServerIndices and openapi.ContextOperationServerVariables context maps.

ctx := context.WithValue(context.Background(), openapi.ContextOperationServerIndices, map[string]int{
	"{classname}Service.{nickname}": 2,
})
ctx = context.WithValue(context.Background(), openapi.ContextOperationServerVariables, map[string]map[string]string{
	"{classname}Service.{nickname}": {
		"port": "8443",
	},
})

Documentation for API Endpoints

All URIs are relative to http://127.0.0.1:9308

Class Method HTTP request Description
IndexAPI Bulk Post /bulk Bulk index operations
IndexAPI Delete Post /delete Delete a document in an index
IndexAPI Insert Post /insert Create a new document in an index
IndexAPI Replace Post /replace Replace new document in an index
IndexAPI Update Post /update Update a document in an index
SearchAPI Percolate Post /pq/{index}/search Perform reverse search on a percolate index
SearchAPI Search Post /search Performs a search on an index
UtilsAPI Sql Post /sql Perform SQL requests

Documentation For Models

Documentation For Authorization

Endpoints do not require authorization.

Documentation for Utility Methods

Due to the fact that model structure members are all pointers, this package contains a number of utility functions to easily obtain pointers to values of basic types. Each of these functions takes a value of the given basic type and returns a pointer to it:

  • PtrBool
  • PtrInt
  • PtrInt32
  • PtrInt64
  • PtrFloat
  • PtrFloat32
  • PtrFloat64
  • PtrString
  • PtrTime

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	JsonCheck = regexp.MustCompile(`(?i:(?:application|text)/(?:[^;]+\+)?json)`)
	XmlCheck  = regexp.MustCompile(`(?i:(?:application|text)/(?:[^;]+\+)?xml)`)
)
View Source
var (
	// ContextServerIndex uses a server configuration from the index.
	ContextServerIndex = contextKey("serverIndex")

	// ContextOperationServerIndices uses a server configuration from the index mapping.
	ContextOperationServerIndices = contextKey("serverOperationIndices")

	// ContextServerVariables overrides a server configuration variables.
	ContextServerVariables = contextKey("serverVariables")

	// ContextOperationServerVariables overrides a server configuration variables using operation specific values.
	ContextOperationServerVariables = contextKey("serverOperationVariables")
)

Functions

func CacheExpires

func CacheExpires(r *http.Response) time.Time

CacheExpires helper function to determine remaining time before repeating a request.

func IsNil

func IsNil(i interface{}) bool

IsNil checks if an input is nil

func PtrBool

func PtrBool(v bool) *bool

PtrBool is a helper routine that returns a pointer to given boolean value.

func PtrFloat32

func PtrFloat32(v float32) *float32

PtrFloat32 is a helper routine that returns a pointer to given float value.

func PtrFloat64

func PtrFloat64(v float64) *float64

PtrFloat64 is a helper routine that returns a pointer to given float value.

func PtrInt

func PtrInt(v int) *int

PtrInt is a helper routine that returns a pointer to given integer value.

func PtrInt32

func PtrInt32(v int32) *int32

PtrInt32 is a helper routine that returns a pointer to given integer value.

func PtrInt64

func PtrInt64(v int64) *int64

PtrInt64 is a helper routine that returns a pointer to given integer value.

func PtrString

func PtrString(v string) *string

PtrString is a helper routine that returns a pointer to given string value.

func PtrTime

func PtrTime(v time.Time) *time.Time

PtrTime is helper routine that returns a pointer to given Time value.

Types

type APIClient

type APIClient struct {
	IndexAPI *IndexAPIService

	SearchAPI *SearchAPIService

	UtilsAPI *UtilsAPIService
	// contains filtered or unexported fields
}

APIClient manages communication with the Manticore Search Client API v3.3.1 In most cases there should be only one, shared, APIClient.

func NewAPIClient

func NewAPIClient(cfg *Configuration) *APIClient

NewAPIClient creates a new API client. Requires a userAgent string describing your application. optionally a custom http.Client to allow for advanced features such as caching.

func (*APIClient) GetConfig

func (c *APIClient) GetConfig() *Configuration

Allow modification of underlying config for alternate implementations and testing Caution: modifying the configuration while live can cause data races and potentially unwanted behavior

type APIKey

type APIKey struct {
	Key    string
	Prefix string
}

APIKey provides API key based authentication to a request passed via context using ContextAPIKey

type APIResponse

type APIResponse struct {
	*http.Response `json:"-"`
	Message        string `json:"message,omitempty"`
	// Operation is the name of the OpenAPI operation.
	Operation string `json:"operation,omitempty"`
	// RequestURL is the request URL. This value is always available, even if the
	// embedded *http.Response is nil.
	RequestURL string `json:"url,omitempty"`
	// Method is the HTTP method used for the request.  This value is always
	// available, even if the embedded *http.Response is nil.
	Method string `json:"method,omitempty"`
	// Payload holds the contents of the response body (which may be nil or empty).
	// This is provided here as the raw response.Body() reader will have already
	// been drained.
	Payload []byte `json:"-"`
}

APIResponse stores the API response returned by the server.

func NewAPIResponse

func NewAPIResponse(r *http.Response) *APIResponse

NewAPIResponse returns a new APIResponse object.

func NewAPIResponseWithError

func NewAPIResponseWithError(errorMessage string) *APIResponse

NewAPIResponseWithError returns a new APIResponse object with the provided error message.

type Aggregation

type Aggregation struct {
	Terms *AggregationTerms                      `json:"terms,omitempty"`
	Sort  []map[string]AggregationSortInnerValue `json:"sort,omitempty"`
}

Aggregation Aggregation Alias

func NewAggregation

func NewAggregation() *Aggregation

NewAggregation instantiates a new Aggregation object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewAggregationWithDefaults

func NewAggregationWithDefaults() *Aggregation

NewAggregationWithDefaults instantiates a new Aggregation object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*Aggregation) GetSort

func (o *Aggregation) GetSort() []map[string]AggregationSortInnerValue

GetSort returns the Sort field value if set, zero value otherwise.

func (*Aggregation) GetSortOk

func (o *Aggregation) GetSortOk() ([]map[string]AggregationSortInnerValue, bool)

GetSortOk returns a tuple with the Sort field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Aggregation) GetTerms

func (o *Aggregation) GetTerms() AggregationTerms

GetTerms returns the Terms field value if set, zero value otherwise.

func (*Aggregation) GetTermsOk

func (o *Aggregation) GetTermsOk() (*AggregationTerms, bool)

GetTermsOk returns a tuple with the Terms field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Aggregation) HasSort

func (o *Aggregation) HasSort() bool

HasSort returns a boolean if a field has been set.

func (*Aggregation) HasTerms

func (o *Aggregation) HasTerms() bool

HasTerms returns a boolean if a field has been set.

func (Aggregation) MarshalJSON

func (o Aggregation) MarshalJSON() ([]byte, error)

func (*Aggregation) SetSort

func (o *Aggregation) SetSort(v []map[string]AggregationSortInnerValue)

SetSort gets a reference to the given []map[string]AggregationSortInnerValue and assigns it to the Sort field.

func (*Aggregation) SetTerms

func (o *Aggregation) SetTerms(v AggregationTerms)

SetTerms gets a reference to the given AggregationTerms and assigns it to the Terms field.

func (Aggregation) ToMap

func (o Aggregation) ToMap() (map[string]interface{}, error)

type AggregationSortInnerValue

type AggregationSortInnerValue struct {
	Order *string `json:"order,omitempty"`
}

AggregationSortInnerValue struct for AggregationSortInnerValue

func NewAggregationSortInnerValue

func NewAggregationSortInnerValue() *AggregationSortInnerValue

NewAggregationSortInnerValue instantiates a new AggregationSortInnerValue object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewAggregationSortInnerValueWithDefaults

func NewAggregationSortInnerValueWithDefaults() *AggregationSortInnerValue

NewAggregationSortInnerValueWithDefaults instantiates a new AggregationSortInnerValue object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*AggregationSortInnerValue) GetOrder

func (o *AggregationSortInnerValue) GetOrder() string

GetOrder returns the Order field value if set, zero value otherwise.

func (*AggregationSortInnerValue) GetOrderOk

func (o *AggregationSortInnerValue) GetOrderOk() (*string, bool)

GetOrderOk returns a tuple with the Order field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AggregationSortInnerValue) HasOrder

func (o *AggregationSortInnerValue) HasOrder() bool

HasOrder returns a boolean if a field has been set.

func (AggregationSortInnerValue) MarshalJSON

func (o AggregationSortInnerValue) MarshalJSON() ([]byte, error)

func (*AggregationSortInnerValue) SetOrder

func (o *AggregationSortInnerValue) SetOrder(v string)

SetOrder gets a reference to the given string and assigns it to the Order field.

func (AggregationSortInnerValue) ToMap

func (o AggregationSortInnerValue) ToMap() (map[string]interface{}, error)

type AggregationTerms

type AggregationTerms struct {
	// Attribute Name to Aggregate
	Field *string `json:"field,omitempty"`
	// Maximum Number of Buckets in the Result
	Size *int32 `json:"size,omitempty"`
}

AggregationTerms struct for AggregationTerms

func NewAggregationTerms

func NewAggregationTerms() *AggregationTerms

NewAggregationTerms instantiates a new AggregationTerms object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewAggregationTermsWithDefaults

func NewAggregationTermsWithDefaults() *AggregationTerms

NewAggregationTermsWithDefaults instantiates a new AggregationTerms object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*AggregationTerms) GetField

func (o *AggregationTerms) GetField() string

GetField returns the Field field value if set, zero value otherwise.

func (*AggregationTerms) GetFieldOk

func (o *AggregationTerms) GetFieldOk() (*string, bool)

GetFieldOk returns a tuple with the Field field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AggregationTerms) GetSize

func (o *AggregationTerms) GetSize() int32

GetSize returns the Size field value if set, zero value otherwise.

func (*AggregationTerms) GetSizeOk

func (o *AggregationTerms) GetSizeOk() (*int32, bool)

GetSizeOk returns a tuple with the Size field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AggregationTerms) HasField

func (o *AggregationTerms) HasField() bool

HasField returns a boolean if a field has been set.

func (*AggregationTerms) HasSize

func (o *AggregationTerms) HasSize() bool

HasSize returns a boolean if a field has been set.

func (AggregationTerms) MarshalJSON

func (o AggregationTerms) MarshalJSON() ([]byte, error)

func (*AggregationTerms) SetField

func (o *AggregationTerms) SetField(v string)

SetField gets a reference to the given string and assigns it to the Field field.

func (*AggregationTerms) SetSize

func (o *AggregationTerms) SetSize(v int32)

SetSize gets a reference to the given int32 and assigns it to the Size field.

func (AggregationTerms) ToMap

func (o AggregationTerms) ToMap() (map[string]interface{}, error)

type ApiBulkRequest

type ApiBulkRequest struct {
	ApiService *IndexAPIService
	// contains filtered or unexported fields
}

func (ApiBulkRequest) Body

func (r ApiBulkRequest) Body(body string) ApiBulkRequest

func (ApiBulkRequest) Execute

func (r ApiBulkRequest) Execute() (*BulkResponse, *http.Response, error)

type ApiDeleteRequest

type ApiDeleteRequest struct {
	ApiService *IndexAPIService
	// contains filtered or unexported fields
}

func (ApiDeleteRequest) DeleteDocumentRequest

func (r ApiDeleteRequest) DeleteDocumentRequest(deleteDocumentRequest DeleteDocumentRequest) ApiDeleteRequest

func (ApiDeleteRequest) Execute

type ApiInsertRequest

type ApiInsertRequest struct {
	ApiService *IndexAPIService
	// contains filtered or unexported fields
}

func (ApiInsertRequest) Execute

func (ApiInsertRequest) InsertDocumentRequest

func (r ApiInsertRequest) InsertDocumentRequest(insertDocumentRequest InsertDocumentRequest) ApiInsertRequest

type ApiPercolateRequest

type ApiPercolateRequest struct {
	ApiService *SearchAPIService
	// contains filtered or unexported fields
}

func (ApiPercolateRequest) Execute

func (ApiPercolateRequest) PercolateRequest

func (r ApiPercolateRequest) PercolateRequest(percolateRequest PercolateRequest) ApiPercolateRequest

type ApiReplaceRequest

type ApiReplaceRequest struct {
	ApiService *IndexAPIService
	// contains filtered or unexported fields
}

func (ApiReplaceRequest) Execute

func (ApiReplaceRequest) InsertDocumentRequest

func (r ApiReplaceRequest) InsertDocumentRequest(insertDocumentRequest InsertDocumentRequest) ApiReplaceRequest

type ApiSearchRequest

type ApiSearchRequest struct {
	ApiService *SearchAPIService
	// contains filtered or unexported fields
}

func (ApiSearchRequest) Execute

func (ApiSearchRequest) SearchRequest

func (r ApiSearchRequest) SearchRequest(searchRequest SearchRequest) ApiSearchRequest

type ApiSqlRequest

type ApiSqlRequest struct {
	ApiService *UtilsAPIService
	// contains filtered or unexported fields
}

func (ApiSqlRequest) Body

func (r ApiSqlRequest) Body(body string) ApiSqlRequest

A query parameter string.

func (ApiSqlRequest) Execute

func (r ApiSqlRequest) Execute() ([]map[string]interface{}, *http.Response, error)

func (ApiSqlRequest) RawResponse

func (r ApiSqlRequest) RawResponse(rawResponse bool) ApiSqlRequest

Optional parameter, defines a format of response. Can be set to `False` for Select only queries and set to `True` or omitted for any type of queries:

type ApiUpdateRequest

type ApiUpdateRequest struct {
	ApiService *IndexAPIService
	// contains filtered or unexported fields
}

func (ApiUpdateRequest) Execute

func (ApiUpdateRequest) UpdateDocumentRequest

func (r ApiUpdateRequest) UpdateDocumentRequest(updateDocumentRequest UpdateDocumentRequest) ApiUpdateRequest

type BasicAuth

type BasicAuth struct {
	UserName string `json:"userName,omitempty"`
	Password string `json:"password,omitempty"`
}

BasicAuth provides basic http authentication to a request passed via context using ContextBasicAuth

type BoolFilter

type BoolFilter struct {
	Should  []map[string]interface{} `json:"should,omitempty"`
	Must    []map[string]interface{} `json:"must,omitempty"`
	MustNot []map[string]interface{} `json:"must_not,omitempty"`
}

BoolFilter Boolean attribute filter

func NewBoolFilter

func NewBoolFilter() *BoolFilter

NewBoolFilter instantiates a new BoolFilter object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewBoolFilterWithDefaults

func NewBoolFilterWithDefaults() *BoolFilter

NewBoolFilterWithDefaults instantiates a new BoolFilter object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*BoolFilter) GetMust

func (o *BoolFilter) GetMust() []map[string]interface{}

GetMust returns the Must field value if set, zero value otherwise.

func (*BoolFilter) GetMustNot

func (o *BoolFilter) GetMustNot() []map[string]interface{}

GetMustNot returns the MustNot field value if set, zero value otherwise.

func (*BoolFilter) GetMustNotOk

func (o *BoolFilter) GetMustNotOk() ([]map[string]interface{}, bool)

GetMustNotOk returns a tuple with the MustNot field value if set, nil otherwise and a boolean to check if the value has been set.

func (*BoolFilter) GetMustOk

func (o *BoolFilter) GetMustOk() ([]map[string]interface{}, bool)

GetMustOk returns a tuple with the Must field value if set, nil otherwise and a boolean to check if the value has been set.

func (*BoolFilter) GetShould

func (o *BoolFilter) GetShould() []map[string]interface{}

GetShould returns the Should field value if set, zero value otherwise.

func (*BoolFilter) GetShouldOk

func (o *BoolFilter) GetShouldOk() ([]map[string]interface{}, bool)

GetShouldOk returns a tuple with the Should field value if set, nil otherwise and a boolean to check if the value has been set.

func (*BoolFilter) HasMust

func (o *BoolFilter) HasMust() bool

HasMust returns a boolean if a field has been set.

func (*BoolFilter) HasMustNot

func (o *BoolFilter) HasMustNot() bool

HasMustNot returns a boolean if a field has been set.

func (*BoolFilter) HasShould

func (o *BoolFilter) HasShould() bool

HasShould returns a boolean if a field has been set.

func (BoolFilter) MarshalJSON

func (o BoolFilter) MarshalJSON() ([]byte, error)

func (*BoolFilter) SetMust

func (o *BoolFilter) SetMust(v []map[string]interface{})

SetMust gets a reference to the given []map[string]interface{} and assigns it to the Must field.

func (*BoolFilter) SetMustNot

func (o *BoolFilter) SetMustNot(v []map[string]interface{})

SetMustNot gets a reference to the given []map[string]interface{} and assigns it to the MustNot field.

func (*BoolFilter) SetShould

func (o *BoolFilter) SetShould(v []map[string]interface{})

SetShould gets a reference to the given []map[string]interface{} and assigns it to the Should field.

func (BoolFilter) ToMap

func (o BoolFilter) ToMap() (map[string]interface{}, error)

type BulkResponse

type BulkResponse struct {
	Items                []map[string]interface{} `json:"items,omitempty"`
	Errors               *bool                    `json:"errors,omitempty"`
	Error                *string                  `json:"error,omitempty"`
	AdditionalProperties map[string]interface{}
}

BulkResponse Success bulk response

func NewBulkResponse

func NewBulkResponse() *BulkResponse

NewBulkResponse instantiates a new BulkResponse object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewBulkResponseWithDefaults

func NewBulkResponseWithDefaults() *BulkResponse

NewBulkResponseWithDefaults instantiates a new BulkResponse object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*BulkResponse) GetError

func (o *BulkResponse) GetError() string

GetError returns the Error field value if set, zero value otherwise.

func (*BulkResponse) GetErrorOk

func (o *BulkResponse) GetErrorOk() (*string, bool)

GetErrorOk returns a tuple with the Error field value if set, nil otherwise and a boolean to check if the value has been set.

func (*BulkResponse) GetErrors

func (o *BulkResponse) GetErrors() bool

GetErrors returns the Errors field value if set, zero value otherwise.

func (*BulkResponse) GetErrorsOk

func (o *BulkResponse) GetErrorsOk() (*bool, bool)

GetErrorsOk returns a tuple with the Errors field value if set, nil otherwise and a boolean to check if the value has been set.

func (*BulkResponse) GetItems

func (o *BulkResponse) GetItems() []map[string]interface{}

GetItems returns the Items field value if set, zero value otherwise.

func (*BulkResponse) GetItemsOk

func (o *BulkResponse) GetItemsOk() ([]map[string]interface{}, bool)

GetItemsOk returns a tuple with the Items field value if set, nil otherwise and a boolean to check if the value has been set.

func (*BulkResponse) HasError

func (o *BulkResponse) HasError() bool

HasError returns a boolean if a field has been set.

func (*BulkResponse) HasErrors

func (o *BulkResponse) HasErrors() bool

HasErrors returns a boolean if a field has been set.

func (*BulkResponse) HasItems

func (o *BulkResponse) HasItems() bool

HasItems returns a boolean if a field has been set.

func (BulkResponse) MarshalJSON

func (o BulkResponse) MarshalJSON() ([]byte, error)

func (*BulkResponse) SetError

func (o *BulkResponse) SetError(v string)

SetError gets a reference to the given string and assigns it to the Error field.

func (*BulkResponse) SetErrors

func (o *BulkResponse) SetErrors(v bool)

SetErrors gets a reference to the given bool and assigns it to the Errors field.

func (*BulkResponse) SetItems

func (o *BulkResponse) SetItems(v []map[string]interface{})

SetItems gets a reference to the given []map[string]interface{} and assigns it to the Items field.

func (BulkResponse) ToMap

func (o BulkResponse) ToMap() (map[string]interface{}, error)

func (*BulkResponse) UnmarshalJSON

func (o *BulkResponse) UnmarshalJSON(data []byte) (err error)

type Configuration

type Configuration struct {
	Host             string            `json:"host,omitempty"`
	Scheme           string            `json:"scheme,omitempty"`
	DefaultHeader    map[string]string `json:"defaultHeader,omitempty"`
	UserAgent        string            `json:"userAgent,omitempty"`
	Debug            bool              `json:"debug,omitempty"`
	Servers          ServerConfigurations
	OperationServers map[string]ServerConfigurations
	HTTPClient       *http.Client
}

Configuration stores the configuration of the API client

func NewConfiguration

func NewConfiguration() *Configuration

NewConfiguration returns a new Configuration object

func (*Configuration) AddDefaultHeader

func (c *Configuration) AddDefaultHeader(key string, value string)

AddDefaultHeader adds a new HTTP header to the default header in the request

func (*Configuration) ServerURL

func (c *Configuration) ServerURL(index int, variables map[string]string) (string, error)

ServerURL returns URL based on server settings

func (*Configuration) ServerURLWithContext

func (c *Configuration) ServerURLWithContext(ctx context.Context, endpoint string) (string, error)

ServerURLWithContext returns a new server URL given an endpoint

type DeleteDocumentRequest

type DeleteDocumentRequest struct {
	// Index name
	Index string `json:"index"`
	// cluster name
	Cluster *string `json:"cluster,omitempty"`
	// Document ID
	Id *int64 `json:"id,omitempty"`
	// Query tree object
	Query map[string]interface{} `json:"query,omitempty"`
}

DeleteDocumentRequest Payload for delete request. Documents can be deleted either one by one by specifying the document id or by providing a query object. For more information see [Delete API](https://manual.manticoresearch.com/Deleting_documents)

func NewDeleteDocumentRequest

func NewDeleteDocumentRequest(index string) *DeleteDocumentRequest

NewDeleteDocumentRequest instantiates a new DeleteDocumentRequest object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewDeleteDocumentRequestWithDefaults

func NewDeleteDocumentRequestWithDefaults() *DeleteDocumentRequest

NewDeleteDocumentRequestWithDefaults instantiates a new DeleteDocumentRequest object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*DeleteDocumentRequest) GetCluster

func (o *DeleteDocumentRequest) GetCluster() string

GetCluster returns the Cluster field value if set, zero value otherwise.

func (*DeleteDocumentRequest) GetClusterOk

func (o *DeleteDocumentRequest) GetClusterOk() (*string, bool)

GetClusterOk returns a tuple with the Cluster field value if set, nil otherwise and a boolean to check if the value has been set.

func (*DeleteDocumentRequest) GetId

func (o *DeleteDocumentRequest) GetId() int64

GetId returns the Id field value if set, zero value otherwise.

func (*DeleteDocumentRequest) GetIdOk

func (o *DeleteDocumentRequest) GetIdOk() (*int64, bool)

GetIdOk returns a tuple with the Id field value if set, nil otherwise and a boolean to check if the value has been set.

func (*DeleteDocumentRequest) GetIndex

func (o *DeleteDocumentRequest) GetIndex() string

GetIndex returns the Index field value

func (*DeleteDocumentRequest) GetIndexOk

func (o *DeleteDocumentRequest) GetIndexOk() (*string, bool)

GetIndexOk returns a tuple with the Index field value and a boolean to check if the value has been set.

func (*DeleteDocumentRequest) GetQuery

func (o *DeleteDocumentRequest) GetQuery() map[string]interface{}

GetQuery returns the Query field value if set, zero value otherwise.

func (*DeleteDocumentRequest) GetQueryOk

func (o *DeleteDocumentRequest) GetQueryOk() (map[string]interface{}, bool)

GetQueryOk returns a tuple with the Query field value if set, nil otherwise and a boolean to check if the value has been set.

func (*DeleteDocumentRequest) HasCluster

func (o *DeleteDocumentRequest) HasCluster() bool

HasCluster returns a boolean if a field has been set.

func (*DeleteDocumentRequest) HasId

func (o *DeleteDocumentRequest) HasId() bool

HasId returns a boolean if a field has been set.

func (*DeleteDocumentRequest) HasQuery

func (o *DeleteDocumentRequest) HasQuery() bool

HasQuery returns a boolean if a field has been set.

func (DeleteDocumentRequest) MarshalJSON

func (o DeleteDocumentRequest) MarshalJSON() ([]byte, error)

func (*DeleteDocumentRequest) SetCluster

func (o *DeleteDocumentRequest) SetCluster(v string)

SetCluster gets a reference to the given string and assigns it to the Cluster field.

func (*DeleteDocumentRequest) SetId

func (o *DeleteDocumentRequest) SetId(v int64)

SetId gets a reference to the given int64 and assigns it to the Id field.

func (*DeleteDocumentRequest) SetIndex

func (o *DeleteDocumentRequest) SetIndex(v string)

SetIndex sets field value

func (*DeleteDocumentRequest) SetQuery

func (o *DeleteDocumentRequest) SetQuery(v map[string]interface{})

SetQuery gets a reference to the given map[string]interface{} and assigns it to the Query field.

func (DeleteDocumentRequest) ToMap

func (o DeleteDocumentRequest) ToMap() (map[string]interface{}, error)

func (*DeleteDocumentRequest) UnmarshalJSON

func (o *DeleteDocumentRequest) UnmarshalJSON(data []byte) (err error)

type DeleteResponse

type DeleteResponse struct {
	Index   *string `json:"_index,omitempty"`
	Deleted *int32  `json:"deleted,omitempty"`
	Id      *int64  `json:"_id,omitempty"`
	Result  *string `json:"result,omitempty"`
}

DeleteResponse Success response

func NewDeleteResponse

func NewDeleteResponse() *DeleteResponse

NewDeleteResponse instantiates a new DeleteResponse object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewDeleteResponseWithDefaults

func NewDeleteResponseWithDefaults() *DeleteResponse

NewDeleteResponseWithDefaults instantiates a new DeleteResponse object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*DeleteResponse) GetDeleted

func (o *DeleteResponse) GetDeleted() int32

GetDeleted returns the Deleted field value if set, zero value otherwise.

func (*DeleteResponse) GetDeletedOk

func (o *DeleteResponse) GetDeletedOk() (*int32, bool)

GetDeletedOk returns a tuple with the Deleted field value if set, nil otherwise and a boolean to check if the value has been set.

func (*DeleteResponse) GetId

func (o *DeleteResponse) GetId() int64

GetId returns the Id field value if set, zero value otherwise.

func (*DeleteResponse) GetIdOk

func (o *DeleteResponse) GetIdOk() (*int64, bool)

GetIdOk returns a tuple with the Id field value if set, nil otherwise and a boolean to check if the value has been set.

func (*DeleteResponse) GetIndex

func (o *DeleteResponse) GetIndex() string

GetIndex returns the Index field value if set, zero value otherwise.

func (*DeleteResponse) GetIndexOk

func (o *DeleteResponse) GetIndexOk() (*string, bool)

GetIndexOk returns a tuple with the Index field value if set, nil otherwise and a boolean to check if the value has been set.

func (*DeleteResponse) GetResult

func (o *DeleteResponse) GetResult() string

GetResult returns the Result field value if set, zero value otherwise.

func (*DeleteResponse) GetResultOk

func (o *DeleteResponse) GetResultOk() (*string, bool)

GetResultOk returns a tuple with the Result field value if set, nil otherwise and a boolean to check if the value has been set.

func (*DeleteResponse) HasDeleted

func (o *DeleteResponse) HasDeleted() bool

HasDeleted returns a boolean if a field has been set.

func (*DeleteResponse) HasId

func (o *DeleteResponse) HasId() bool

HasId returns a boolean if a field has been set.

func (*DeleteResponse) HasIndex

func (o *DeleteResponse) HasIndex() bool

HasIndex returns a boolean if a field has been set.

func (*DeleteResponse) HasResult

func (o *DeleteResponse) HasResult() bool

HasResult returns a boolean if a field has been set.

func (DeleteResponse) MarshalJSON

func (o DeleteResponse) MarshalJSON() ([]byte, error)

func (*DeleteResponse) SetDeleted

func (o *DeleteResponse) SetDeleted(v int32)

SetDeleted gets a reference to the given int32 and assigns it to the Deleted field.

func (*DeleteResponse) SetId

func (o *DeleteResponse) SetId(v int64)

SetId gets a reference to the given int64 and assigns it to the Id field.

func (*DeleteResponse) SetIndex

func (o *DeleteResponse) SetIndex(v string)

SetIndex gets a reference to the given string and assigns it to the Index field.

func (*DeleteResponse) SetResult

func (o *DeleteResponse) SetResult(v string)

SetResult gets a reference to the given string and assigns it to the Result field.

func (DeleteResponse) ToMap

func (o DeleteResponse) ToMap() (map[string]interface{}, error)

type EqualsFilter

type EqualsFilter struct {
	Field string                 `json:"field"`
	Value map[string]interface{} `json:"value"`
}

EqualsFilter Equals attribute filter

func NewEqualsFilter

func NewEqualsFilter(field string, value map[string]interface{}) *EqualsFilter

NewEqualsFilter instantiates a new EqualsFilter object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewEqualsFilterWithDefaults

func NewEqualsFilterWithDefaults() *EqualsFilter

NewEqualsFilterWithDefaults instantiates a new EqualsFilter object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*EqualsFilter) GetField

func (o *EqualsFilter) GetField() string

GetField returns the Field field value

func (*EqualsFilter) GetFieldOk

func (o *EqualsFilter) GetFieldOk() (*string, bool)

GetFieldOk returns a tuple with the Field field value and a boolean to check if the value has been set.

func (*EqualsFilter) GetValue

func (o *EqualsFilter) GetValue() map[string]interface{}

GetValue returns the Value field value

func (*EqualsFilter) GetValueOk

func (o *EqualsFilter) GetValueOk() (map[string]interface{}, bool)

GetValueOk returns a tuple with the Value field value and a boolean to check if the value has been set.

func (EqualsFilter) MarshalJSON

func (o EqualsFilter) MarshalJSON() ([]byte, error)

func (*EqualsFilter) SetField

func (o *EqualsFilter) SetField(v string)

SetField sets field value

func (*EqualsFilter) SetValue

func (o *EqualsFilter) SetValue(v map[string]interface{})

SetValue sets field value

func (EqualsFilter) ToMap

func (o EqualsFilter) ToMap() (map[string]interface{}, error)

func (*EqualsFilter) UnmarshalJSON

func (o *EqualsFilter) UnmarshalJSON(data []byte) (err error)

type ErrorResponse

type ErrorResponse struct {
	Error  map[string]interface{} `json:"error"`
	Status *int32                 `json:"status,omitempty"`
}

ErrorResponse Error response

func NewErrorResponse

func NewErrorResponse(error_ map[string]interface{}) *ErrorResponse

NewErrorResponse instantiates a new ErrorResponse object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewErrorResponseWithDefaults

func NewErrorResponseWithDefaults() *ErrorResponse

NewErrorResponseWithDefaults instantiates a new ErrorResponse object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*ErrorResponse) GetError

func (o *ErrorResponse) GetError() map[string]interface{}

GetError returns the Error field value

func (*ErrorResponse) GetErrorOk

func (o *ErrorResponse) GetErrorOk() (map[string]interface{}, bool)

GetErrorOk returns a tuple with the Error field value and a boolean to check if the value has been set.

func (*ErrorResponse) GetStatus

func (o *ErrorResponse) GetStatus() int32

GetStatus returns the Status field value if set, zero value otherwise.

func (*ErrorResponse) GetStatusOk

func (o *ErrorResponse) GetStatusOk() (*int32, bool)

GetStatusOk returns a tuple with the Status field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ErrorResponse) HasStatus

func (o *ErrorResponse) HasStatus() bool

HasStatus returns a boolean if a field has been set.

func (ErrorResponse) MarshalJSON

func (o ErrorResponse) MarshalJSON() ([]byte, error)

func (*ErrorResponse) SetError

func (o *ErrorResponse) SetError(v map[string]interface{})

SetError sets field value

func (*ErrorResponse) SetStatus

func (o *ErrorResponse) SetStatus(v int32)

SetStatus gets a reference to the given int32 and assigns it to the Status field.

func (ErrorResponse) ToMap

func (o ErrorResponse) ToMap() (map[string]interface{}, error)

func (*ErrorResponse) UnmarshalJSON

func (o *ErrorResponse) UnmarshalJSON(data []byte) (err error)

type ErrorResponseString

type ErrorResponseString struct {
	Error string `json:"error"`
}

ErrorResponseString Error response

func NewErrorResponseString

func NewErrorResponseString(error_ string) *ErrorResponseString

NewErrorResponseString instantiates a new ErrorResponseString object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewErrorResponseStringWithDefaults

func NewErrorResponseStringWithDefaults() *ErrorResponseString

NewErrorResponseStringWithDefaults instantiates a new ErrorResponseString object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*ErrorResponseString) GetError

func (o *ErrorResponseString) GetError() string

GetError returns the Error field value

func (*ErrorResponseString) GetErrorOk

func (o *ErrorResponseString) GetErrorOk() (*string, bool)

GetErrorOk returns a tuple with the Error field value and a boolean to check if the value has been set.

func (ErrorResponseString) MarshalJSON

func (o ErrorResponseString) MarshalJSON() ([]byte, error)

func (*ErrorResponseString) SetError

func (o *ErrorResponseString) SetError(v string)

SetError sets field value

func (ErrorResponseString) ToMap

func (o ErrorResponseString) ToMap() (map[string]interface{}, error)

func (*ErrorResponseString) UnmarshalJSON

func (o *ErrorResponseString) UnmarshalJSON(data []byte) (err error)

type Facet

type Facet struct {
	// The name of an attribute to facet
	Attr string `json:"attr"`
	// Facet alias
	Alias *string `json:"alias,omitempty"`
	// The number of facet values to return
	Limit *int32 `json:"limit,omitempty"`
}

Facet Query FACET expression

func NewFacet

func NewFacet(attr string) *Facet

NewFacet instantiates a new Facet object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewFacetWithDefaults

func NewFacetWithDefaults() *Facet

NewFacetWithDefaults instantiates a new Facet object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*Facet) GetAlias

func (o *Facet) GetAlias() string

GetAlias returns the Alias field value if set, zero value otherwise.

func (*Facet) GetAliasOk

func (o *Facet) GetAliasOk() (*string, bool)

GetAliasOk returns a tuple with the Alias field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Facet) GetAttr

func (o *Facet) GetAttr() string

GetAttr returns the Attr field value

func (*Facet) GetAttrOk

func (o *Facet) GetAttrOk() (*string, bool)

GetAttrOk returns a tuple with the Attr field value and a boolean to check if the value has been set.

func (*Facet) GetLimit

func (o *Facet) GetLimit() int32

GetLimit returns the Limit field value if set, zero value otherwise.

func (*Facet) GetLimitOk

func (o *Facet) GetLimitOk() (*int32, bool)

GetLimitOk returns a tuple with the Limit field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Facet) HasAlias

func (o *Facet) HasAlias() bool

HasAlias returns a boolean if a field has been set.

func (*Facet) HasLimit

func (o *Facet) HasLimit() bool

HasLimit returns a boolean if a field has been set.

func (Facet) MarshalJSON

func (o Facet) MarshalJSON() ([]byte, error)

func (*Facet) SetAlias

func (o *Facet) SetAlias(v string)

SetAlias gets a reference to the given string and assigns it to the Alias field.

func (*Facet) SetAttr

func (o *Facet) SetAttr(v string)

SetAttr sets field value

func (*Facet) SetLimit

func (o *Facet) SetLimit(v int32)

SetLimit gets a reference to the given int32 and assigns it to the Limit field.

func (Facet) ToMap

func (o Facet) ToMap() (map[string]interface{}, error)

func (*Facet) UnmarshalJSON

func (o *Facet) UnmarshalJSON(data []byte) (err error)

type FilterBoolean

type FilterBoolean struct {
	FilterField string `json:"filter_field"`
	Operation   string `json:"operation"`
	FilterValue bool   `json:"filter_value"`
}

FilterBoolean Query filter

func NewFilterBoolean

func NewFilterBoolean(filterField string, operation string, filterValue bool) *FilterBoolean

NewFilterBoolean instantiates a new FilterBoolean object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewFilterBooleanWithDefaults

func NewFilterBooleanWithDefaults() *FilterBoolean

NewFilterBooleanWithDefaults instantiates a new FilterBoolean object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*FilterBoolean) GetFilterField

func (o *FilterBoolean) GetFilterField() string

GetFilterField returns the FilterField field value

func (*FilterBoolean) GetFilterFieldOk

func (o *FilterBoolean) GetFilterFieldOk() (*string, bool)

GetFilterFieldOk returns a tuple with the FilterField field value and a boolean to check if the value has been set.

func (*FilterBoolean) GetFilterValue

func (o *FilterBoolean) GetFilterValue() bool

GetFilterValue returns the FilterValue field value

func (*FilterBoolean) GetFilterValueOk

func (o *FilterBoolean) GetFilterValueOk() (*bool, bool)

GetFilterValueOk returns a tuple with the FilterValue field value and a boolean to check if the value has been set.

func (*FilterBoolean) GetOperation

func (o *FilterBoolean) GetOperation() string

GetOperation returns the Operation field value

func (*FilterBoolean) GetOperationOk

func (o *FilterBoolean) GetOperationOk() (*string, bool)

GetOperationOk returns a tuple with the Operation field value and a boolean to check if the value has been set.

func (FilterBoolean) MarshalJSON

func (o FilterBoolean) MarshalJSON() ([]byte, error)

func (*FilterBoolean) SetFilterField

func (o *FilterBoolean) SetFilterField(v string)

SetFilterField sets field value

func (*FilterBoolean) SetFilterValue

func (o *FilterBoolean) SetFilterValue(v bool)

SetFilterValue sets field value

func (*FilterBoolean) SetOperation

func (o *FilterBoolean) SetOperation(v string)

SetOperation sets field value

func (FilterBoolean) ToMap

func (o FilterBoolean) ToMap() (map[string]interface{}, error)

func (*FilterBoolean) UnmarshalJSON

func (o *FilterBoolean) UnmarshalJSON(data []byte) (err error)

type FilterNumber

type FilterNumber struct {
	FilterField string  `json:"filter_field"`
	Operation   string  `json:"operation"`
	FilterValue float32 `json:"filter_value"`
}

FilterNumber Query filter

func NewFilterNumber

func NewFilterNumber(filterField string, operation string, filterValue float32) *FilterNumber

NewFilterNumber instantiates a new FilterNumber object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewFilterNumberWithDefaults

func NewFilterNumberWithDefaults() *FilterNumber

NewFilterNumberWithDefaults instantiates a new FilterNumber object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*FilterNumber) GetFilterField

func (o *FilterNumber) GetFilterField() string

GetFilterField returns the FilterField field value

func (*FilterNumber) GetFilterFieldOk

func (o *FilterNumber) GetFilterFieldOk() (*string, bool)

GetFilterFieldOk returns a tuple with the FilterField field value and a boolean to check if the value has been set.

func (*FilterNumber) GetFilterValue

func (o *FilterNumber) GetFilterValue() float32

GetFilterValue returns the FilterValue field value

func (*FilterNumber) GetFilterValueOk

func (o *FilterNumber) GetFilterValueOk() (*float32, bool)

GetFilterValueOk returns a tuple with the FilterValue field value and a boolean to check if the value has been set.

func (*FilterNumber) GetOperation

func (o *FilterNumber) GetOperation() string

GetOperation returns the Operation field value

func (*FilterNumber) GetOperationOk

func (o *FilterNumber) GetOperationOk() (*string, bool)

GetOperationOk returns a tuple with the Operation field value and a boolean to check if the value has been set.

func (FilterNumber) MarshalJSON

func (o FilterNumber) MarshalJSON() ([]byte, error)

func (*FilterNumber) SetFilterField

func (o *FilterNumber) SetFilterField(v string)

SetFilterField sets field value

func (*FilterNumber) SetFilterValue

func (o *FilterNumber) SetFilterValue(v float32)

SetFilterValue sets field value

func (*FilterNumber) SetOperation

func (o *FilterNumber) SetOperation(v string)

SetOperation sets field value

func (FilterNumber) ToMap

func (o FilterNumber) ToMap() (map[string]interface{}, error)

func (*FilterNumber) UnmarshalJSON

func (o *FilterNumber) UnmarshalJSON(data []byte) (err error)

type FilterString

type FilterString struct {
	FilterField string `json:"filter_field"`
	Operation   string `json:"operation"`
	FilterValue string `json:"filter_value"`
}

FilterString Query filter

func NewFilterString

func NewFilterString(filterField string, operation string, filterValue string) *FilterString

NewFilterString instantiates a new FilterString object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewFilterStringWithDefaults

func NewFilterStringWithDefaults() *FilterString

NewFilterStringWithDefaults instantiates a new FilterString object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*FilterString) GetFilterField

func (o *FilterString) GetFilterField() string

GetFilterField returns the FilterField field value

func (*FilterString) GetFilterFieldOk

func (o *FilterString) GetFilterFieldOk() (*string, bool)

GetFilterFieldOk returns a tuple with the FilterField field value and a boolean to check if the value has been set.

func (*FilterString) GetFilterValue

func (o *FilterString) GetFilterValue() string

GetFilterValue returns the FilterValue field value

func (*FilterString) GetFilterValueOk

func (o *FilterString) GetFilterValueOk() (*string, bool)

GetFilterValueOk returns a tuple with the FilterValue field value and a boolean to check if the value has been set.

func (*FilterString) GetOperation

func (o *FilterString) GetOperation() string

GetOperation returns the Operation field value

func (*FilterString) GetOperationOk

func (o *FilterString) GetOperationOk() (*string, bool)

GetOperationOk returns a tuple with the Operation field value and a boolean to check if the value has been set.

func (FilterString) MarshalJSON

func (o FilterString) MarshalJSON() ([]byte, error)

func (*FilterString) SetFilterField

func (o *FilterString) SetFilterField(v string)

SetFilterField sets field value

func (*FilterString) SetFilterValue

func (o *FilterString) SetFilterValue(v string)

SetFilterValue sets field value

func (*FilterString) SetOperation

func (o *FilterString) SetOperation(v string)

SetOperation sets field value

func (FilterString) ToMap

func (o FilterString) ToMap() (map[string]interface{}, error)

func (*FilterString) UnmarshalJSON

func (o *FilterString) UnmarshalJSON(data []byte) (err error)

type GenericOpenAPIError

type GenericOpenAPIError struct {
	// contains filtered or unexported fields
}

GenericOpenAPIError Provides access to the body, error and model on returned errors.

func (GenericOpenAPIError) Body

func (e GenericOpenAPIError) Body() []byte

Body returns the raw bytes of the response

func (GenericOpenAPIError) Error

func (e GenericOpenAPIError) Error() string

Error returns non-empty string if there was an error.

func (GenericOpenAPIError) Model

func (e GenericOpenAPIError) Model() interface{}

Model returns the unpacked model of the error

type GeoDistanceFilter

type GeoDistanceFilter struct {
	LocationAnchor *GeoDistanceFilterLocationAnchor `json:"location_anchor,omitempty"`
	// Attribute containing latitude and longitude data
	LocationSource *string `json:"location_source,omitempty"`
	DistanceType   *string `json:"distance_type,omitempty"`
	Distance       *string `json:"distance,omitempty"`
}

GeoDistanceFilter Geo distance attribute filter

func NewGeoDistanceFilter

func NewGeoDistanceFilter() *GeoDistanceFilter

NewGeoDistanceFilter instantiates a new GeoDistanceFilter object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewGeoDistanceFilterWithDefaults

func NewGeoDistanceFilterWithDefaults() *GeoDistanceFilter

NewGeoDistanceFilterWithDefaults instantiates a new GeoDistanceFilter object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*GeoDistanceFilter) GetDistance

func (o *GeoDistanceFilter) GetDistance() string

GetDistance returns the Distance field value if set, zero value otherwise.

func (*GeoDistanceFilter) GetDistanceOk

func (o *GeoDistanceFilter) GetDistanceOk() (*string, bool)

GetDistanceOk returns a tuple with the Distance field value if set, nil otherwise and a boolean to check if the value has been set.

func (*GeoDistanceFilter) GetDistanceType

func (o *GeoDistanceFilter) GetDistanceType() string

GetDistanceType returns the DistanceType field value if set, zero value otherwise.

func (*GeoDistanceFilter) GetDistanceTypeOk

func (o *GeoDistanceFilter) GetDistanceTypeOk() (*string, bool)

GetDistanceTypeOk returns a tuple with the DistanceType field value if set, nil otherwise and a boolean to check if the value has been set.

func (*GeoDistanceFilter) GetLocationAnchor

func (o *GeoDistanceFilter) GetLocationAnchor() GeoDistanceFilterLocationAnchor

GetLocationAnchor returns the LocationAnchor field value if set, zero value otherwise.

func (*GeoDistanceFilter) GetLocationAnchorOk

func (o *GeoDistanceFilter) GetLocationAnchorOk() (*GeoDistanceFilterLocationAnchor, bool)

GetLocationAnchorOk returns a tuple with the LocationAnchor field value if set, nil otherwise and a boolean to check if the value has been set.

func (*GeoDistanceFilter) GetLocationSource

func (o *GeoDistanceFilter) GetLocationSource() string

GetLocationSource returns the LocationSource field value if set, zero value otherwise.

func (*GeoDistanceFilter) GetLocationSourceOk

func (o *GeoDistanceFilter) GetLocationSourceOk() (*string, bool)

GetLocationSourceOk returns a tuple with the LocationSource field value if set, nil otherwise and a boolean to check if the value has been set.

func (*GeoDistanceFilter) HasDistance

func (o *GeoDistanceFilter) HasDistance() bool

HasDistance returns a boolean if a field has been set.

func (*GeoDistanceFilter) HasDistanceType

func (o *GeoDistanceFilter) HasDistanceType() bool

HasDistanceType returns a boolean if a field has been set.

func (*GeoDistanceFilter) HasLocationAnchor

func (o *GeoDistanceFilter) HasLocationAnchor() bool

HasLocationAnchor returns a boolean if a field has been set.

func (*GeoDistanceFilter) HasLocationSource

func (o *GeoDistanceFilter) HasLocationSource() bool

HasLocationSource returns a boolean if a field has been set.

func (GeoDistanceFilter) MarshalJSON

func (o GeoDistanceFilter) MarshalJSON() ([]byte, error)

func (*GeoDistanceFilter) SetDistance

func (o *GeoDistanceFilter) SetDistance(v string)

SetDistance gets a reference to the given string and assigns it to the Distance field.

func (*GeoDistanceFilter) SetDistanceType

func (o *GeoDistanceFilter) SetDistanceType(v string)

SetDistanceType gets a reference to the given string and assigns it to the DistanceType field.

func (*GeoDistanceFilter) SetLocationAnchor

func (o *GeoDistanceFilter) SetLocationAnchor(v GeoDistanceFilterLocationAnchor)

SetLocationAnchor gets a reference to the given GeoDistanceFilterLocationAnchor and assigns it to the LocationAnchor field.

func (*GeoDistanceFilter) SetLocationSource

func (o *GeoDistanceFilter) SetLocationSource(v string)

SetLocationSource gets a reference to the given string and assigns it to the LocationSource field.

func (GeoDistanceFilter) ToMap

func (o GeoDistanceFilter) ToMap() (map[string]interface{}, error)

type GeoDistanceFilterLocationAnchor

type GeoDistanceFilterLocationAnchor struct {
	// Geo latitude of pin point in degrees
	Lat *float32 `json:"lat,omitempty"`
	// Geo longitude pf pin point in degrees
	Lon *float32 `json:"lon,omitempty"`
}

GeoDistanceFilterLocationAnchor Geo pin point object

func NewGeoDistanceFilterLocationAnchor

func NewGeoDistanceFilterLocationAnchor() *GeoDistanceFilterLocationAnchor

NewGeoDistanceFilterLocationAnchor instantiates a new GeoDistanceFilterLocationAnchor object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewGeoDistanceFilterLocationAnchorWithDefaults

func NewGeoDistanceFilterLocationAnchorWithDefaults() *GeoDistanceFilterLocationAnchor

NewGeoDistanceFilterLocationAnchorWithDefaults instantiates a new GeoDistanceFilterLocationAnchor object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*GeoDistanceFilterLocationAnchor) GetLat

GetLat returns the Lat field value if set, zero value otherwise.

func (*GeoDistanceFilterLocationAnchor) GetLatOk

func (o *GeoDistanceFilterLocationAnchor) GetLatOk() (*float32, bool)

GetLatOk returns a tuple with the Lat field value if set, nil otherwise and a boolean to check if the value has been set.

func (*GeoDistanceFilterLocationAnchor) GetLon

GetLon returns the Lon field value if set, zero value otherwise.

func (*GeoDistanceFilterLocationAnchor) GetLonOk

func (o *GeoDistanceFilterLocationAnchor) GetLonOk() (*float32, bool)

GetLonOk returns a tuple with the Lon field value if set, nil otherwise and a boolean to check if the value has been set.

func (*GeoDistanceFilterLocationAnchor) HasLat

HasLat returns a boolean if a field has been set.

func (*GeoDistanceFilterLocationAnchor) HasLon

HasLon returns a boolean if a field has been set.

func (GeoDistanceFilterLocationAnchor) MarshalJSON

func (o GeoDistanceFilterLocationAnchor) MarshalJSON() ([]byte, error)

func (*GeoDistanceFilterLocationAnchor) SetLat

SetLat gets a reference to the given float32 and assigns it to the Lat field.

func (*GeoDistanceFilterLocationAnchor) SetLon

SetLon gets a reference to the given float32 and assigns it to the Lon field.

func (GeoDistanceFilterLocationAnchor) ToMap

func (o GeoDistanceFilterLocationAnchor) ToMap() (map[string]interface{}, error)

type Highlight

type Highlight struct {
	Fieldnames        []string               `json:"fieldnames,omitempty"`
	Fields            []HighlightField       `json:"fields,omitempty"`
	Encoder           *string                `json:"encoder,omitempty"`
	HighlightQuery    map[string]interface{} `json:"highlight_query,omitempty"`
	PreTags           *string                `json:"pre_tags,omitempty"`
	PostTags          *string                `json:"post_tags,omitempty"`
	NoMatchSize       *int32                 `json:"no_match_size,omitempty"`
	FragmentSize      *int32                 `json:"fragment_size,omitempty"`
	NumberOfFragments *int32                 `json:"number_of_fragments,omitempty"`
	Limit             *int32                 `json:"limit,omitempty"`
	LimitWords        *int32                 `json:"limit_words,omitempty"`
	LimitSnippets     *int32                 `json:"limit_snippets,omitempty"`
	LimitsPerField    *bool                  `json:"limits_per_field,omitempty"`
	UseBoundaries     *bool                  `json:"use_boundaries,omitempty"`
	ForceAllWords     *bool                  `json:"force_all_words,omitempty"`
	AllowEmpty        *bool                  `json:"allow_empty,omitempty"`
	EmitZones         *bool                  `json:"emit_zones,omitempty"`
	ForceSnippets     *bool                  `json:"force_snippets,omitempty"`
	Around            *int32                 `json:"around,omitempty"`
	StartSnippetId    *int32                 `json:"start_snippet_id,omitempty"`
	HtmlStripMode     *string                `json:"html_strip_mode,omitempty"`
	SnippetBoundary   *string                `json:"snippet_boundary,omitempty"`
}

Highlight Query HIGHLIGHT expression

func NewHighlight

func NewHighlight() *Highlight

NewHighlight instantiates a new Highlight object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewHighlightWithDefaults

func NewHighlightWithDefaults() *Highlight

NewHighlightWithDefaults instantiates a new Highlight object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*Highlight) GetAllowEmpty

func (o *Highlight) GetAllowEmpty() bool

GetAllowEmpty returns the AllowEmpty field value if set, zero value otherwise.

func (*Highlight) GetAllowEmptyOk

func (o *Highlight) GetAllowEmptyOk() (*bool, bool)

GetAllowEmptyOk returns a tuple with the AllowEmpty field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Highlight) GetAround

func (o *Highlight) GetAround() int32

GetAround returns the Around field value if set, zero value otherwise.

func (*Highlight) GetAroundOk

func (o *Highlight) GetAroundOk() (*int32, bool)

GetAroundOk returns a tuple with the Around field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Highlight) GetEmitZones

func (o *Highlight) GetEmitZones() bool

GetEmitZones returns the EmitZones field value if set, zero value otherwise.

func (*Highlight) GetEmitZonesOk

func (o *Highlight) GetEmitZonesOk() (*bool, bool)

GetEmitZonesOk returns a tuple with the EmitZones field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Highlight) GetEncoder

func (o *Highlight) GetEncoder() string

GetEncoder returns the Encoder field value if set, zero value otherwise.

func (*Highlight) GetEncoderOk

func (o *Highlight) GetEncoderOk() (*string, bool)

GetEncoderOk returns a tuple with the Encoder field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Highlight) GetFieldnames

func (o *Highlight) GetFieldnames() []string

GetFieldnames returns the Fieldnames field value if set, zero value otherwise.

func (*Highlight) GetFieldnamesOk

func (o *Highlight) GetFieldnamesOk() ([]string, bool)

GetFieldnamesOk returns a tuple with the Fieldnames field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Highlight) GetFields

func (o *Highlight) GetFields() []HighlightField

GetFields returns the Fields field value if set, zero value otherwise.

func (*Highlight) GetFieldsOk

func (o *Highlight) GetFieldsOk() ([]HighlightField, bool)

GetFieldsOk returns a tuple with the Fields field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Highlight) GetForceAllWords

func (o *Highlight) GetForceAllWords() bool

GetForceAllWords returns the ForceAllWords field value if set, zero value otherwise.

func (*Highlight) GetForceAllWordsOk

func (o *Highlight) GetForceAllWordsOk() (*bool, bool)

GetForceAllWordsOk returns a tuple with the ForceAllWords field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Highlight) GetForceSnippets

func (o *Highlight) GetForceSnippets() bool

GetForceSnippets returns the ForceSnippets field value if set, zero value otherwise.

func (*Highlight) GetForceSnippetsOk

func (o *Highlight) GetForceSnippetsOk() (*bool, bool)

GetForceSnippetsOk returns a tuple with the ForceSnippets field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Highlight) GetFragmentSize

func (o *Highlight) GetFragmentSize() int32

GetFragmentSize returns the FragmentSize field value if set, zero value otherwise.

func (*Highlight) GetFragmentSizeOk

func (o *Highlight) GetFragmentSizeOk() (*int32, bool)

GetFragmentSizeOk returns a tuple with the FragmentSize field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Highlight) GetHighlightQuery

func (o *Highlight) GetHighlightQuery() map[string]interface{}

GetHighlightQuery returns the HighlightQuery field value if set, zero value otherwise (both if not set or set to explicit null).

func (*Highlight) GetHighlightQueryOk

func (o *Highlight) GetHighlightQueryOk() (map[string]interface{}, bool)

GetHighlightQueryOk returns a tuple with the HighlightQuery field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*Highlight) GetHtmlStripMode

func (o *Highlight) GetHtmlStripMode() string

GetHtmlStripMode returns the HtmlStripMode field value if set, zero value otherwise.

func (*Highlight) GetHtmlStripModeOk

func (o *Highlight) GetHtmlStripModeOk() (*string, bool)

GetHtmlStripModeOk returns a tuple with the HtmlStripMode field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Highlight) GetLimit

func (o *Highlight) GetLimit() int32

GetLimit returns the Limit field value if set, zero value otherwise.

func (*Highlight) GetLimitOk

func (o *Highlight) GetLimitOk() (*int32, bool)

GetLimitOk returns a tuple with the Limit field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Highlight) GetLimitSnippets

func (o *Highlight) GetLimitSnippets() int32

GetLimitSnippets returns the LimitSnippets field value if set, zero value otherwise.

func (*Highlight) GetLimitSnippetsOk

func (o *Highlight) GetLimitSnippetsOk() (*int32, bool)

GetLimitSnippetsOk returns a tuple with the LimitSnippets field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Highlight) GetLimitWords

func (o *Highlight) GetLimitWords() int32

GetLimitWords returns the LimitWords field value if set, zero value otherwise.

func (*Highlight) GetLimitWordsOk

func (o *Highlight) GetLimitWordsOk() (*int32, bool)

GetLimitWordsOk returns a tuple with the LimitWords field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Highlight) GetLimitsPerField

func (o *Highlight) GetLimitsPerField() bool

GetLimitsPerField returns the LimitsPerField field value if set, zero value otherwise.

func (*Highlight) GetLimitsPerFieldOk

func (o *Highlight) GetLimitsPerFieldOk() (*bool, bool)

GetLimitsPerFieldOk returns a tuple with the LimitsPerField field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Highlight) GetNoMatchSize

func (o *Highlight) GetNoMatchSize() int32

GetNoMatchSize returns the NoMatchSize field value if set, zero value otherwise.

func (*Highlight) GetNoMatchSizeOk

func (o *Highlight) GetNoMatchSizeOk() (*int32, bool)

GetNoMatchSizeOk returns a tuple with the NoMatchSize field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Highlight) GetNumberOfFragments

func (o *Highlight) GetNumberOfFragments() int32

GetNumberOfFragments returns the NumberOfFragments field value if set, zero value otherwise.

func (*Highlight) GetNumberOfFragmentsOk

func (o *Highlight) GetNumberOfFragmentsOk() (*int32, bool)

GetNumberOfFragmentsOk returns a tuple with the NumberOfFragments field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Highlight) GetPostTags

func (o *Highlight) GetPostTags() string

GetPostTags returns the PostTags field value if set, zero value otherwise.

func (*Highlight) GetPostTagsOk

func (o *Highlight) GetPostTagsOk() (*string, bool)

GetPostTagsOk returns a tuple with the PostTags field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Highlight) GetPreTags

func (o *Highlight) GetPreTags() string

GetPreTags returns the PreTags field value if set, zero value otherwise.

func (*Highlight) GetPreTagsOk

func (o *Highlight) GetPreTagsOk() (*string, bool)

GetPreTagsOk returns a tuple with the PreTags field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Highlight) GetSnippetBoundary

func (o *Highlight) GetSnippetBoundary() string

GetSnippetBoundary returns the SnippetBoundary field value if set, zero value otherwise.

func (*Highlight) GetSnippetBoundaryOk

func (o *Highlight) GetSnippetBoundaryOk() (*string, bool)

GetSnippetBoundaryOk returns a tuple with the SnippetBoundary field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Highlight) GetStartSnippetId

func (o *Highlight) GetStartSnippetId() int32

GetStartSnippetId returns the StartSnippetId field value if set, zero value otherwise.

func (*Highlight) GetStartSnippetIdOk

func (o *Highlight) GetStartSnippetIdOk() (*int32, bool)

GetStartSnippetIdOk returns a tuple with the StartSnippetId field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Highlight) GetUseBoundaries

func (o *Highlight) GetUseBoundaries() bool

GetUseBoundaries returns the UseBoundaries field value if set, zero value otherwise.

func (*Highlight) GetUseBoundariesOk

func (o *Highlight) GetUseBoundariesOk() (*bool, bool)

GetUseBoundariesOk returns a tuple with the UseBoundaries field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Highlight) HasAllowEmpty

func (o *Highlight) HasAllowEmpty() bool

HasAllowEmpty returns a boolean if a field has been set.

func (*Highlight) HasAround

func (o *Highlight) HasAround() bool

HasAround returns a boolean if a field has been set.

func (*Highlight) HasEmitZones

func (o *Highlight) HasEmitZones() bool

HasEmitZones returns a boolean if a field has been set.

func (*Highlight) HasEncoder

func (o *Highlight) HasEncoder() bool

HasEncoder returns a boolean if a field has been set.

func (*Highlight) HasFieldnames

func (o *Highlight) HasFieldnames() bool

HasFieldnames returns a boolean if a field has been set.

func (*Highlight) HasFields

func (o *Highlight) HasFields() bool

HasFields returns a boolean if a field has been set.

func (*Highlight) HasForceAllWords

func (o *Highlight) HasForceAllWords() bool

HasForceAllWords returns a boolean if a field has been set.

func (*Highlight) HasForceSnippets

func (o *Highlight) HasForceSnippets() bool

HasForceSnippets returns a boolean if a field has been set.

func (*Highlight) HasFragmentSize

func (o *Highlight) HasFragmentSize() bool

HasFragmentSize returns a boolean if a field has been set.

func (*Highlight) HasHighlightQuery

func (o *Highlight) HasHighlightQuery() bool

HasHighlightQuery returns a boolean if a field has been set.

func (*Highlight) HasHtmlStripMode

func (o *Highlight) HasHtmlStripMode() bool

HasHtmlStripMode returns a boolean if a field has been set.

func (*Highlight) HasLimit

func (o *Highlight) HasLimit() bool

HasLimit returns a boolean if a field has been set.

func (*Highlight) HasLimitSnippets

func (o *Highlight) HasLimitSnippets() bool

HasLimitSnippets returns a boolean if a field has been set.

func (*Highlight) HasLimitWords

func (o *Highlight) HasLimitWords() bool

HasLimitWords returns a boolean if a field has been set.

func (*Highlight) HasLimitsPerField

func (o *Highlight) HasLimitsPerField() bool

HasLimitsPerField returns a boolean if a field has been set.

func (*Highlight) HasNoMatchSize

func (o *Highlight) HasNoMatchSize() bool

HasNoMatchSize returns a boolean if a field has been set.

func (*Highlight) HasNumberOfFragments

func (o *Highlight) HasNumberOfFragments() bool

HasNumberOfFragments returns a boolean if a field has been set.

func (*Highlight) HasPostTags

func (o *Highlight) HasPostTags() bool

HasPostTags returns a boolean if a field has been set.

func (*Highlight) HasPreTags

func (o *Highlight) HasPreTags() bool

HasPreTags returns a boolean if a field has been set.

func (*Highlight) HasSnippetBoundary

func (o *Highlight) HasSnippetBoundary() bool

HasSnippetBoundary returns a boolean if a field has been set.

func (*Highlight) HasStartSnippetId

func (o *Highlight) HasStartSnippetId() bool

HasStartSnippetId returns a boolean if a field has been set.

func (*Highlight) HasUseBoundaries

func (o *Highlight) HasUseBoundaries() bool

HasUseBoundaries returns a boolean if a field has been set.

func (Highlight) MarshalJSON

func (o Highlight) MarshalJSON() ([]byte, error)

func (*Highlight) SetAllowEmpty

func (o *Highlight) SetAllowEmpty(v bool)

SetAllowEmpty gets a reference to the given bool and assigns it to the AllowEmpty field.

func (*Highlight) SetAround

func (o *Highlight) SetAround(v int32)

SetAround gets a reference to the given int32 and assigns it to the Around field.

func (*Highlight) SetEmitZones

func (o *Highlight) SetEmitZones(v bool)

SetEmitZones gets a reference to the given bool and assigns it to the EmitZones field.

func (*Highlight) SetEncoder

func (o *Highlight) SetEncoder(v string)

SetEncoder gets a reference to the given string and assigns it to the Encoder field.

func (*Highlight) SetFieldnames

func (o *Highlight) SetFieldnames(v []string)

SetFieldnames gets a reference to the given []string and assigns it to the Fieldnames field.

func (*Highlight) SetFields

func (o *Highlight) SetFields(v []HighlightField)

SetFields gets a reference to the given []HighlightField and assigns it to the Fields field.

func (*Highlight) SetForceAllWords

func (o *Highlight) SetForceAllWords(v bool)

SetForceAllWords gets a reference to the given bool and assigns it to the ForceAllWords field.

func (*Highlight) SetForceSnippets

func (o *Highlight) SetForceSnippets(v bool)

SetForceSnippets gets a reference to the given bool and assigns it to the ForceSnippets field.

func (*Highlight) SetFragmentSize

func (o *Highlight) SetFragmentSize(v int32)

SetFragmentSize gets a reference to the given int32 and assigns it to the FragmentSize field.

func (*Highlight) SetHighlightQuery

func (o *Highlight) SetHighlightQuery(v map[string]interface{})

SetHighlightQuery gets a reference to the given map[string]interface{} and assigns it to the HighlightQuery field.

func (*Highlight) SetHtmlStripMode

func (o *Highlight) SetHtmlStripMode(v string)

SetHtmlStripMode gets a reference to the given string and assigns it to the HtmlStripMode field.

func (*Highlight) SetLimit

func (o *Highlight) SetLimit(v int32)

SetLimit gets a reference to the given int32 and assigns it to the Limit field.

func (*Highlight) SetLimitSnippets

func (o *Highlight) SetLimitSnippets(v int32)

SetLimitSnippets gets a reference to the given int32 and assigns it to the LimitSnippets field.

func (*Highlight) SetLimitWords

func (o *Highlight) SetLimitWords(v int32)

SetLimitWords gets a reference to the given int32 and assigns it to the LimitWords field.

func (*Highlight) SetLimitsPerField

func (o *Highlight) SetLimitsPerField(v bool)

SetLimitsPerField gets a reference to the given bool and assigns it to the LimitsPerField field.

func (*Highlight) SetNoMatchSize

func (o *Highlight) SetNoMatchSize(v int32)

SetNoMatchSize gets a reference to the given int32 and assigns it to the NoMatchSize field.

func (*Highlight) SetNumberOfFragments

func (o *Highlight) SetNumberOfFragments(v int32)

SetNumberOfFragments gets a reference to the given int32 and assigns it to the NumberOfFragments field.

func (*Highlight) SetPostTags

func (o *Highlight) SetPostTags(v string)

SetPostTags gets a reference to the given string and assigns it to the PostTags field.

func (*Highlight) SetPreTags

func (o *Highlight) SetPreTags(v string)

SetPreTags gets a reference to the given string and assigns it to the PreTags field.

func (*Highlight) SetSnippetBoundary

func (o *Highlight) SetSnippetBoundary(v string)

SetSnippetBoundary gets a reference to the given string and assigns it to the SnippetBoundary field.

func (*Highlight) SetStartSnippetId

func (o *Highlight) SetStartSnippetId(v int32)

SetStartSnippetId gets a reference to the given int32 and assigns it to the StartSnippetId field.

func (*Highlight) SetUseBoundaries

func (o *Highlight) SetUseBoundaries(v bool)

SetUseBoundaries gets a reference to the given bool and assigns it to the UseBoundaries field.

func (Highlight) ToMap

func (o Highlight) ToMap() (map[string]interface{}, error)

type HighlightField

type HighlightField struct {
	Name          string `json:"name"`
	Limit         *int32 `json:"limit,omitempty"`
	LimitWords    *int32 `json:"limit_words,omitempty"`
	LimitSnippets *int32 `json:"limit_snippets,omitempty"`
}

HighlightField Query Highlight field with options set

func NewHighlightField

func NewHighlightField(name string) *HighlightField

NewHighlightField instantiates a new HighlightField object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewHighlightFieldWithDefaults

func NewHighlightFieldWithDefaults() *HighlightField

NewHighlightFieldWithDefaults instantiates a new HighlightField object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*HighlightField) GetLimit

func (o *HighlightField) GetLimit() int32

GetLimit returns the Limit field value if set, zero value otherwise.

func (*HighlightField) GetLimitOk

func (o *HighlightField) GetLimitOk() (*int32, bool)

GetLimitOk returns a tuple with the Limit field value if set, nil otherwise and a boolean to check if the value has been set.

func (*HighlightField) GetLimitSnippets

func (o *HighlightField) GetLimitSnippets() int32

GetLimitSnippets returns the LimitSnippets field value if set, zero value otherwise.

func (*HighlightField) GetLimitSnippetsOk

func (o *HighlightField) GetLimitSnippetsOk() (*int32, bool)

GetLimitSnippetsOk returns a tuple with the LimitSnippets field value if set, nil otherwise and a boolean to check if the value has been set.

func (*HighlightField) GetLimitWords

func (o *HighlightField) GetLimitWords() int32

GetLimitWords returns the LimitWords field value if set, zero value otherwise.

func (*HighlightField) GetLimitWordsOk

func (o *HighlightField) GetLimitWordsOk() (*int32, bool)

GetLimitWordsOk returns a tuple with the LimitWords field value if set, nil otherwise and a boolean to check if the value has been set.

func (*HighlightField) GetName

func (o *HighlightField) GetName() string

GetName returns the Name field value

func (*HighlightField) GetNameOk

func (o *HighlightField) GetNameOk() (*string, bool)

GetNameOk returns a tuple with the Name field value and a boolean to check if the value has been set.

func (*HighlightField) HasLimit

func (o *HighlightField) HasLimit() bool

HasLimit returns a boolean if a field has been set.

func (*HighlightField) HasLimitSnippets

func (o *HighlightField) HasLimitSnippets() bool

HasLimitSnippets returns a boolean if a field has been set.

func (*HighlightField) HasLimitWords

func (o *HighlightField) HasLimitWords() bool

HasLimitWords returns a boolean if a field has been set.

func (HighlightField) MarshalJSON

func (o HighlightField) MarshalJSON() ([]byte, error)

func (*HighlightField) SetLimit

func (o *HighlightField) SetLimit(v int32)

SetLimit gets a reference to the given int32 and assigns it to the Limit field.

func (*HighlightField) SetLimitSnippets

func (o *HighlightField) SetLimitSnippets(v int32)

SetLimitSnippets gets a reference to the given int32 and assigns it to the LimitSnippets field.

func (*HighlightField) SetLimitWords

func (o *HighlightField) SetLimitWords(v int32)

SetLimitWords gets a reference to the given int32 and assigns it to the LimitWords field.

func (*HighlightField) SetName

func (o *HighlightField) SetName(v string)

SetName sets field value

func (HighlightField) ToMap

func (o HighlightField) ToMap() (map[string]interface{}, error)

func (*HighlightField) UnmarshalJSON

func (o *HighlightField) UnmarshalJSON(data []byte) (err error)

type InFilter

type InFilter struct {
	Field  string                   `json:"field"`
	Values []map[string]interface{} `json:"values"`
}

InFilter In attribute filter

func NewInFilter

func NewInFilter(field string, values []map[string]interface{}) *InFilter

NewInFilter instantiates a new InFilter object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewInFilterWithDefaults

func NewInFilterWithDefaults() *InFilter

NewInFilterWithDefaults instantiates a new InFilter object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*InFilter) GetField

func (o *InFilter) GetField() string

GetField returns the Field field value

func (*InFilter) GetFieldOk

func (o *InFilter) GetFieldOk() (*string, bool)

GetFieldOk returns a tuple with the Field field value and a boolean to check if the value has been set.

func (*InFilter) GetValues

func (o *InFilter) GetValues() []map[string]interface{}

GetValues returns the Values field value

func (*InFilter) GetValuesOk

func (o *InFilter) GetValuesOk() ([]map[string]interface{}, bool)

GetValuesOk returns a tuple with the Values field value and a boolean to check if the value has been set.

func (InFilter) MarshalJSON

func (o InFilter) MarshalJSON() ([]byte, error)

func (*InFilter) SetField

func (o *InFilter) SetField(v string)

SetField sets field value

func (*InFilter) SetValues

func (o *InFilter) SetValues(v []map[string]interface{})

SetValues sets field value

func (InFilter) ToMap

func (o InFilter) ToMap() (map[string]interface{}, error)

func (*InFilter) UnmarshalJSON

func (o *InFilter) UnmarshalJSON(data []byte) (err error)

type IndexAPIService

type IndexAPIService service

IndexAPIService IndexAPI service

func (*IndexAPIService) Bulk

Bulk Bulk index operations

Sends multiple operatons like inserts, updates, replaces or deletes. For each operation it's object must have same format as in their dedicated method. The method expects a raw string as the batch in NDJSON.

Each operation object needs to be serialized to
JSON and separated by endline (\n).

 An example of raw input:

 ```
 {"insert": {"index": "movies", "doc": {"plot": "A secret team goes to North Pole", "rating": 9.5, "language": [2, 3], "title": "This is an older movie", "lon": 51.99, "meta": {"keywords":["travel","ice"],"genre":["adventure"]}, "year": 1950, "lat": 60.4, "advise": "PG-13"}}}
 \n
 {"delete": {"index": "movies","id":700}}
 ```

 Responds with an object telling whenever any errors occured and an array with status for each operation:

 ```
 {
   'items':
   [
     {
       'update':{'_index':'products','_id':1,'result':'updated'}
     },
     {
       'update':{'_index':'products','_id':2,'result':'updated'}
     }
   ],
   'errors':false
 }
 ```

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiBulkRequest

func (*IndexAPIService) BulkExecute

Execute executes the request

@return BulkResponse

func (*IndexAPIService) Delete

Delete Delete a document in an index

Delete one or several documents. The method has 2 ways of deleting: either by id, in case only one document is deleted or by using a match query, in which case multiple documents can be delete . Example of input to delete by id:

```
{'index':'movies','id':100}
```

Example of input to delete using a query:

```
{
  'index':'movies',
  'query':
  {
    'bool':
    {
      'must':
      [
        {'query_string':'new movie'}
      ]
    }
  }
}
```

The match query has same syntax as in for searching. Responds with an object telling how many documents got deleted:

 ```
 {'_index':'products','updated':1}
 ```

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiDeleteRequest

func (*IndexAPIService) DeleteExecute

Execute executes the request

@return DeleteResponse

func (*IndexAPIService) Insert

Insert Create a new document in an index

Insert a document. Expects an object like:

```
{
  'index':'movies',
  'id':701,
  'doc':
  {
    'title':'This is an old movie',
    'plot':'A secret team goes to North Pole',
    'year':1950,
    'rating':9.5,
    'lat':60.4,
    'lon':51.99,
    'advise':'PG-13',
    'meta':'{"keywords":{"travel","ice"},"genre":{"adventure"}}',
    'language':[2,3]
  }
}
```

The document id can also be missing, in which case an autogenerated one will be used:

```
{
  'index':'movies',
  'doc':
  {
    'title':'This is a new movie',
    'plot':'A secret team goes to North Pole',
    'year':2020,
    'rating':9.5,
    'lat':60.4,
    'lon':51.99,
    'advise':'PG-13',
    'meta':'{"keywords":{"travel","ice"},"genre":{"adventure"}}',
    'language':[2,3]
  }
}
```

It responds with an object in format:

 ```
 {'_index':'products','_id':701,'created':true,'result':'created','status':201}
 ```

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiInsertRequest

func (*IndexAPIService) InsertExecute

Execute executes the request

@return SuccessResponse

func (*IndexAPIService) Replace

Replace Replace new document in an index

Replace an existing document. Input has same format as `insert` operation. <br/> Responds with an object in format: <br/>

 ```
 {'_index':'products','_id':1,'created':false,'result':'updated','status':200}
 ```

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiReplaceRequest

func (*IndexAPIService) ReplaceExecute

Execute executes the request

@return SuccessResponse

func (*IndexAPIService) Update

Update Update a document in an index

Update one or several documents. The update can be made by passing the id or by using a match query in case multiple documents can be updated. For example update a document using document id:

```
{'index':'movies','doc':{'rating':9.49},'id':100}
```

And update by using a match query:

```
{
  'index':'movies',
  'doc':{'rating':9.49},
  'query':
  {
    'bool':
    {
      'must':
      [
        {'query_string':'new movie'}
      ]
    }
  }
}
```

The match query has same syntax as for searching. Responds with an object that tells how many documents where updated in format:

 ```
 {'_index':'products','updated':1}
 ```

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiUpdateRequest

func (*IndexAPIService) UpdateExecute

Execute executes the request

@return UpdateResponse

type InsertDocumentRequest

type InsertDocumentRequest struct {
	// Name of the index
	Index string `json:"index"`
	// cluster name
	Cluster *string `json:"cluster,omitempty"`
	// Document ID.
	Id *int64 `json:"id,omitempty"`
	// Object with document data
	Doc map[string]interface{} `json:"doc"`
}

InsertDocumentRequest Object with document data.

func NewInsertDocumentRequest

func NewInsertDocumentRequest(index string, doc map[string]interface{}) *InsertDocumentRequest

NewInsertDocumentRequest instantiates a new InsertDocumentRequest object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewInsertDocumentRequestWithDefaults

func NewInsertDocumentRequestWithDefaults() *InsertDocumentRequest

NewInsertDocumentRequestWithDefaults instantiates a new InsertDocumentRequest object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*InsertDocumentRequest) GetCluster

func (o *InsertDocumentRequest) GetCluster() string

GetCluster returns the Cluster field value if set, zero value otherwise.

func (*InsertDocumentRequest) GetClusterOk

func (o *InsertDocumentRequest) GetClusterOk() (*string, bool)

GetClusterOk returns a tuple with the Cluster field value if set, nil otherwise and a boolean to check if the value has been set.

func (*InsertDocumentRequest) GetDoc

func (o *InsertDocumentRequest) GetDoc() map[string]interface{}

GetDoc returns the Doc field value

func (*InsertDocumentRequest) GetDocOk

func (o *InsertDocumentRequest) GetDocOk() (map[string]interface{}, bool)

GetDocOk returns a tuple with the Doc field value and a boolean to check if the value has been set.

func (*InsertDocumentRequest) GetId

func (o *InsertDocumentRequest) GetId() int64

GetId returns the Id field value if set, zero value otherwise.

func (*InsertDocumentRequest) GetIdOk

func (o *InsertDocumentRequest) GetIdOk() (*int64, bool)

GetIdOk returns a tuple with the Id field value if set, nil otherwise and a boolean to check if the value has been set.

func (*InsertDocumentRequest) GetIndex

func (o *InsertDocumentRequest) GetIndex() string

GetIndex returns the Index field value

func (*InsertDocumentRequest) GetIndexOk

func (o *InsertDocumentRequest) GetIndexOk() (*string, bool)

GetIndexOk returns a tuple with the Index field value and a boolean to check if the value has been set.

func (*InsertDocumentRequest) HasCluster

func (o *InsertDocumentRequest) HasCluster() bool

HasCluster returns a boolean if a field has been set.

func (*InsertDocumentRequest) HasId

func (o *InsertDocumentRequest) HasId() bool

HasId returns a boolean if a field has been set.

func (InsertDocumentRequest) MarshalJSON

func (o InsertDocumentRequest) MarshalJSON() ([]byte, error)

func (*InsertDocumentRequest) SetCluster

func (o *InsertDocumentRequest) SetCluster(v string)

SetCluster gets a reference to the given string and assigns it to the Cluster field.

func (*InsertDocumentRequest) SetDoc

func (o *InsertDocumentRequest) SetDoc(v map[string]interface{})

SetDoc sets field value

func (*InsertDocumentRequest) SetId

func (o *InsertDocumentRequest) SetId(v int64)

SetId gets a reference to the given int64 and assigns it to the Id field.

func (*InsertDocumentRequest) SetIndex

func (o *InsertDocumentRequest) SetIndex(v string)

SetIndex sets field value

func (InsertDocumentRequest) ToMap

func (o InsertDocumentRequest) ToMap() (map[string]interface{}, error)

func (*InsertDocumentRequest) UnmarshalJSON

func (o *InsertDocumentRequest) UnmarshalJSON(data []byte) (err error)

type KnnSearchRequestByDocId

type KnnSearchRequestByDocId struct {
	Index          string                   `json:"index"`
	Field          string                   `json:"field"`
	DocId          int32                    `json:"doc_id"`
	K              int32                    `json:"k"`
	FulltextFilter map[string]interface{}   `json:"fulltext_filter,omitempty"`
	AttrFilter     map[string]interface{}   `json:"attr_filter,omitempty"`
	Limit          *int32                   `json:"limit,omitempty"`
	Offset         *int32                   `json:"offset,omitempty"`
	MaxMatches     *int32                   `json:"max_matches,omitempty"`
	Sort           []map[string]interface{} `json:"sort,omitempty"`
	Aggs           *map[string]Aggregation  `json:"aggs,omitempty"`
	Expressions    *map[string]string       `json:"expressions,omitempty"`
	Highlight      *Highlight               `json:"highlight,omitempty"`
	Source         map[string]interface{}   `json:"source,omitempty"`
	Options        map[string]interface{}   `json:"options,omitempty"`
	Profile        *bool                    `json:"profile,omitempty"`
	TrackScores    *bool                    `json:"track_scores,omitempty"`
}

KnnSearchRequestByDocId Request object for knn search operation

func NewKnnSearchRequestByDocId

func NewKnnSearchRequestByDocId(index string, field string, docId int32, k int32) *KnnSearchRequestByDocId

NewKnnSearchRequestByDocId instantiates a new KnnSearchRequestByDocId object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewKnnSearchRequestByDocIdWithDefaults

func NewKnnSearchRequestByDocIdWithDefaults() *KnnSearchRequestByDocId

NewKnnSearchRequestByDocIdWithDefaults instantiates a new KnnSearchRequestByDocId object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*KnnSearchRequestByDocId) GetAggs

func (o *KnnSearchRequestByDocId) GetAggs() map[string]Aggregation

GetAggs returns the Aggs field value if set, zero value otherwise.

func (*KnnSearchRequestByDocId) GetAggsOk

func (o *KnnSearchRequestByDocId) GetAggsOk() (*map[string]Aggregation, bool)

GetAggsOk returns a tuple with the Aggs field value if set, nil otherwise and a boolean to check if the value has been set.

func (*KnnSearchRequestByDocId) GetAttrFilter

func (o *KnnSearchRequestByDocId) GetAttrFilter() map[string]interface{}

GetAttrFilter returns the AttrFilter field value if set, zero value otherwise.

func (*KnnSearchRequestByDocId) GetAttrFilterOk

func (o *KnnSearchRequestByDocId) GetAttrFilterOk() (map[string]interface{}, bool)

GetAttrFilterOk returns a tuple with the AttrFilter field value if set, nil otherwise and a boolean to check if the value has been set.

func (*KnnSearchRequestByDocId) GetDocId

func (o *KnnSearchRequestByDocId) GetDocId() int32

GetDocId returns the DocId field value

func (*KnnSearchRequestByDocId) GetDocIdOk

func (o *KnnSearchRequestByDocId) GetDocIdOk() (*int32, bool)

GetDocIdOk returns a tuple with the DocId field value and a boolean to check if the value has been set.

func (*KnnSearchRequestByDocId) GetExpressions

func (o *KnnSearchRequestByDocId) GetExpressions() map[string]string

GetExpressions returns the Expressions field value if set, zero value otherwise.

func (*KnnSearchRequestByDocId) GetExpressionsOk

func (o *KnnSearchRequestByDocId) GetExpressionsOk() (*map[string]string, bool)

GetExpressionsOk returns a tuple with the Expressions field value if set, nil otherwise and a boolean to check if the value has been set.

func (*KnnSearchRequestByDocId) GetField

func (o *KnnSearchRequestByDocId) GetField() string

GetField returns the Field field value

func (*KnnSearchRequestByDocId) GetFieldOk

func (o *KnnSearchRequestByDocId) GetFieldOk() (*string, bool)

GetFieldOk returns a tuple with the Field field value and a boolean to check if the value has been set.

func (*KnnSearchRequestByDocId) GetFulltextFilter

func (o *KnnSearchRequestByDocId) GetFulltextFilter() map[string]interface{}

GetFulltextFilter returns the FulltextFilter field value if set, zero value otherwise.

func (*KnnSearchRequestByDocId) GetFulltextFilterOk

func (o *KnnSearchRequestByDocId) GetFulltextFilterOk() (map[string]interface{}, bool)

GetFulltextFilterOk returns a tuple with the FulltextFilter field value if set, nil otherwise and a boolean to check if the value has been set.

func (*KnnSearchRequestByDocId) GetHighlight

func (o *KnnSearchRequestByDocId) GetHighlight() Highlight

GetHighlight returns the Highlight field value if set, zero value otherwise.

func (*KnnSearchRequestByDocId) GetHighlightOk

func (o *KnnSearchRequestByDocId) GetHighlightOk() (*Highlight, bool)

GetHighlightOk returns a tuple with the Highlight field value if set, nil otherwise and a boolean to check if the value has been set.

func (*KnnSearchRequestByDocId) GetIndex

func (o *KnnSearchRequestByDocId) GetIndex() string

GetIndex returns the Index field value

func (*KnnSearchRequestByDocId) GetIndexOk

func (o *KnnSearchRequestByDocId) GetIndexOk() (*string, bool)

GetIndexOk returns a tuple with the Index field value and a boolean to check if the value has been set.

func (*KnnSearchRequestByDocId) GetK

func (o *KnnSearchRequestByDocId) GetK() int32

GetK returns the K field value

func (*KnnSearchRequestByDocId) GetKOk

func (o *KnnSearchRequestByDocId) GetKOk() (*int32, bool)

GetKOk returns a tuple with the K field value and a boolean to check if the value has been set.

func (*KnnSearchRequestByDocId) GetLimit

func (o *KnnSearchRequestByDocId) GetLimit() int32

GetLimit returns the Limit field value if set, zero value otherwise.

func (*KnnSearchRequestByDocId) GetLimitOk

func (o *KnnSearchRequestByDocId) GetLimitOk() (*int32, bool)

GetLimitOk returns a tuple with the Limit field value if set, nil otherwise and a boolean to check if the value has been set.

func (*KnnSearchRequestByDocId) GetMaxMatches

func (o *KnnSearchRequestByDocId) GetMaxMatches() int32

GetMaxMatches returns the MaxMatches field value if set, zero value otherwise.

func (*KnnSearchRequestByDocId) GetMaxMatchesOk

func (o *KnnSearchRequestByDocId) GetMaxMatchesOk() (*int32, bool)

GetMaxMatchesOk returns a tuple with the MaxMatches field value if set, nil otherwise and a boolean to check if the value has been set.

func (*KnnSearchRequestByDocId) GetOffset

func (o *KnnSearchRequestByDocId) GetOffset() int32

GetOffset returns the Offset field value if set, zero value otherwise.

func (*KnnSearchRequestByDocId) GetOffsetOk

func (o *KnnSearchRequestByDocId) GetOffsetOk() (*int32, bool)

GetOffsetOk returns a tuple with the Offset field value if set, nil otherwise and a boolean to check if the value has been set.

func (*KnnSearchRequestByDocId) GetOptions

func (o *KnnSearchRequestByDocId) GetOptions() map[string]interface{}

GetOptions returns the Options field value if set, zero value otherwise.

func (*KnnSearchRequestByDocId) GetOptionsOk

func (o *KnnSearchRequestByDocId) GetOptionsOk() (map[string]interface{}, bool)

GetOptionsOk returns a tuple with the Options field value if set, nil otherwise and a boolean to check if the value has been set.

func (*KnnSearchRequestByDocId) GetProfile

func (o *KnnSearchRequestByDocId) GetProfile() bool

GetProfile returns the Profile field value if set, zero value otherwise.

func (*KnnSearchRequestByDocId) GetProfileOk

func (o *KnnSearchRequestByDocId) GetProfileOk() (*bool, bool)

GetProfileOk returns a tuple with the Profile field value if set, nil otherwise and a boolean to check if the value has been set.

func (*KnnSearchRequestByDocId) GetSort

func (o *KnnSearchRequestByDocId) GetSort() []map[string]interface{}

GetSort returns the Sort field value if set, zero value otherwise.

func (*KnnSearchRequestByDocId) GetSortOk

func (o *KnnSearchRequestByDocId) GetSortOk() ([]map[string]interface{}, bool)

GetSortOk returns a tuple with the Sort field value if set, nil otherwise and a boolean to check if the value has been set.

func (*KnnSearchRequestByDocId) GetSource

func (o *KnnSearchRequestByDocId) GetSource() map[string]interface{}

GetSource returns the Source field value if set, zero value otherwise.

func (*KnnSearchRequestByDocId) GetSourceOk

func (o *KnnSearchRequestByDocId) GetSourceOk() (map[string]interface{}, bool)

GetSourceOk returns a tuple with the Source field value if set, nil otherwise and a boolean to check if the value has been set.

func (*KnnSearchRequestByDocId) GetTrackScores

func (o *KnnSearchRequestByDocId) GetTrackScores() bool

GetTrackScores returns the TrackScores field value if set, zero value otherwise.

func (*KnnSearchRequestByDocId) GetTrackScoresOk

func (o *KnnSearchRequestByDocId) GetTrackScoresOk() (*bool, bool)

GetTrackScoresOk returns a tuple with the TrackScores field value if set, nil otherwise and a boolean to check if the value has been set.

func (*KnnSearchRequestByDocId) HasAggs

func (o *KnnSearchRequestByDocId) HasAggs() bool

HasAggs returns a boolean if a field has been set.

func (*KnnSearchRequestByDocId) HasAttrFilter

func (o *KnnSearchRequestByDocId) HasAttrFilter() bool

HasAttrFilter returns a boolean if a field has been set.

func (*KnnSearchRequestByDocId) HasExpressions

func (o *KnnSearchRequestByDocId) HasExpressions() bool

HasExpressions returns a boolean if a field has been set.

func (*KnnSearchRequestByDocId) HasFulltextFilter

func (o *KnnSearchRequestByDocId) HasFulltextFilter() bool

HasFulltextFilter returns a boolean if a field has been set.

func (*KnnSearchRequestByDocId) HasHighlight

func (o *KnnSearchRequestByDocId) HasHighlight() bool

HasHighlight returns a boolean if a field has been set.

func (*KnnSearchRequestByDocId) HasLimit

func (o *KnnSearchRequestByDocId) HasLimit() bool

HasLimit returns a boolean if a field has been set.

func (*KnnSearchRequestByDocId) HasMaxMatches

func (o *KnnSearchRequestByDocId) HasMaxMatches() bool

HasMaxMatches returns a boolean if a field has been set.

func (*KnnSearchRequestByDocId) HasOffset

func (o *KnnSearchRequestByDocId) HasOffset() bool

HasOffset returns a boolean if a field has been set.

func (*KnnSearchRequestByDocId) HasOptions

func (o *KnnSearchRequestByDocId) HasOptions() bool

HasOptions returns a boolean if a field has been set.

func (*KnnSearchRequestByDocId) HasProfile

func (o *KnnSearchRequestByDocId) HasProfile() bool

HasProfile returns a boolean if a field has been set.

func (*KnnSearchRequestByDocId) HasSort

func (o *KnnSearchRequestByDocId) HasSort() bool

HasSort returns a boolean if a field has been set.

func (*KnnSearchRequestByDocId) HasSource

func (o *KnnSearchRequestByDocId) HasSource() bool

HasSource returns a boolean if a field has been set.

func (*KnnSearchRequestByDocId) HasTrackScores

func (o *KnnSearchRequestByDocId) HasTrackScores() bool

HasTrackScores returns a boolean if a field has been set.

func (KnnSearchRequestByDocId) MarshalJSON

func (o KnnSearchRequestByDocId) MarshalJSON() ([]byte, error)

func (*KnnSearchRequestByDocId) SetAggs

func (o *KnnSearchRequestByDocId) SetAggs(v map[string]Aggregation)

SetAggs gets a reference to the given map[string]Aggregation and assigns it to the Aggs field.

func (*KnnSearchRequestByDocId) SetAttrFilter

func (o *KnnSearchRequestByDocId) SetAttrFilter(v map[string]interface{})

SetAttrFilter gets a reference to the given map[string]interface{} and assigns it to the AttrFilter field.

func (*KnnSearchRequestByDocId) SetDocId

func (o *KnnSearchRequestByDocId) SetDocId(v int32)

SetDocId sets field value

func (*KnnSearchRequestByDocId) SetExpressions

func (o *KnnSearchRequestByDocId) SetExpressions(v map[string]string)

SetExpressions gets a reference to the given map[string]string and assigns it to the Expressions field.

func (*KnnSearchRequestByDocId) SetField

func (o *KnnSearchRequestByDocId) SetField(v string)

SetField sets field value

func (*KnnSearchRequestByDocId) SetFulltextFilter

func (o *KnnSearchRequestByDocId) SetFulltextFilter(v map[string]interface{})

SetFulltextFilter gets a reference to the given map[string]interface{} and assigns it to the FulltextFilter field.

func (*KnnSearchRequestByDocId) SetHighlight

func (o *KnnSearchRequestByDocId) SetHighlight(v Highlight)

SetHighlight gets a reference to the given Highlight and assigns it to the Highlight field.

func (*KnnSearchRequestByDocId) SetIndex

func (o *KnnSearchRequestByDocId) SetIndex(v string)

SetIndex sets field value

func (*KnnSearchRequestByDocId) SetK

func (o *KnnSearchRequestByDocId) SetK(v int32)

SetK sets field value

func (*KnnSearchRequestByDocId) SetLimit

func (o *KnnSearchRequestByDocId) SetLimit(v int32)

SetLimit gets a reference to the given int32 and assigns it to the Limit field.

func (*KnnSearchRequestByDocId) SetMaxMatches

func (o *KnnSearchRequestByDocId) SetMaxMatches(v int32)

SetMaxMatches gets a reference to the given int32 and assigns it to the MaxMatches field.

func (*KnnSearchRequestByDocId) SetOffset

func (o *KnnSearchRequestByDocId) SetOffset(v int32)

SetOffset gets a reference to the given int32 and assigns it to the Offset field.

func (*KnnSearchRequestByDocId) SetOptions

func (o *KnnSearchRequestByDocId) SetOptions(v map[string]interface{})

SetOptions gets a reference to the given map[string]interface{} and assigns it to the Options field.

func (*KnnSearchRequestByDocId) SetProfile

func (o *KnnSearchRequestByDocId) SetProfile(v bool)

SetProfile gets a reference to the given bool and assigns it to the Profile field.

func (*KnnSearchRequestByDocId) SetSort

func (o *KnnSearchRequestByDocId) SetSort(v []map[string]interface{})

SetSort gets a reference to the given []map[string]interface{} and assigns it to the Sort field.

func (*KnnSearchRequestByDocId) SetSource

func (o *KnnSearchRequestByDocId) SetSource(v map[string]interface{})

SetSource gets a reference to the given map[string]interface{} and assigns it to the Source field.

func (*KnnSearchRequestByDocId) SetTrackScores

func (o *KnnSearchRequestByDocId) SetTrackScores(v bool)

SetTrackScores gets a reference to the given bool and assigns it to the TrackScores field.

func (KnnSearchRequestByDocId) ToMap

func (o KnnSearchRequestByDocId) ToMap() (map[string]interface{}, error)

func (*KnnSearchRequestByDocId) UnmarshalJSON

func (o *KnnSearchRequestByDocId) UnmarshalJSON(data []byte) (err error)

type KnnSearchRequestByVector

type KnnSearchRequestByVector struct {
	Index          string                   `json:"index"`
	Field          string                   `json:"field"`
	QueryVector    []float32                `json:"query_vector"`
	K              int32                    `json:"k"`
	FulltextFilter map[string]interface{}   `json:"fulltext_filter,omitempty"`
	AttrFilter     map[string]interface{}   `json:"attr_filter,omitempty"`
	Limit          *int32                   `json:"limit,omitempty"`
	Offset         *int32                   `json:"offset,omitempty"`
	MaxMatches     *int32                   `json:"max_matches,omitempty"`
	Sort           []map[string]interface{} `json:"sort,omitempty"`
	Aggs           *map[string]Aggregation  `json:"aggs,omitempty"`
	Expressions    *map[string]string       `json:"expressions,omitempty"`
	Highlight      *Highlight               `json:"highlight,omitempty"`
	Source         map[string]interface{}   `json:"source,omitempty"`
	Options        map[string]interface{}   `json:"options,omitempty"`
	Profile        *bool                    `json:"profile,omitempty"`
	TrackScores    *bool                    `json:"track_scores,omitempty"`
}

KnnSearchRequestByVector Request object for knn search operation

func NewKnnSearchRequestByVector

func NewKnnSearchRequestByVector(index string, field string, queryVector []float32, k int32) *KnnSearchRequestByVector

NewKnnSearchRequestByVector instantiates a new KnnSearchRequestByVector object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewKnnSearchRequestByVectorWithDefaults

func NewKnnSearchRequestByVectorWithDefaults() *KnnSearchRequestByVector

NewKnnSearchRequestByVectorWithDefaults instantiates a new KnnSearchRequestByVector object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*KnnSearchRequestByVector) GetAggs

func (o *KnnSearchRequestByVector) GetAggs() map[string]Aggregation

GetAggs returns the Aggs field value if set, zero value otherwise.

func (*KnnSearchRequestByVector) GetAggsOk

func (o *KnnSearchRequestByVector) GetAggsOk() (*map[string]Aggregation, bool)

GetAggsOk returns a tuple with the Aggs field value if set, nil otherwise and a boolean to check if the value has been set.

func (*KnnSearchRequestByVector) GetAttrFilter

func (o *KnnSearchRequestByVector) GetAttrFilter() map[string]interface{}

GetAttrFilter returns the AttrFilter field value if set, zero value otherwise.

func (*KnnSearchRequestByVector) GetAttrFilterOk

func (o *KnnSearchRequestByVector) GetAttrFilterOk() (map[string]interface{}, bool)

GetAttrFilterOk returns a tuple with the AttrFilter field value if set, nil otherwise and a boolean to check if the value has been set.

func (*KnnSearchRequestByVector) GetExpressions

func (o *KnnSearchRequestByVector) GetExpressions() map[string]string

GetExpressions returns the Expressions field value if set, zero value otherwise.

func (*KnnSearchRequestByVector) GetExpressionsOk

func (o *KnnSearchRequestByVector) GetExpressionsOk() (*map[string]string, bool)

GetExpressionsOk returns a tuple with the Expressions field value if set, nil otherwise and a boolean to check if the value has been set.

func (*KnnSearchRequestByVector) GetField

func (o *KnnSearchRequestByVector) GetField() string

GetField returns the Field field value

func (*KnnSearchRequestByVector) GetFieldOk

func (o *KnnSearchRequestByVector) GetFieldOk() (*string, bool)

GetFieldOk returns a tuple with the Field field value and a boolean to check if the value has been set.

func (*KnnSearchRequestByVector) GetFulltextFilter

func (o *KnnSearchRequestByVector) GetFulltextFilter() map[string]interface{}

GetFulltextFilter returns the FulltextFilter field value if set, zero value otherwise.

func (*KnnSearchRequestByVector) GetFulltextFilterOk

func (o *KnnSearchRequestByVector) GetFulltextFilterOk() (map[string]interface{}, bool)

GetFulltextFilterOk returns a tuple with the FulltextFilter field value if set, nil otherwise and a boolean to check if the value has been set.

func (*KnnSearchRequestByVector) GetHighlight

func (o *KnnSearchRequestByVector) GetHighlight() Highlight

GetHighlight returns the Highlight field value if set, zero value otherwise.

func (*KnnSearchRequestByVector) GetHighlightOk

func (o *KnnSearchRequestByVector) GetHighlightOk() (*Highlight, bool)

GetHighlightOk returns a tuple with the Highlight field value if set, nil otherwise and a boolean to check if the value has been set.

func (*KnnSearchRequestByVector) GetIndex

func (o *KnnSearchRequestByVector) GetIndex() string

GetIndex returns the Index field value

func (*KnnSearchRequestByVector) GetIndexOk

func (o *KnnSearchRequestByVector) GetIndexOk() (*string, bool)

GetIndexOk returns a tuple with the Index field value and a boolean to check if the value has been set.

func (*KnnSearchRequestByVector) GetK

func (o *KnnSearchRequestByVector) GetK() int32

GetK returns the K field value

func (*KnnSearchRequestByVector) GetKOk

func (o *KnnSearchRequestByVector) GetKOk() (*int32, bool)

GetKOk returns a tuple with the K field value and a boolean to check if the value has been set.

func (*KnnSearchRequestByVector) GetLimit

func (o *KnnSearchRequestByVector) GetLimit() int32

GetLimit returns the Limit field value if set, zero value otherwise.

func (*KnnSearchRequestByVector) GetLimitOk

func (o *KnnSearchRequestByVector) GetLimitOk() (*int32, bool)

GetLimitOk returns a tuple with the Limit field value if set, nil otherwise and a boolean to check if the value has been set.

func (*KnnSearchRequestByVector) GetMaxMatches

func (o *KnnSearchRequestByVector) GetMaxMatches() int32

GetMaxMatches returns the MaxMatches field value if set, zero value otherwise.

func (*KnnSearchRequestByVector) GetMaxMatchesOk

func (o *KnnSearchRequestByVector) GetMaxMatchesOk() (*int32, bool)

GetMaxMatchesOk returns a tuple with the MaxMatches field value if set, nil otherwise and a boolean to check if the value has been set.

func (*KnnSearchRequestByVector) GetOffset

func (o *KnnSearchRequestByVector) GetOffset() int32

GetOffset returns the Offset field value if set, zero value otherwise.

func (*KnnSearchRequestByVector) GetOffsetOk

func (o *KnnSearchRequestByVector) GetOffsetOk() (*int32, bool)

GetOffsetOk returns a tuple with the Offset field value if set, nil otherwise and a boolean to check if the value has been set.

func (*KnnSearchRequestByVector) GetOptions

func (o *KnnSearchRequestByVector) GetOptions() map[string]interface{}

GetOptions returns the Options field value if set, zero value otherwise.

func (*KnnSearchRequestByVector) GetOptionsOk

func (o *KnnSearchRequestByVector) GetOptionsOk() (map[string]interface{}, bool)

GetOptionsOk returns a tuple with the Options field value if set, nil otherwise and a boolean to check if the value has been set.

func (*KnnSearchRequestByVector) GetProfile

func (o *KnnSearchRequestByVector) GetProfile() bool

GetProfile returns the Profile field value if set, zero value otherwise.

func (*KnnSearchRequestByVector) GetProfileOk

func (o *KnnSearchRequestByVector) GetProfileOk() (*bool, bool)

GetProfileOk returns a tuple with the Profile field value if set, nil otherwise and a boolean to check if the value has been set.

func (*KnnSearchRequestByVector) GetQueryVector

func (o *KnnSearchRequestByVector) GetQueryVector() []float32

GetQueryVector returns the QueryVector field value

func (*KnnSearchRequestByVector) GetQueryVectorOk

func (o *KnnSearchRequestByVector) GetQueryVectorOk() ([]float32, bool)

GetQueryVectorOk returns a tuple with the QueryVector field value and a boolean to check if the value has been set.

func (*KnnSearchRequestByVector) GetSort

func (o *KnnSearchRequestByVector) GetSort() []map[string]interface{}

GetSort returns the Sort field value if set, zero value otherwise.

func (*KnnSearchRequestByVector) GetSortOk

func (o *KnnSearchRequestByVector) GetSortOk() ([]map[string]interface{}, bool)

GetSortOk returns a tuple with the Sort field value if set, nil otherwise and a boolean to check if the value has been set.

func (*KnnSearchRequestByVector) GetSource

func (o *KnnSearchRequestByVector) GetSource() map[string]interface{}

GetSource returns the Source field value if set, zero value otherwise.

func (*KnnSearchRequestByVector) GetSourceOk

func (o *KnnSearchRequestByVector) GetSourceOk() (map[string]interface{}, bool)

GetSourceOk returns a tuple with the Source field value if set, nil otherwise and a boolean to check if the value has been set.

func (*KnnSearchRequestByVector) GetTrackScores

func (o *KnnSearchRequestByVector) GetTrackScores() bool

GetTrackScores returns the TrackScores field value if set, zero value otherwise.

func (*KnnSearchRequestByVector) GetTrackScoresOk

func (o *KnnSearchRequestByVector) GetTrackScoresOk() (*bool, bool)

GetTrackScoresOk returns a tuple with the TrackScores field value if set, nil otherwise and a boolean to check if the value has been set.

func (*KnnSearchRequestByVector) HasAggs

func (o *KnnSearchRequestByVector) HasAggs() bool

HasAggs returns a boolean if a field has been set.

func (*KnnSearchRequestByVector) HasAttrFilter

func (o *KnnSearchRequestByVector) HasAttrFilter() bool

HasAttrFilter returns a boolean if a field has been set.

func (*KnnSearchRequestByVector) HasExpressions

func (o *KnnSearchRequestByVector) HasExpressions() bool

HasExpressions returns a boolean if a field has been set.

func (*KnnSearchRequestByVector) HasFulltextFilter

func (o *KnnSearchRequestByVector) HasFulltextFilter() bool

HasFulltextFilter returns a boolean if a field has been set.

func (*KnnSearchRequestByVector) HasHighlight

func (o *KnnSearchRequestByVector) HasHighlight() bool

HasHighlight returns a boolean if a field has been set.

func (*KnnSearchRequestByVector) HasLimit

func (o *KnnSearchRequestByVector) HasLimit() bool

HasLimit returns a boolean if a field has been set.

func (*KnnSearchRequestByVector) HasMaxMatches

func (o *KnnSearchRequestByVector) HasMaxMatches() bool

HasMaxMatches returns a boolean if a field has been set.

func (*KnnSearchRequestByVector) HasOffset

func (o *KnnSearchRequestByVector) HasOffset() bool

HasOffset returns a boolean if a field has been set.

func (*KnnSearchRequestByVector) HasOptions

func (o *KnnSearchRequestByVector) HasOptions() bool

HasOptions returns a boolean if a field has been set.

func (*KnnSearchRequestByVector) HasProfile

func (o *KnnSearchRequestByVector) HasProfile() bool

HasProfile returns a boolean if a field has been set.

func (*KnnSearchRequestByVector) HasSort

func (o *KnnSearchRequestByVector) HasSort() bool

HasSort returns a boolean if a field has been set.

func (*KnnSearchRequestByVector) HasSource

func (o *KnnSearchRequestByVector) HasSource() bool

HasSource returns a boolean if a field has been set.

func (*KnnSearchRequestByVector) HasTrackScores

func (o *KnnSearchRequestByVector) HasTrackScores() bool

HasTrackScores returns a boolean if a field has been set.

func (KnnSearchRequestByVector) MarshalJSON

func (o KnnSearchRequestByVector) MarshalJSON() ([]byte, error)

func (*KnnSearchRequestByVector) SetAggs

func (o *KnnSearchRequestByVector) SetAggs(v map[string]Aggregation)

SetAggs gets a reference to the given map[string]Aggregation and assigns it to the Aggs field.

func (*KnnSearchRequestByVector) SetAttrFilter

func (o *KnnSearchRequestByVector) SetAttrFilter(v map[string]interface{})

SetAttrFilter gets a reference to the given map[string]interface{} and assigns it to the AttrFilter field.

func (*KnnSearchRequestByVector) SetExpressions

func (o *KnnSearchRequestByVector) SetExpressions(v map[string]string)

SetExpressions gets a reference to the given map[string]string and assigns it to the Expressions field.

func (*KnnSearchRequestByVector) SetField

func (o *KnnSearchRequestByVector) SetField(v string)

SetField sets field value

func (*KnnSearchRequestByVector) SetFulltextFilter

func (o *KnnSearchRequestByVector) SetFulltextFilter(v map[string]interface{})

SetFulltextFilter gets a reference to the given map[string]interface{} and assigns it to the FulltextFilter field.

func (*KnnSearchRequestByVector) SetHighlight

func (o *KnnSearchRequestByVector) SetHighlight(v Highlight)

SetHighlight gets a reference to the given Highlight and assigns it to the Highlight field.

func (*KnnSearchRequestByVector) SetIndex

func (o *KnnSearchRequestByVector) SetIndex(v string)

SetIndex sets field value

func (*KnnSearchRequestByVector) SetK

func (o *KnnSearchRequestByVector) SetK(v int32)

SetK sets field value

func (*KnnSearchRequestByVector) SetLimit

func (o *KnnSearchRequestByVector) SetLimit(v int32)

SetLimit gets a reference to the given int32 and assigns it to the Limit field.

func (*KnnSearchRequestByVector) SetMaxMatches

func (o *KnnSearchRequestByVector) SetMaxMatches(v int32)

SetMaxMatches gets a reference to the given int32 and assigns it to the MaxMatches field.

func (*KnnSearchRequestByVector) SetOffset

func (o *KnnSearchRequestByVector) SetOffset(v int32)

SetOffset gets a reference to the given int32 and assigns it to the Offset field.

func (*KnnSearchRequestByVector) SetOptions

func (o *KnnSearchRequestByVector) SetOptions(v map[string]interface{})

SetOptions gets a reference to the given map[string]interface{} and assigns it to the Options field.

func (*KnnSearchRequestByVector) SetProfile

func (o *KnnSearchRequestByVector) SetProfile(v bool)

SetProfile gets a reference to the given bool and assigns it to the Profile field.

func (*KnnSearchRequestByVector) SetQueryVector

func (o *KnnSearchRequestByVector) SetQueryVector(v []float32)

SetQueryVector sets field value

func (*KnnSearchRequestByVector) SetSort

func (o *KnnSearchRequestByVector) SetSort(v []map[string]interface{})

SetSort gets a reference to the given []map[string]interface{} and assigns it to the Sort field.

func (*KnnSearchRequestByVector) SetSource

func (o *KnnSearchRequestByVector) SetSource(v map[string]interface{})

SetSource gets a reference to the given map[string]interface{} and assigns it to the Source field.

func (*KnnSearchRequestByVector) SetTrackScores

func (o *KnnSearchRequestByVector) SetTrackScores(v bool)

SetTrackScores gets a reference to the given bool and assigns it to the TrackScores field.

func (KnnSearchRequestByVector) ToMap

func (o KnnSearchRequestByVector) ToMap() (map[string]interface{}, error)

func (*KnnSearchRequestByVector) UnmarshalJSON

func (o *KnnSearchRequestByVector) UnmarshalJSON(data []byte) (err error)

type MappedNullable

type MappedNullable interface {
	ToMap() (map[string]interface{}, error)
}

type MatchFilter

type MatchFilter struct {
	QueryString string `json:"query_string"`
	QueryFields string `json:"query_fields"`
}

MatchFilter Query match filter

func NewMatchFilter

func NewMatchFilter(queryString string, queryFields string) *MatchFilter

NewMatchFilter instantiates a new MatchFilter object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewMatchFilterWithDefaults

func NewMatchFilterWithDefaults() *MatchFilter

NewMatchFilterWithDefaults instantiates a new MatchFilter object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*MatchFilter) GetQueryFields

func (o *MatchFilter) GetQueryFields() string

GetQueryFields returns the QueryFields field value

func (*MatchFilter) GetQueryFieldsOk

func (o *MatchFilter) GetQueryFieldsOk() (*string, bool)

GetQueryFieldsOk returns a tuple with the QueryFields field value and a boolean to check if the value has been set.

func (*MatchFilter) GetQueryString

func (o *MatchFilter) GetQueryString() string

GetQueryString returns the QueryString field value

func (*MatchFilter) GetQueryStringOk

func (o *MatchFilter) GetQueryStringOk() (*string, bool)

GetQueryStringOk returns a tuple with the QueryString field value and a boolean to check if the value has been set.

func (MatchFilter) MarshalJSON

func (o MatchFilter) MarshalJSON() ([]byte, error)

func (*MatchFilter) SetQueryFields

func (o *MatchFilter) SetQueryFields(v string)

SetQueryFields sets field value

func (*MatchFilter) SetQueryString

func (o *MatchFilter) SetQueryString(v string)

SetQueryString sets field value

func (MatchFilter) ToMap

func (o MatchFilter) ToMap() (map[string]interface{}, error)

func (*MatchFilter) UnmarshalJSON

func (o *MatchFilter) UnmarshalJSON(data []byte) (err error)

type MatchOp

type MatchOp struct {
	QueryInfo map[string]interface{} `json:"query_info"`
}

MatchOp Query match expression with logical operator

func NewMatchOp

func NewMatchOp(queryInfo map[string]interface{}) *MatchOp

NewMatchOp instantiates a new MatchOp object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewMatchOpWithDefaults

func NewMatchOpWithDefaults() *MatchOp

NewMatchOpWithDefaults instantiates a new MatchOp object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*MatchOp) GetQueryInfo

func (o *MatchOp) GetQueryInfo() map[string]interface{}

GetQueryInfo returns the QueryInfo field value

func (*MatchOp) GetQueryInfoOk

func (o *MatchOp) GetQueryInfoOk() (map[string]interface{}, bool)

GetQueryInfoOk returns a tuple with the QueryInfo field value and a boolean to check if the value has been set.

func (MatchOp) MarshalJSON

func (o MatchOp) MarshalJSON() ([]byte, error)

func (*MatchOp) SetQueryInfo

func (o *MatchOp) SetQueryInfo(v map[string]interface{})

SetQueryInfo sets field value

func (MatchOp) ToMap

func (o MatchOp) ToMap() (map[string]interface{}, error)

func (*MatchOp) UnmarshalJSON

func (o *MatchOp) UnmarshalJSON(data []byte) (err error)

type MatchOpFilter

type MatchOpFilter struct {
	QueryString string `json:"query_string"`
	QueryFields string `json:"query_fields"`
	Operator    string `json:"operator"`
}

MatchOpFilter Query match expression

func NewMatchOpFilter

func NewMatchOpFilter(queryString string, queryFields string, operator string) *MatchOpFilter

NewMatchOpFilter instantiates a new MatchOpFilter object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewMatchOpFilterWithDefaults

func NewMatchOpFilterWithDefaults() *MatchOpFilter

NewMatchOpFilterWithDefaults instantiates a new MatchOpFilter object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*MatchOpFilter) GetOperator

func (o *MatchOpFilter) GetOperator() string

GetOperator returns the Operator field value

func (*MatchOpFilter) GetOperatorOk

func (o *MatchOpFilter) GetOperatorOk() (*string, bool)

GetOperatorOk returns a tuple with the Operator field value and a boolean to check if the value has been set.

func (*MatchOpFilter) GetQueryFields

func (o *MatchOpFilter) GetQueryFields() string

GetQueryFields returns the QueryFields field value

func (*MatchOpFilter) GetQueryFieldsOk

func (o *MatchOpFilter) GetQueryFieldsOk() (*string, bool)

GetQueryFieldsOk returns a tuple with the QueryFields field value and a boolean to check if the value has been set.

func (*MatchOpFilter) GetQueryString

func (o *MatchOpFilter) GetQueryString() string

GetQueryString returns the QueryString field value

func (*MatchOpFilter) GetQueryStringOk

func (o *MatchOpFilter) GetQueryStringOk() (*string, bool)

GetQueryStringOk returns a tuple with the QueryString field value and a boolean to check if the value has been set.

func (MatchOpFilter) MarshalJSON

func (o MatchOpFilter) MarshalJSON() ([]byte, error)

func (*MatchOpFilter) SetOperator

func (o *MatchOpFilter) SetOperator(v string)

SetOperator sets field value

func (*MatchOpFilter) SetQueryFields

func (o *MatchOpFilter) SetQueryFields(v string)

SetQueryFields sets field value

func (*MatchOpFilter) SetQueryString

func (o *MatchOpFilter) SetQueryString(v string)

SetQueryString sets field value

func (MatchOpFilter) ToMap

func (o MatchOpFilter) ToMap() (map[string]interface{}, error)

func (*MatchOpFilter) UnmarshalJSON

func (o *MatchOpFilter) UnmarshalJSON(data []byte) (err error)

type MatchPhraseFilter

type MatchPhraseFilter struct {
	QueryPhrase string `json:"query_phrase"`
	QueryFields string `json:"query_fields"`
}

MatchPhraseFilter Query match expression

func NewMatchPhraseFilter

func NewMatchPhraseFilter(queryPhrase string, queryFields string) *MatchPhraseFilter

NewMatchPhraseFilter instantiates a new MatchPhraseFilter object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewMatchPhraseFilterWithDefaults

func NewMatchPhraseFilterWithDefaults() *MatchPhraseFilter

NewMatchPhraseFilterWithDefaults instantiates a new MatchPhraseFilter object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*MatchPhraseFilter) GetQueryFields

func (o *MatchPhraseFilter) GetQueryFields() string

GetQueryFields returns the QueryFields field value

func (*MatchPhraseFilter) GetQueryFieldsOk

func (o *MatchPhraseFilter) GetQueryFieldsOk() (*string, bool)

GetQueryFieldsOk returns a tuple with the QueryFields field value and a boolean to check if the value has been set.

func (*MatchPhraseFilter) GetQueryPhrase

func (o *MatchPhraseFilter) GetQueryPhrase() string

GetQueryPhrase returns the QueryPhrase field value

func (*MatchPhraseFilter) GetQueryPhraseOk

func (o *MatchPhraseFilter) GetQueryPhraseOk() (*string, bool)

GetQueryPhraseOk returns a tuple with the QueryPhrase field value and a boolean to check if the value has been set.

func (MatchPhraseFilter) MarshalJSON

func (o MatchPhraseFilter) MarshalJSON() ([]byte, error)

func (*MatchPhraseFilter) SetQueryFields

func (o *MatchPhraseFilter) SetQueryFields(v string)

SetQueryFields sets field value

func (*MatchPhraseFilter) SetQueryPhrase

func (o *MatchPhraseFilter) SetQueryPhrase(v string)

SetQueryPhrase sets field value

func (MatchPhraseFilter) ToMap

func (o MatchPhraseFilter) ToMap() (map[string]interface{}, error)

func (*MatchPhraseFilter) UnmarshalJSON

func (o *MatchPhraseFilter) UnmarshalJSON(data []byte) (err error)

type NotFilterBoolean

type NotFilterBoolean struct {
	FilterField string `json:"filter_field"`
	Operation   string `json:"operation"`
	FilterValue bool   `json:"filter_value"`
}

NotFilterBoolean Query filter

func NewNotFilterBoolean

func NewNotFilterBoolean(filterField string, operation string, filterValue bool) *NotFilterBoolean

NewNotFilterBoolean instantiates a new NotFilterBoolean object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewNotFilterBooleanWithDefaults

func NewNotFilterBooleanWithDefaults() *NotFilterBoolean

NewNotFilterBooleanWithDefaults instantiates a new NotFilterBoolean object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*NotFilterBoolean) GetFilterField

func (o *NotFilterBoolean) GetFilterField() string

GetFilterField returns the FilterField field value

func (*NotFilterBoolean) GetFilterFieldOk

func (o *NotFilterBoolean) GetFilterFieldOk() (*string, bool)

GetFilterFieldOk returns a tuple with the FilterField field value and a boolean to check if the value has been set.

func (*NotFilterBoolean) GetFilterValue

func (o *NotFilterBoolean) GetFilterValue() bool

GetFilterValue returns the FilterValue field value

func (*NotFilterBoolean) GetFilterValueOk

func (o *NotFilterBoolean) GetFilterValueOk() (*bool, bool)

GetFilterValueOk returns a tuple with the FilterValue field value and a boolean to check if the value has been set.

func (*NotFilterBoolean) GetOperation

func (o *NotFilterBoolean) GetOperation() string

GetOperation returns the Operation field value

func (*NotFilterBoolean) GetOperationOk

func (o *NotFilterBoolean) GetOperationOk() (*string, bool)

GetOperationOk returns a tuple with the Operation field value and a boolean to check if the value has been set.

func (NotFilterBoolean) MarshalJSON

func (o NotFilterBoolean) MarshalJSON() ([]byte, error)

func (*NotFilterBoolean) SetFilterField

func (o *NotFilterBoolean) SetFilterField(v string)

SetFilterField sets field value

func (*NotFilterBoolean) SetFilterValue

func (o *NotFilterBoolean) SetFilterValue(v bool)

SetFilterValue sets field value

func (*NotFilterBoolean) SetOperation

func (o *NotFilterBoolean) SetOperation(v string)

SetOperation sets field value

func (NotFilterBoolean) ToMap

func (o NotFilterBoolean) ToMap() (map[string]interface{}, error)

func (*NotFilterBoolean) UnmarshalJSON

func (o *NotFilterBoolean) UnmarshalJSON(data []byte) (err error)

type NotFilterNumber

type NotFilterNumber struct {
	FilterField string  `json:"filter_field"`
	Operation   string  `json:"operation"`
	FilterValue float32 `json:"filter_value"`
}

NotFilterNumber Query filter

func NewNotFilterNumber

func NewNotFilterNumber(filterField string, operation string, filterValue float32) *NotFilterNumber

NewNotFilterNumber instantiates a new NotFilterNumber object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewNotFilterNumberWithDefaults

func NewNotFilterNumberWithDefaults() *NotFilterNumber

NewNotFilterNumberWithDefaults instantiates a new NotFilterNumber object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*NotFilterNumber) GetFilterField

func (o *NotFilterNumber) GetFilterField() string

GetFilterField returns the FilterField field value

func (*NotFilterNumber) GetFilterFieldOk

func (o *NotFilterNumber) GetFilterFieldOk() (*string, bool)

GetFilterFieldOk returns a tuple with the FilterField field value and a boolean to check if the value has been set.

func (*NotFilterNumber) GetFilterValue

func (o *NotFilterNumber) GetFilterValue() float32

GetFilterValue returns the FilterValue field value

func (*NotFilterNumber) GetFilterValueOk

func (o *NotFilterNumber) GetFilterValueOk() (*float32, bool)

GetFilterValueOk returns a tuple with the FilterValue field value and a boolean to check if the value has been set.

func (*NotFilterNumber) GetOperation

func (o *NotFilterNumber) GetOperation() string

GetOperation returns the Operation field value

func (*NotFilterNumber) GetOperationOk

func (o *NotFilterNumber) GetOperationOk() (*string, bool)

GetOperationOk returns a tuple with the Operation field value and a boolean to check if the value has been set.

func (NotFilterNumber) MarshalJSON

func (o NotFilterNumber) MarshalJSON() ([]byte, error)

func (*NotFilterNumber) SetFilterField

func (o *NotFilterNumber) SetFilterField(v string)

SetFilterField sets field value

func (*NotFilterNumber) SetFilterValue

func (o *NotFilterNumber) SetFilterValue(v float32)

SetFilterValue sets field value

func (*NotFilterNumber) SetOperation

func (o *NotFilterNumber) SetOperation(v string)

SetOperation sets field value

func (NotFilterNumber) ToMap

func (o NotFilterNumber) ToMap() (map[string]interface{}, error)

func (*NotFilterNumber) UnmarshalJSON

func (o *NotFilterNumber) UnmarshalJSON(data []byte) (err error)

type NotFilterString

type NotFilterString struct {
	FilterField string `json:"filter_field"`
	Operation   string `json:"operation"`
	FilterValue string `json:"filter_value"`
}

NotFilterString Query filter

func NewNotFilterString

func NewNotFilterString(filterField string, operation string, filterValue string) *NotFilterString

NewNotFilterString instantiates a new NotFilterString object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewNotFilterStringWithDefaults

func NewNotFilterStringWithDefaults() *NotFilterString

NewNotFilterStringWithDefaults instantiates a new NotFilterString object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*NotFilterString) GetFilterField

func (o *NotFilterString) GetFilterField() string

GetFilterField returns the FilterField field value

func (*NotFilterString) GetFilterFieldOk

func (o *NotFilterString) GetFilterFieldOk() (*string, bool)

GetFilterFieldOk returns a tuple with the FilterField field value and a boolean to check if the value has been set.

func (*NotFilterString) GetFilterValue

func (o *NotFilterString) GetFilterValue() string

GetFilterValue returns the FilterValue field value

func (*NotFilterString) GetFilterValueOk

func (o *NotFilterString) GetFilterValueOk() (*string, bool)

GetFilterValueOk returns a tuple with the FilterValue field value and a boolean to check if the value has been set.

func (*NotFilterString) GetOperation

func (o *NotFilterString) GetOperation() string

GetOperation returns the Operation field value

func (*NotFilterString) GetOperationOk

func (o *NotFilterString) GetOperationOk() (*string, bool)

GetOperationOk returns a tuple with the Operation field value and a boolean to check if the value has been set.

func (NotFilterString) MarshalJSON

func (o NotFilterString) MarshalJSON() ([]byte, error)

func (*NotFilterString) SetFilterField

func (o *NotFilterString) SetFilterField(v string)

SetFilterField sets field value

func (*NotFilterString) SetFilterValue

func (o *NotFilterString) SetFilterValue(v string)

SetFilterValue sets field value

func (*NotFilterString) SetOperation

func (o *NotFilterString) SetOperation(v string)

SetOperation sets field value

func (NotFilterString) ToMap

func (o NotFilterString) ToMap() (map[string]interface{}, error)

func (*NotFilterString) UnmarshalJSON

func (o *NotFilterString) UnmarshalJSON(data []byte) (err error)

type NullableAggregation

type NullableAggregation struct {
	// contains filtered or unexported fields
}

func NewNullableAggregation

func NewNullableAggregation(val *Aggregation) *NullableAggregation

func (NullableAggregation) Get

func (NullableAggregation) IsSet

func (v NullableAggregation) IsSet() bool

func (NullableAggregation) MarshalJSON

func (v NullableAggregation) MarshalJSON() ([]byte, error)

func (*NullableAggregation) Set

func (v *NullableAggregation) Set(val *Aggregation)

func (*NullableAggregation) UnmarshalJSON

func (v *NullableAggregation) UnmarshalJSON(src []byte) error

func (*NullableAggregation) Unset

func (v *NullableAggregation) Unset()

type NullableAggregationSortInnerValue

type NullableAggregationSortInnerValue struct {
	// contains filtered or unexported fields
}

func (NullableAggregationSortInnerValue) Get

func (NullableAggregationSortInnerValue) IsSet

func (NullableAggregationSortInnerValue) MarshalJSON

func (v NullableAggregationSortInnerValue) MarshalJSON() ([]byte, error)

func (*NullableAggregationSortInnerValue) Set

func (*NullableAggregationSortInnerValue) UnmarshalJSON

func (v *NullableAggregationSortInnerValue) UnmarshalJSON(src []byte) error

func (*NullableAggregationSortInnerValue) Unset

type NullableAggregationTerms

type NullableAggregationTerms struct {
	// contains filtered or unexported fields
}

func NewNullableAggregationTerms

func NewNullableAggregationTerms(val *AggregationTerms) *NullableAggregationTerms

func (NullableAggregationTerms) Get

func (NullableAggregationTerms) IsSet

func (v NullableAggregationTerms) IsSet() bool

func (NullableAggregationTerms) MarshalJSON

func (v NullableAggregationTerms) MarshalJSON() ([]byte, error)

func (*NullableAggregationTerms) Set

func (*NullableAggregationTerms) UnmarshalJSON

func (v *NullableAggregationTerms) UnmarshalJSON(src []byte) error

func (*NullableAggregationTerms) Unset

func (v *NullableAggregationTerms) Unset()

type NullableBool

type NullableBool struct {
	// contains filtered or unexported fields
}

func NewNullableBool

func NewNullableBool(val *bool) *NullableBool

func (NullableBool) Get

func (v NullableBool) Get() *bool

func (NullableBool) IsSet

func (v NullableBool) IsSet() bool

func (NullableBool) MarshalJSON

func (v NullableBool) MarshalJSON() ([]byte, error)

func (*NullableBool) Set

func (v *NullableBool) Set(val *bool)

func (*NullableBool) UnmarshalJSON

func (v *NullableBool) UnmarshalJSON(src []byte) error

func (*NullableBool) Unset

func (v *NullableBool) Unset()

type NullableBoolFilter

type NullableBoolFilter struct {
	// contains filtered or unexported fields
}

func NewNullableBoolFilter

func NewNullableBoolFilter(val *BoolFilter) *NullableBoolFilter

func (NullableBoolFilter) Get

func (v NullableBoolFilter) Get() *BoolFilter

func (NullableBoolFilter) IsSet

func (v NullableBoolFilter) IsSet() bool

func (NullableBoolFilter) MarshalJSON

func (v NullableBoolFilter) MarshalJSON() ([]byte, error)

func (*NullableBoolFilter) Set

func (v *NullableBoolFilter) Set(val *BoolFilter)

func (*NullableBoolFilter) UnmarshalJSON

func (v *NullableBoolFilter) UnmarshalJSON(src []byte) error

func (*NullableBoolFilter) Unset

func (v *NullableBoolFilter) Unset()

type NullableBulkResponse

type NullableBulkResponse struct {
	// contains filtered or unexported fields
}

func NewNullableBulkResponse

func NewNullableBulkResponse(val *BulkResponse) *NullableBulkResponse

func (NullableBulkResponse) Get

func (NullableBulkResponse) IsSet

func (v NullableBulkResponse) IsSet() bool

func (NullableBulkResponse) MarshalJSON

func (v NullableBulkResponse) MarshalJSON() ([]byte, error)

func (*NullableBulkResponse) Set

func (v *NullableBulkResponse) Set(val *BulkResponse)

func (*NullableBulkResponse) UnmarshalJSON

func (v *NullableBulkResponse) UnmarshalJSON(src []byte) error

func (*NullableBulkResponse) Unset

func (v *NullableBulkResponse) Unset()

type NullableDeleteDocumentRequest

type NullableDeleteDocumentRequest struct {
	// contains filtered or unexported fields
}

func (NullableDeleteDocumentRequest) Get

func (NullableDeleteDocumentRequest) IsSet

func (NullableDeleteDocumentRequest) MarshalJSON

func (v NullableDeleteDocumentRequest) MarshalJSON() ([]byte, error)

func (*NullableDeleteDocumentRequest) Set

func (*NullableDeleteDocumentRequest) UnmarshalJSON

func (v *NullableDeleteDocumentRequest) UnmarshalJSON(src []byte) error

func (*NullableDeleteDocumentRequest) Unset

func (v *NullableDeleteDocumentRequest) Unset()

type NullableDeleteResponse

type NullableDeleteResponse struct {
	// contains filtered or unexported fields
}

func NewNullableDeleteResponse

func NewNullableDeleteResponse(val *DeleteResponse) *NullableDeleteResponse

func (NullableDeleteResponse) Get

func (NullableDeleteResponse) IsSet

func (v NullableDeleteResponse) IsSet() bool

func (NullableDeleteResponse) MarshalJSON

func (v NullableDeleteResponse) MarshalJSON() ([]byte, error)

func (*NullableDeleteResponse) Set

func (*NullableDeleteResponse) UnmarshalJSON

func (v *NullableDeleteResponse) UnmarshalJSON(src []byte) error

func (*NullableDeleteResponse) Unset

func (v *NullableDeleteResponse) Unset()

type NullableEqualsFilter

type NullableEqualsFilter struct {
	// contains filtered or unexported fields
}

func NewNullableEqualsFilter

func NewNullableEqualsFilter(val *EqualsFilter) *NullableEqualsFilter

func (NullableEqualsFilter) Get

func (NullableEqualsFilter) IsSet

func (v NullableEqualsFilter) IsSet() bool

func (NullableEqualsFilter) MarshalJSON

func (v NullableEqualsFilter) MarshalJSON() ([]byte, error)

func (*NullableEqualsFilter) Set

func (v *NullableEqualsFilter) Set(val *EqualsFilter)

func (*NullableEqualsFilter) UnmarshalJSON

func (v *NullableEqualsFilter) UnmarshalJSON(src []byte) error

func (*NullableEqualsFilter) Unset

func (v *NullableEqualsFilter) Unset()

type NullableErrorResponse

type NullableErrorResponse struct {
	// contains filtered or unexported fields
}

func NewNullableErrorResponse

func NewNullableErrorResponse(val *ErrorResponse) *NullableErrorResponse

func (NullableErrorResponse) Get

func (NullableErrorResponse) IsSet

func (v NullableErrorResponse) IsSet() bool

func (NullableErrorResponse) MarshalJSON

func (v NullableErrorResponse) MarshalJSON() ([]byte, error)

func (*NullableErrorResponse) Set

func (v *NullableErrorResponse) Set(val *ErrorResponse)

func (*NullableErrorResponse) UnmarshalJSON

func (v *NullableErrorResponse) UnmarshalJSON(src []byte) error

func (*NullableErrorResponse) Unset

func (v *NullableErrorResponse) Unset()

type NullableErrorResponseString

type NullableErrorResponseString struct {
	// contains filtered or unexported fields
}

func NewNullableErrorResponseString

func NewNullableErrorResponseString(val *ErrorResponseString) *NullableErrorResponseString

func (NullableErrorResponseString) Get

func (NullableErrorResponseString) IsSet

func (NullableErrorResponseString) MarshalJSON

func (v NullableErrorResponseString) MarshalJSON() ([]byte, error)

func (*NullableErrorResponseString) Set

func (*NullableErrorResponseString) UnmarshalJSON

func (v *NullableErrorResponseString) UnmarshalJSON(src []byte) error

func (*NullableErrorResponseString) Unset

func (v *NullableErrorResponseString) Unset()

type NullableFacet

type NullableFacet struct {
	// contains filtered or unexported fields
}

func NewNullableFacet

func NewNullableFacet(val *Facet) *NullableFacet

func (NullableFacet) Get

func (v NullableFacet) Get() *Facet

func (NullableFacet) IsSet

func (v NullableFacet) IsSet() bool

func (NullableFacet) MarshalJSON

func (v NullableFacet) MarshalJSON() ([]byte, error)

func (*NullableFacet) Set

func (v *NullableFacet) Set(val *Facet)

func (*NullableFacet) UnmarshalJSON

func (v *NullableFacet) UnmarshalJSON(src []byte) error

func (*NullableFacet) Unset

func (v *NullableFacet) Unset()

type NullableFilterBoolean

type NullableFilterBoolean struct {
	// contains filtered or unexported fields
}

func NewNullableFilterBoolean

func NewNullableFilterBoolean(val *FilterBoolean) *NullableFilterBoolean

func (NullableFilterBoolean) Get

func (NullableFilterBoolean) IsSet

func (v NullableFilterBoolean) IsSet() bool

func (NullableFilterBoolean) MarshalJSON

func (v NullableFilterBoolean) MarshalJSON() ([]byte, error)

func (*NullableFilterBoolean) Set

func (v *NullableFilterBoolean) Set(val *FilterBoolean)

func (*NullableFilterBoolean) UnmarshalJSON

func (v *NullableFilterBoolean) UnmarshalJSON(src []byte) error

func (*NullableFilterBoolean) Unset

func (v *NullableFilterBoolean) Unset()

type NullableFilterNumber

type NullableFilterNumber struct {
	// contains filtered or unexported fields
}

func NewNullableFilterNumber

func NewNullableFilterNumber(val *FilterNumber) *NullableFilterNumber

func (NullableFilterNumber) Get

func (NullableFilterNumber) IsSet

func (v NullableFilterNumber) IsSet() bool

func (NullableFilterNumber) MarshalJSON

func (v NullableFilterNumber) MarshalJSON() ([]byte, error)

func (*NullableFilterNumber) Set

func (v *NullableFilterNumber) Set(val *FilterNumber)

func (*NullableFilterNumber) UnmarshalJSON

func (v *NullableFilterNumber) UnmarshalJSON(src []byte) error

func (*NullableFilterNumber) Unset

func (v *NullableFilterNumber) Unset()

type NullableFilterString

type NullableFilterString struct {
	// contains filtered or unexported fields
}

func NewNullableFilterString

func NewNullableFilterString(val *FilterString) *NullableFilterString

func (NullableFilterString) Get

func (NullableFilterString) IsSet

func (v NullableFilterString) IsSet() bool

func (NullableFilterString) MarshalJSON

func (v NullableFilterString) MarshalJSON() ([]byte, error)

func (*NullableFilterString) Set

func (v *NullableFilterString) Set(val *FilterString)

func (*NullableFilterString) UnmarshalJSON

func (v *NullableFilterString) UnmarshalJSON(src []byte) error

func (*NullableFilterString) Unset

func (v *NullableFilterString) Unset()

type NullableFloat32

type NullableFloat32 struct {
	// contains filtered or unexported fields
}

func NewNullableFloat32

func NewNullableFloat32(val *float32) *NullableFloat32

func (NullableFloat32) Get

func (v NullableFloat32) Get() *float32

func (NullableFloat32) IsSet

func (v NullableFloat32) IsSet() bool

func (NullableFloat32) MarshalJSON

func (v NullableFloat32) MarshalJSON() ([]byte, error)

func (*NullableFloat32) Set

func (v *NullableFloat32) Set(val *float32)

func (*NullableFloat32) UnmarshalJSON

func (v *NullableFloat32) UnmarshalJSON(src []byte) error

func (*NullableFloat32) Unset

func (v *NullableFloat32) Unset()

type NullableFloat64

type NullableFloat64 struct {
	// contains filtered or unexported fields
}

func NewNullableFloat64

func NewNullableFloat64(val *float64) *NullableFloat64

func (NullableFloat64) Get

func (v NullableFloat64) Get() *float64

func (NullableFloat64) IsSet

func (v NullableFloat64) IsSet() bool

func (NullableFloat64) MarshalJSON

func (v NullableFloat64) MarshalJSON() ([]byte, error)

func (*NullableFloat64) Set

func (v *NullableFloat64) Set(val *float64)

func (*NullableFloat64) UnmarshalJSON

func (v *NullableFloat64) UnmarshalJSON(src []byte) error

func (*NullableFloat64) Unset

func (v *NullableFloat64) Unset()

type NullableGeoDistanceFilter

type NullableGeoDistanceFilter struct {
	// contains filtered or unexported fields
}

func NewNullableGeoDistanceFilter

func NewNullableGeoDistanceFilter(val *GeoDistanceFilter) *NullableGeoDistanceFilter

func (NullableGeoDistanceFilter) Get

func (NullableGeoDistanceFilter) IsSet

func (v NullableGeoDistanceFilter) IsSet() bool

func (NullableGeoDistanceFilter) MarshalJSON

func (v NullableGeoDistanceFilter) MarshalJSON() ([]byte, error)

func (*NullableGeoDistanceFilter) Set

func (*NullableGeoDistanceFilter) UnmarshalJSON

func (v *NullableGeoDistanceFilter) UnmarshalJSON(src []byte) error

func (*NullableGeoDistanceFilter) Unset

func (v *NullableGeoDistanceFilter) Unset()

type NullableGeoDistanceFilterLocationAnchor

type NullableGeoDistanceFilterLocationAnchor struct {
	// contains filtered or unexported fields
}

func (NullableGeoDistanceFilterLocationAnchor) Get

func (NullableGeoDistanceFilterLocationAnchor) IsSet

func (NullableGeoDistanceFilterLocationAnchor) MarshalJSON

func (v NullableGeoDistanceFilterLocationAnchor) MarshalJSON() ([]byte, error)

func (*NullableGeoDistanceFilterLocationAnchor) Set

func (*NullableGeoDistanceFilterLocationAnchor) UnmarshalJSON

func (v *NullableGeoDistanceFilterLocationAnchor) UnmarshalJSON(src []byte) error

func (*NullableGeoDistanceFilterLocationAnchor) Unset

type NullableHighlight

type NullableHighlight struct {
	// contains filtered or unexported fields
}

func NewNullableHighlight

func NewNullableHighlight(val *Highlight) *NullableHighlight

func (NullableHighlight) Get

func (v NullableHighlight) Get() *Highlight

func (NullableHighlight) IsSet

func (v NullableHighlight) IsSet() bool

func (NullableHighlight) MarshalJSON

func (v NullableHighlight) MarshalJSON() ([]byte, error)

func (*NullableHighlight) Set

func (v *NullableHighlight) Set(val *Highlight)

func (*NullableHighlight) UnmarshalJSON

func (v *NullableHighlight) UnmarshalJSON(src []byte) error

func (*NullableHighlight) Unset

func (v *NullableHighlight) Unset()

type NullableHighlightField

type NullableHighlightField struct {
	// contains filtered or unexported fields
}

func NewNullableHighlightField

func NewNullableHighlightField(val *HighlightField) *NullableHighlightField

func (NullableHighlightField) Get

func (NullableHighlightField) IsSet

func (v NullableHighlightField) IsSet() bool

func (NullableHighlightField) MarshalJSON

func (v NullableHighlightField) MarshalJSON() ([]byte, error)

func (*NullableHighlightField) Set

func (*NullableHighlightField) UnmarshalJSON

func (v *NullableHighlightField) UnmarshalJSON(src []byte) error

func (*NullableHighlightField) Unset

func (v *NullableHighlightField) Unset()

type NullableInFilter

type NullableInFilter struct {
	// contains filtered or unexported fields
}

func NewNullableInFilter

func NewNullableInFilter(val *InFilter) *NullableInFilter

func (NullableInFilter) Get

func (v NullableInFilter) Get() *InFilter

func (NullableInFilter) IsSet

func (v NullableInFilter) IsSet() bool

func (NullableInFilter) MarshalJSON

func (v NullableInFilter) MarshalJSON() ([]byte, error)

func (*NullableInFilter) Set

func (v *NullableInFilter) Set(val *InFilter)

func (*NullableInFilter) UnmarshalJSON

func (v *NullableInFilter) UnmarshalJSON(src []byte) error

func (*NullableInFilter) Unset

func (v *NullableInFilter) Unset()

type NullableInsertDocumentRequest

type NullableInsertDocumentRequest struct {
	// contains filtered or unexported fields
}

func (NullableInsertDocumentRequest) Get

func (NullableInsertDocumentRequest) IsSet

func (NullableInsertDocumentRequest) MarshalJSON

func (v NullableInsertDocumentRequest) MarshalJSON() ([]byte, error)

func (*NullableInsertDocumentRequest) Set

func (*NullableInsertDocumentRequest) UnmarshalJSON

func (v *NullableInsertDocumentRequest) UnmarshalJSON(src []byte) error

func (*NullableInsertDocumentRequest) Unset

func (v *NullableInsertDocumentRequest) Unset()

type NullableInt

type NullableInt struct {
	// contains filtered or unexported fields
}

func NewNullableInt

func NewNullableInt(val *int) *NullableInt

func (NullableInt) Get

func (v NullableInt) Get() *int

func (NullableInt) IsSet

func (v NullableInt) IsSet() bool

func (NullableInt) MarshalJSON

func (v NullableInt) MarshalJSON() ([]byte, error)

func (*NullableInt) Set

func (v *NullableInt) Set(val *int)

func (*NullableInt) UnmarshalJSON

func (v *NullableInt) UnmarshalJSON(src []byte) error

func (*NullableInt) Unset

func (v *NullableInt) Unset()

type NullableInt32

type NullableInt32 struct {
	// contains filtered or unexported fields
}

func NewNullableInt32

func NewNullableInt32(val *int32) *NullableInt32

func (NullableInt32) Get

func (v NullableInt32) Get() *int32

func (NullableInt32) IsSet

func (v NullableInt32) IsSet() bool

func (NullableInt32) MarshalJSON

func (v NullableInt32) MarshalJSON() ([]byte, error)

func (*NullableInt32) Set

func (v *NullableInt32) Set(val *int32)

func (*NullableInt32) UnmarshalJSON

func (v *NullableInt32) UnmarshalJSON(src []byte) error

func (*NullableInt32) Unset

func (v *NullableInt32) Unset()

type NullableInt64

type NullableInt64 struct {
	// contains filtered or unexported fields
}

func NewNullableInt64

func NewNullableInt64(val *int64) *NullableInt64

func (NullableInt64) Get

func (v NullableInt64) Get() *int64

func (NullableInt64) IsSet

func (v NullableInt64) IsSet() bool

func (NullableInt64) MarshalJSON

func (v NullableInt64) MarshalJSON() ([]byte, error)

func (*NullableInt64) Set

func (v *NullableInt64) Set(val *int64)

func (*NullableInt64) UnmarshalJSON

func (v *NullableInt64) UnmarshalJSON(src []byte) error

func (*NullableInt64) Unset

func (v *NullableInt64) Unset()

type NullableKnnSearchRequestByDocId

type NullableKnnSearchRequestByDocId struct {
	// contains filtered or unexported fields
}

func (NullableKnnSearchRequestByDocId) Get

func (NullableKnnSearchRequestByDocId) IsSet

func (NullableKnnSearchRequestByDocId) MarshalJSON

func (v NullableKnnSearchRequestByDocId) MarshalJSON() ([]byte, error)

func (*NullableKnnSearchRequestByDocId) Set

func (*NullableKnnSearchRequestByDocId) UnmarshalJSON

func (v *NullableKnnSearchRequestByDocId) UnmarshalJSON(src []byte) error

func (*NullableKnnSearchRequestByDocId) Unset

type NullableKnnSearchRequestByVector

type NullableKnnSearchRequestByVector struct {
	// contains filtered or unexported fields
}

func (NullableKnnSearchRequestByVector) Get

func (NullableKnnSearchRequestByVector) IsSet

func (NullableKnnSearchRequestByVector) MarshalJSON

func (v NullableKnnSearchRequestByVector) MarshalJSON() ([]byte, error)

func (*NullableKnnSearchRequestByVector) Set

func (*NullableKnnSearchRequestByVector) UnmarshalJSON

func (v *NullableKnnSearchRequestByVector) UnmarshalJSON(src []byte) error

func (*NullableKnnSearchRequestByVector) Unset

type NullableMatchFilter

type NullableMatchFilter struct {
	// contains filtered or unexported fields
}

func NewNullableMatchFilter

func NewNullableMatchFilter(val *MatchFilter) *NullableMatchFilter

func (NullableMatchFilter) Get

func (NullableMatchFilter) IsSet

func (v NullableMatchFilter) IsSet() bool

func (NullableMatchFilter) MarshalJSON

func (v NullableMatchFilter) MarshalJSON() ([]byte, error)

func (*NullableMatchFilter) Set

func (v *NullableMatchFilter) Set(val *MatchFilter)

func (*NullableMatchFilter) UnmarshalJSON

func (v *NullableMatchFilter) UnmarshalJSON(src []byte) error

func (*NullableMatchFilter) Unset

func (v *NullableMatchFilter) Unset()

type NullableMatchOp

type NullableMatchOp struct {
	// contains filtered or unexported fields
}

func NewNullableMatchOp

func NewNullableMatchOp(val *MatchOp) *NullableMatchOp

func (NullableMatchOp) Get

func (v NullableMatchOp) Get() *MatchOp

func (NullableMatchOp) IsSet

func (v NullableMatchOp) IsSet() bool

func (NullableMatchOp) MarshalJSON

func (v NullableMatchOp) MarshalJSON() ([]byte, error)

func (*NullableMatchOp) Set

func (v *NullableMatchOp) Set(val *MatchOp)

func (*NullableMatchOp) UnmarshalJSON

func (v *NullableMatchOp) UnmarshalJSON(src []byte) error

func (*NullableMatchOp) Unset

func (v *NullableMatchOp) Unset()

type NullableMatchOpFilter

type NullableMatchOpFilter struct {
	// contains filtered or unexported fields
}

func NewNullableMatchOpFilter

func NewNullableMatchOpFilter(val *MatchOpFilter) *NullableMatchOpFilter

func (NullableMatchOpFilter) Get

func (NullableMatchOpFilter) IsSet

func (v NullableMatchOpFilter) IsSet() bool

func (NullableMatchOpFilter) MarshalJSON

func (v NullableMatchOpFilter) MarshalJSON() ([]byte, error)

func (*NullableMatchOpFilter) Set

func (v *NullableMatchOpFilter) Set(val *MatchOpFilter)

func (*NullableMatchOpFilter) UnmarshalJSON

func (v *NullableMatchOpFilter) UnmarshalJSON(src []byte) error

func (*NullableMatchOpFilter) Unset

func (v *NullableMatchOpFilter) Unset()

type NullableMatchPhraseFilter

type NullableMatchPhraseFilter struct {
	// contains filtered or unexported fields
}

func NewNullableMatchPhraseFilter

func NewNullableMatchPhraseFilter(val *MatchPhraseFilter) *NullableMatchPhraseFilter

func (NullableMatchPhraseFilter) Get

func (NullableMatchPhraseFilter) IsSet

func (v NullableMatchPhraseFilter) IsSet() bool

func (NullableMatchPhraseFilter) MarshalJSON

func (v NullableMatchPhraseFilter) MarshalJSON() ([]byte, error)

func (*NullableMatchPhraseFilter) Set

func (*NullableMatchPhraseFilter) UnmarshalJSON

func (v *NullableMatchPhraseFilter) UnmarshalJSON(src []byte) error

func (*NullableMatchPhraseFilter) Unset

func (v *NullableMatchPhraseFilter) Unset()

type NullableNotFilterBoolean

type NullableNotFilterBoolean struct {
	// contains filtered or unexported fields
}

func NewNullableNotFilterBoolean

func NewNullableNotFilterBoolean(val *NotFilterBoolean) *NullableNotFilterBoolean

func (NullableNotFilterBoolean) Get

func (NullableNotFilterBoolean) IsSet

func (v NullableNotFilterBoolean) IsSet() bool

func (NullableNotFilterBoolean) MarshalJSON

func (v NullableNotFilterBoolean) MarshalJSON() ([]byte, error)

func (*NullableNotFilterBoolean) Set

func (*NullableNotFilterBoolean) UnmarshalJSON

func (v *NullableNotFilterBoolean) UnmarshalJSON(src []byte) error

func (*NullableNotFilterBoolean) Unset

func (v *NullableNotFilterBoolean) Unset()

type NullableNotFilterNumber

type NullableNotFilterNumber struct {
	// contains filtered or unexported fields
}

func NewNullableNotFilterNumber

func NewNullableNotFilterNumber(val *NotFilterNumber) *NullableNotFilterNumber

func (NullableNotFilterNumber) Get

func (NullableNotFilterNumber) IsSet

func (v NullableNotFilterNumber) IsSet() bool

func (NullableNotFilterNumber) MarshalJSON

func (v NullableNotFilterNumber) MarshalJSON() ([]byte, error)

func (*NullableNotFilterNumber) Set

func (*NullableNotFilterNumber) UnmarshalJSON

func (v *NullableNotFilterNumber) UnmarshalJSON(src []byte) error

func (*NullableNotFilterNumber) Unset

func (v *NullableNotFilterNumber) Unset()

type NullableNotFilterString

type NullableNotFilterString struct {
	// contains filtered or unexported fields
}

func NewNullableNotFilterString

func NewNullableNotFilterString(val *NotFilterString) *NullableNotFilterString

func (NullableNotFilterString) Get

func (NullableNotFilterString) IsSet

func (v NullableNotFilterString) IsSet() bool

func (NullableNotFilterString) MarshalJSON

func (v NullableNotFilterString) MarshalJSON() ([]byte, error)

func (*NullableNotFilterString) Set

func (*NullableNotFilterString) UnmarshalJSON

func (v *NullableNotFilterString) UnmarshalJSON(src []byte) error

func (*NullableNotFilterString) Unset

func (v *NullableNotFilterString) Unset()

type NullablePercolateRequest

type NullablePercolateRequest struct {
	// contains filtered or unexported fields
}

func NewNullablePercolateRequest

func NewNullablePercolateRequest(val *PercolateRequest) *NullablePercolateRequest

func (NullablePercolateRequest) Get

func (NullablePercolateRequest) IsSet

func (v NullablePercolateRequest) IsSet() bool

func (NullablePercolateRequest) MarshalJSON

func (v NullablePercolateRequest) MarshalJSON() ([]byte, error)

func (*NullablePercolateRequest) Set

func (*NullablePercolateRequest) UnmarshalJSON

func (v *NullablePercolateRequest) UnmarshalJSON(src []byte) error

func (*NullablePercolateRequest) Unset

func (v *NullablePercolateRequest) Unset()

type NullablePercolateRequestQuery

type NullablePercolateRequestQuery struct {
	// contains filtered or unexported fields
}

func (NullablePercolateRequestQuery) Get

func (NullablePercolateRequestQuery) IsSet

func (NullablePercolateRequestQuery) MarshalJSON

func (v NullablePercolateRequestQuery) MarshalJSON() ([]byte, error)

func (*NullablePercolateRequestQuery) Set

func (*NullablePercolateRequestQuery) UnmarshalJSON

func (v *NullablePercolateRequestQuery) UnmarshalJSON(src []byte) error

func (*NullablePercolateRequestQuery) Unset

func (v *NullablePercolateRequestQuery) Unset()

type NullableQueryFilter

type NullableQueryFilter struct {
	// contains filtered or unexported fields
}

func NewNullableQueryFilter

func NewNullableQueryFilter(val *QueryFilter) *NullableQueryFilter

func (NullableQueryFilter) Get

func (NullableQueryFilter) IsSet

func (v NullableQueryFilter) IsSet() bool

func (NullableQueryFilter) MarshalJSON

func (v NullableQueryFilter) MarshalJSON() ([]byte, error)

func (*NullableQueryFilter) Set

func (v *NullableQueryFilter) Set(val *QueryFilter)

func (*NullableQueryFilter) UnmarshalJSON

func (v *NullableQueryFilter) UnmarshalJSON(src []byte) error

func (*NullableQueryFilter) Unset

func (v *NullableQueryFilter) Unset()

type NullableRangeFilter

type NullableRangeFilter struct {
	// contains filtered or unexported fields
}

func NewNullableRangeFilter

func NewNullableRangeFilter(val *RangeFilter) *NullableRangeFilter

func (NullableRangeFilter) Get

func (NullableRangeFilter) IsSet

func (v NullableRangeFilter) IsSet() bool

func (NullableRangeFilter) MarshalJSON

func (v NullableRangeFilter) MarshalJSON() ([]byte, error)

func (*NullableRangeFilter) Set

func (v *NullableRangeFilter) Set(val *RangeFilter)

func (*NullableRangeFilter) UnmarshalJSON

func (v *NullableRangeFilter) UnmarshalJSON(src []byte) error

func (*NullableRangeFilter) Unset

func (v *NullableRangeFilter) Unset()

type NullableSearchRequest

type NullableSearchRequest struct {
	// contains filtered or unexported fields
}

func NewNullableSearchRequest

func NewNullableSearchRequest(val *SearchRequest) *NullableSearchRequest

func (NullableSearchRequest) Get

func (NullableSearchRequest) IsSet

func (v NullableSearchRequest) IsSet() bool

func (NullableSearchRequest) MarshalJSON

func (v NullableSearchRequest) MarshalJSON() ([]byte, error)

func (*NullableSearchRequest) Set

func (v *NullableSearchRequest) Set(val *SearchRequest)

func (*NullableSearchRequest) UnmarshalJSON

func (v *NullableSearchRequest) UnmarshalJSON(src []byte) error

func (*NullableSearchRequest) Unset

func (v *NullableSearchRequest) Unset()

type NullableSearchResponse

type NullableSearchResponse struct {
	// contains filtered or unexported fields
}

func NewNullableSearchResponse

func NewNullableSearchResponse(val *SearchResponse) *NullableSearchResponse

func (NullableSearchResponse) Get

func (NullableSearchResponse) IsSet

func (v NullableSearchResponse) IsSet() bool

func (NullableSearchResponse) MarshalJSON

func (v NullableSearchResponse) MarshalJSON() ([]byte, error)

func (*NullableSearchResponse) Set

func (*NullableSearchResponse) UnmarshalJSON

func (v *NullableSearchResponse) UnmarshalJSON(src []byte) error

func (*NullableSearchResponse) Unset

func (v *NullableSearchResponse) Unset()

type NullableSearchResponseHits

type NullableSearchResponseHits struct {
	// contains filtered or unexported fields
}

func NewNullableSearchResponseHits

func NewNullableSearchResponseHits(val *SearchResponseHits) *NullableSearchResponseHits

func (NullableSearchResponseHits) Get

func (NullableSearchResponseHits) IsSet

func (v NullableSearchResponseHits) IsSet() bool

func (NullableSearchResponseHits) MarshalJSON

func (v NullableSearchResponseHits) MarshalJSON() ([]byte, error)

func (*NullableSearchResponseHits) Set

func (*NullableSearchResponseHits) UnmarshalJSON

func (v *NullableSearchResponseHits) UnmarshalJSON(src []byte) error

func (*NullableSearchResponseHits) Unset

func (v *NullableSearchResponseHits) Unset()

type NullableSortMVA

type NullableSortMVA struct {
	// contains filtered or unexported fields
}

func NewNullableSortMVA

func NewNullableSortMVA(val *SortMVA) *NullableSortMVA

func (NullableSortMVA) Get

func (v NullableSortMVA) Get() *SortMVA

func (NullableSortMVA) IsSet

func (v NullableSortMVA) IsSet() bool

func (NullableSortMVA) MarshalJSON

func (v NullableSortMVA) MarshalJSON() ([]byte, error)

func (*NullableSortMVA) Set

func (v *NullableSortMVA) Set(val *SortMVA)

func (*NullableSortMVA) UnmarshalJSON

func (v *NullableSortMVA) UnmarshalJSON(src []byte) error

func (*NullableSortMVA) Unset

func (v *NullableSortMVA) Unset()

type NullableSortMultiple

type NullableSortMultiple struct {
	// contains filtered or unexported fields
}

func NewNullableSortMultiple

func NewNullableSortMultiple(val *SortMultiple) *NullableSortMultiple

func (NullableSortMultiple) Get

func (NullableSortMultiple) IsSet

func (v NullableSortMultiple) IsSet() bool

func (NullableSortMultiple) MarshalJSON

func (v NullableSortMultiple) MarshalJSON() ([]byte, error)

func (*NullableSortMultiple) Set

func (v *NullableSortMultiple) Set(val *SortMultiple)

func (*NullableSortMultiple) UnmarshalJSON

func (v *NullableSortMultiple) UnmarshalJSON(src []byte) error

func (*NullableSortMultiple) Unset

func (v *NullableSortMultiple) Unset()

type NullableSortOrder

type NullableSortOrder struct {
	// contains filtered or unexported fields
}

func NewNullableSortOrder

func NewNullableSortOrder(val *SortOrder) *NullableSortOrder

func (NullableSortOrder) Get

func (v NullableSortOrder) Get() *SortOrder

func (NullableSortOrder) IsSet

func (v NullableSortOrder) IsSet() bool

func (NullableSortOrder) MarshalJSON

func (v NullableSortOrder) MarshalJSON() ([]byte, error)

func (*NullableSortOrder) Set

func (v *NullableSortOrder) Set(val *SortOrder)

func (*NullableSortOrder) UnmarshalJSON

func (v *NullableSortOrder) UnmarshalJSON(src []byte) error

func (*NullableSortOrder) Unset

func (v *NullableSortOrder) Unset()

type NullableSourceByRules

type NullableSourceByRules struct {
	// contains filtered or unexported fields
}

func NewNullableSourceByRules

func NewNullableSourceByRules(val *SourceByRules) *NullableSourceByRules

func (NullableSourceByRules) Get

func (NullableSourceByRules) IsSet

func (v NullableSourceByRules) IsSet() bool

func (NullableSourceByRules) MarshalJSON

func (v NullableSourceByRules) MarshalJSON() ([]byte, error)

func (*NullableSourceByRules) Set

func (v *NullableSourceByRules) Set(val *SourceByRules)

func (*NullableSourceByRules) UnmarshalJSON

func (v *NullableSourceByRules) UnmarshalJSON(src []byte) error

func (*NullableSourceByRules) Unset

func (v *NullableSourceByRules) Unset()

type NullableSqlDefaultResponse

type NullableSqlDefaultResponse struct {
	// contains filtered or unexported fields
}

func NewNullableSqlDefaultResponse

func NewNullableSqlDefaultResponse(val *SqlDefaultResponse) *NullableSqlDefaultResponse

func (NullableSqlDefaultResponse) Get

func (NullableSqlDefaultResponse) IsSet

func (v NullableSqlDefaultResponse) IsSet() bool

func (NullableSqlDefaultResponse) MarshalJSON

func (v NullableSqlDefaultResponse) MarshalJSON() ([]byte, error)

func (*NullableSqlDefaultResponse) Set

func (*NullableSqlDefaultResponse) UnmarshalJSON

func (v *NullableSqlDefaultResponse) UnmarshalJSON(src []byte) error

func (*NullableSqlDefaultResponse) Unset

func (v *NullableSqlDefaultResponse) Unset()

type NullableString

type NullableString struct {
	// contains filtered or unexported fields
}

func NewNullableString

func NewNullableString(val *string) *NullableString

func (NullableString) Get

func (v NullableString) Get() *string

func (NullableString) IsSet

func (v NullableString) IsSet() bool

func (NullableString) MarshalJSON

func (v NullableString) MarshalJSON() ([]byte, error)

func (*NullableString) Set

func (v *NullableString) Set(val *string)

func (*NullableString) UnmarshalJSON

func (v *NullableString) UnmarshalJSON(src []byte) error

func (*NullableString) Unset

func (v *NullableString) Unset()

type NullableSuccessResponse

type NullableSuccessResponse struct {
	// contains filtered or unexported fields
}

func NewNullableSuccessResponse

func NewNullableSuccessResponse(val *SuccessResponse) *NullableSuccessResponse

func (NullableSuccessResponse) Get

func (NullableSuccessResponse) IsSet

func (v NullableSuccessResponse) IsSet() bool

func (NullableSuccessResponse) MarshalJSON

func (v NullableSuccessResponse) MarshalJSON() ([]byte, error)

func (*NullableSuccessResponse) Set

func (*NullableSuccessResponse) UnmarshalJSON

func (v *NullableSuccessResponse) UnmarshalJSON(src []byte) error

func (*NullableSuccessResponse) Unset

func (v *NullableSuccessResponse) Unset()

type NullableTime

type NullableTime struct {
	// contains filtered or unexported fields
}

func NewNullableTime

func NewNullableTime(val *time.Time) *NullableTime

func (NullableTime) Get

func (v NullableTime) Get() *time.Time

func (NullableTime) IsSet

func (v NullableTime) IsSet() bool

func (NullableTime) MarshalJSON

func (v NullableTime) MarshalJSON() ([]byte, error)

func (*NullableTime) Set

func (v *NullableTime) Set(val *time.Time)

func (*NullableTime) UnmarshalJSON

func (v *NullableTime) UnmarshalJSON(src []byte) error

func (*NullableTime) Unset

func (v *NullableTime) Unset()

type NullableUpdateDocumentRequest

type NullableUpdateDocumentRequest struct {
	// contains filtered or unexported fields
}

func (NullableUpdateDocumentRequest) Get

func (NullableUpdateDocumentRequest) IsSet

func (NullableUpdateDocumentRequest) MarshalJSON

func (v NullableUpdateDocumentRequest) MarshalJSON() ([]byte, error)

func (*NullableUpdateDocumentRequest) Set

func (*NullableUpdateDocumentRequest) UnmarshalJSON

func (v *NullableUpdateDocumentRequest) UnmarshalJSON(src []byte) error

func (*NullableUpdateDocumentRequest) Unset

func (v *NullableUpdateDocumentRequest) Unset()

type NullableUpdateResponse

type NullableUpdateResponse struct {
	// contains filtered or unexported fields
}

func NewNullableUpdateResponse

func NewNullableUpdateResponse(val *UpdateResponse) *NullableUpdateResponse

func (NullableUpdateResponse) Get

func (NullableUpdateResponse) IsSet

func (v NullableUpdateResponse) IsSet() bool

func (NullableUpdateResponse) MarshalJSON

func (v NullableUpdateResponse) MarshalJSON() ([]byte, error)

func (*NullableUpdateResponse) Set

func (*NullableUpdateResponse) UnmarshalJSON

func (v *NullableUpdateResponse) UnmarshalJSON(src []byte) error

func (*NullableUpdateResponse) Unset

func (v *NullableUpdateResponse) Unset()

type PercolateRequest

type PercolateRequest struct {
	Query PercolateRequestQuery `json:"query"`
}

PercolateRequest Object with documents to percolate

func NewPercolateRequest

func NewPercolateRequest(query PercolateRequestQuery) *PercolateRequest

NewPercolateRequest instantiates a new PercolateRequest object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewPercolateRequestWithDefaults

func NewPercolateRequestWithDefaults() *PercolateRequest

NewPercolateRequestWithDefaults instantiates a new PercolateRequest object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*PercolateRequest) GetQuery

GetQuery returns the Query field value

func (*PercolateRequest) GetQueryOk

func (o *PercolateRequest) GetQueryOk() (*PercolateRequestQuery, bool)

GetQueryOk returns a tuple with the Query field value and a boolean to check if the value has been set.

func (PercolateRequest) MarshalJSON

func (o PercolateRequest) MarshalJSON() ([]byte, error)

func (*PercolateRequest) SetQuery

func (o *PercolateRequest) SetQuery(v PercolateRequestQuery)

SetQuery sets field value

func (PercolateRequest) ToMap

func (o PercolateRequest) ToMap() (map[string]interface{}, error)

func (*PercolateRequest) UnmarshalJSON

func (o *PercolateRequest) UnmarshalJSON(data []byte) (err error)

type PercolateRequestQuery

type PercolateRequestQuery struct {
	Percolate            map[string]interface{} `json:"percolate"`
	AdditionalProperties map[string]interface{}
}

PercolateRequestQuery struct for PercolateRequestQuery

func NewPercolateRequestQuery

func NewPercolateRequestQuery(percolate map[string]interface{}) *PercolateRequestQuery

NewPercolateRequestQuery instantiates a new PercolateRequestQuery object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewPercolateRequestQueryWithDefaults

func NewPercolateRequestQueryWithDefaults() *PercolateRequestQuery

NewPercolateRequestQueryWithDefaults instantiates a new PercolateRequestQuery object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*PercolateRequestQuery) GetPercolate

func (o *PercolateRequestQuery) GetPercolate() map[string]interface{}

GetPercolate returns the Percolate field value

func (*PercolateRequestQuery) GetPercolateOk

func (o *PercolateRequestQuery) GetPercolateOk() (map[string]interface{}, bool)

GetPercolateOk returns a tuple with the Percolate field value and a boolean to check if the value has been set.

func (PercolateRequestQuery) MarshalJSON

func (o PercolateRequestQuery) MarshalJSON() ([]byte, error)

func (*PercolateRequestQuery) SetPercolate

func (o *PercolateRequestQuery) SetPercolate(v map[string]interface{})

SetPercolate sets field value

func (PercolateRequestQuery) ToMap

func (o PercolateRequestQuery) ToMap() (map[string]interface{}, error)

func (*PercolateRequestQuery) UnmarshalJSON

func (o *PercolateRequestQuery) UnmarshalJSON(data []byte) (err error)

type QueryFilter

type QueryFilter struct {
	QueryString string `json:"query_string"`
}

QueryFilter Query string filter

func NewQueryFilter

func NewQueryFilter(queryString string) *QueryFilter

NewQueryFilter instantiates a new QueryFilter object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewQueryFilterWithDefaults

func NewQueryFilterWithDefaults() *QueryFilter

NewQueryFilterWithDefaults instantiates a new QueryFilter object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*QueryFilter) GetQueryString

func (o *QueryFilter) GetQueryString() string

GetQueryString returns the QueryString field value

func (*QueryFilter) GetQueryStringOk

func (o *QueryFilter) GetQueryStringOk() (*string, bool)

GetQueryStringOk returns a tuple with the QueryString field value and a boolean to check if the value has been set.

func (QueryFilter) MarshalJSON

func (o QueryFilter) MarshalJSON() ([]byte, error)

func (*QueryFilter) SetQueryString

func (o *QueryFilter) SetQueryString(v string)

SetQueryString sets field value

func (QueryFilter) ToMap

func (o QueryFilter) ToMap() (map[string]interface{}, error)

func (*QueryFilter) UnmarshalJSON

func (o *QueryFilter) UnmarshalJSON(data []byte) (err error)

type RangeFilter

type RangeFilter struct {
	Field string          `json:"field"`
	Lte   NullableFloat32 `json:"lte,omitempty"`
	Gte   NullableFloat32 `json:"gte,omitempty"`
	Lt    NullableFloat32 `json:"lt,omitempty"`
	Gt    NullableFloat32 `json:"gt,omitempty"`
}

RangeFilter Range attribute filter

func NewRangeFilter

func NewRangeFilter(field string) *RangeFilter

NewRangeFilter instantiates a new RangeFilter object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewRangeFilterWithDefaults

func NewRangeFilterWithDefaults() *RangeFilter

NewRangeFilterWithDefaults instantiates a new RangeFilter object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*RangeFilter) GetField

func (o *RangeFilter) GetField() string

GetField returns the Field field value

func (*RangeFilter) GetFieldOk

func (o *RangeFilter) GetFieldOk() (*string, bool)

GetFieldOk returns a tuple with the Field field value and a boolean to check if the value has been set.

func (*RangeFilter) GetGt

func (o *RangeFilter) GetGt() float32

GetGt returns the Gt field value if set, zero value otherwise (both if not set or set to explicit null).

func (*RangeFilter) GetGtOk

func (o *RangeFilter) GetGtOk() (*float32, bool)

GetGtOk returns a tuple with the Gt field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*RangeFilter) GetGte

func (o *RangeFilter) GetGte() float32

GetGte returns the Gte field value if set, zero value otherwise (both if not set or set to explicit null).

func (*RangeFilter) GetGteOk

func (o *RangeFilter) GetGteOk() (*float32, bool)

GetGteOk returns a tuple with the Gte field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*RangeFilter) GetLt

func (o *RangeFilter) GetLt() float32

GetLt returns the Lt field value if set, zero value otherwise (both if not set or set to explicit null).

func (*RangeFilter) GetLtOk

func (o *RangeFilter) GetLtOk() (*float32, bool)

GetLtOk returns a tuple with the Lt field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*RangeFilter) GetLte

func (o *RangeFilter) GetLte() float32

GetLte returns the Lte field value if set, zero value otherwise (both if not set or set to explicit null).

func (*RangeFilter) GetLteOk

func (o *RangeFilter) GetLteOk() (*float32, bool)

GetLteOk returns a tuple with the Lte field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*RangeFilter) HasGt

func (o *RangeFilter) HasGt() bool

HasGt returns a boolean if a field has been set.

func (*RangeFilter) HasGte

func (o *RangeFilter) HasGte() bool

HasGte returns a boolean if a field has been set.

func (*RangeFilter) HasLt

func (o *RangeFilter) HasLt() bool

HasLt returns a boolean if a field has been set.

func (*RangeFilter) HasLte

func (o *RangeFilter) HasLte() bool

HasLte returns a boolean if a field has been set.

func (RangeFilter) MarshalJSON

func (o RangeFilter) MarshalJSON() ([]byte, error)

func (*RangeFilter) SetField

func (o *RangeFilter) SetField(v string)

SetField sets field value

func (*RangeFilter) SetGt

func (o *RangeFilter) SetGt(v float32)

SetGt gets a reference to the given NullableFloat32 and assigns it to the Gt field.

func (*RangeFilter) SetGtNil

func (o *RangeFilter) SetGtNil()

SetGtNil sets the value for Gt to be an explicit nil

func (*RangeFilter) SetGte

func (o *RangeFilter) SetGte(v float32)

SetGte gets a reference to the given NullableFloat32 and assigns it to the Gte field.

func (*RangeFilter) SetGteNil

func (o *RangeFilter) SetGteNil()

SetGteNil sets the value for Gte to be an explicit nil

func (*RangeFilter) SetLt

func (o *RangeFilter) SetLt(v float32)

SetLt gets a reference to the given NullableFloat32 and assigns it to the Lt field.

func (*RangeFilter) SetLtNil

func (o *RangeFilter) SetLtNil()

SetLtNil sets the value for Lt to be an explicit nil

func (*RangeFilter) SetLte

func (o *RangeFilter) SetLte(v float32)

SetLte gets a reference to the given NullableFloat32 and assigns it to the Lte field.

func (*RangeFilter) SetLteNil

func (o *RangeFilter) SetLteNil()

SetLteNil sets the value for Lte to be an explicit nil

func (RangeFilter) ToMap

func (o RangeFilter) ToMap() (map[string]interface{}, error)

func (*RangeFilter) UnmarshalJSON

func (o *RangeFilter) UnmarshalJSON(data []byte) (err error)

func (*RangeFilter) UnsetGt

func (o *RangeFilter) UnsetGt()

UnsetGt ensures that no value is present for Gt, not even an explicit nil

func (*RangeFilter) UnsetGte

func (o *RangeFilter) UnsetGte()

UnsetGte ensures that no value is present for Gte, not even an explicit nil

func (*RangeFilter) UnsetLt

func (o *RangeFilter) UnsetLt()

UnsetLt ensures that no value is present for Lt, not even an explicit nil

func (*RangeFilter) UnsetLte

func (o *RangeFilter) UnsetLte()

UnsetLte ensures that no value is present for Lte, not even an explicit nil

type SearchAPIService

type SearchAPIService service

SearchAPIService SearchAPI service

func (*SearchAPIService) Percolate

func (a *SearchAPIService) Percolate(ctx context.Context, index string) ApiPercolateRequest

Percolate Perform reverse search on a percolate index

Performs a percolate search. This method must be used only on percolate indexes.

Expects two parameters: the index name and an object with array of documents to be tested. An example of the documents object:

```
{
  "query":
  {
    "percolate":
    {
      "document":
      {
        "content":"sample content"
      }
    }
  }
}
```

Responds with an object with matched stored queries:

 ```
 {
   'timed_out':false,
   'hits':
   {
     'total':2,
     'max_score':1,
     'hits':
     [
       {
         '_index':'idx_pq_1',
         '_type':'doc',
         '_id':'2',
         '_score':'1',
         '_source':
         {
           'query':
           {
             'match':{'title':'some'}
           }
         }
       },
       {
         '_index':'idx_pq_1',
         '_type':'doc',
         '_id':'5',
         '_score':'1',
         '_source':
         {
           'query':
           {
             'ql':'some | none'
           }
         }
       }
     ]
   }
 }
 ```

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param index Name of the percolate index
@return ApiPercolateRequest

func (*SearchAPIService) PercolateExecute

Execute executes the request

@return SearchResponse

func (*SearchAPIService) Search

Search Performs a search on an index

The method expects an object with the following mandatory properties: * the name of the index to search * the match query object For details, see the documentation on [**SearchRequest**](SearchRequest.md) The method returns an object with the following properties: - took: the time taken to execute the search query. - timed_out: a boolean indicating whether the query timed out. - hits: an object with the following properties:

  • total: the total number of hits found.
  • hits: an array of hit objects, where each hit object represents a matched document. Each hit object has the following properties:
  • _id: the ID of the matched document.
  • _score: the score of the matched document.
  • _source: the source data of the matched document.

In addition, if profiling is enabled, the response will include an additional array with profiling information attached. Here is an example search response:

```
{
  'took':10,
  'timed_out':false,
  'hits':
  {
    'total':2,
    'hits':
    [
      {'_id':'1','_score':1,'_source':{'gid':11}},
      {'_id':'2','_score':1,'_source':{'gid':12}}
    ]
  }
}
```

For more information about the match query syntax and additional parameters that can be added to request and response, please see the documentation [here](https://manual.manticoresearch.com/Searching/Full_text_matching/Basic_usage#HTTP-JSON).

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiSearchRequest

func (*SearchAPIService) SearchExecute

Execute executes the request

@return SearchResponse

type SearchRequest

type SearchRequest struct {
	Index          string                   `json:"index"`
	Query          map[string]interface{}   `json:"query,omitempty"`
	FulltextFilter map[string]interface{}   `json:"fulltext_filter,omitempty"`
	AttrFilter     map[string]interface{}   `json:"attr_filter,omitempty"`
	Limit          *int32                   `json:"limit,omitempty"`
	Offset         *int32                   `json:"offset,omitempty"`
	MaxMatches     *int32                   `json:"max_matches,omitempty"`
	Sort           []map[string]interface{} `json:"sort,omitempty"`
	Aggs           *map[string]Aggregation  `json:"aggs,omitempty"`
	Expressions    *map[string]string       `json:"expressions,omitempty"`
	Highlight      *Highlight               `json:"highlight,omitempty"`
	Source         map[string]interface{}   `json:"source,omitempty"`
	Options        map[string]interface{}   `json:"options,omitempty"`
	Profile        *bool                    `json:"profile,omitempty"`
	TrackScores    *bool                    `json:"track_scores,omitempty"`
}

SearchRequest Request object for search operation

func NewSearchRequest

func NewSearchRequest(index string) *SearchRequest

NewSearchRequest instantiates a new SearchRequest object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewSearchRequestWithDefaults

func NewSearchRequestWithDefaults() *SearchRequest

NewSearchRequestWithDefaults instantiates a new SearchRequest object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*SearchRequest) GetAggs

func (o *SearchRequest) GetAggs() map[string]Aggregation

GetAggs returns the Aggs field value if set, zero value otherwise.

func (*SearchRequest) GetAggsOk

func (o *SearchRequest) GetAggsOk() (*map[string]Aggregation, bool)

GetAggsOk returns a tuple with the Aggs field value if set, nil otherwise and a boolean to check if the value has been set.

func (*SearchRequest) GetAttrFilter

func (o *SearchRequest) GetAttrFilter() map[string]interface{}

GetAttrFilter returns the AttrFilter field value if set, zero value otherwise.

func (*SearchRequest) GetAttrFilterOk

func (o *SearchRequest) GetAttrFilterOk() (map[string]interface{}, bool)

GetAttrFilterOk returns a tuple with the AttrFilter field value if set, nil otherwise and a boolean to check if the value has been set.

func (*SearchRequest) GetExpressions

func (o *SearchRequest) GetExpressions() map[string]string

GetExpressions returns the Expressions field value if set, zero value otherwise.

func (*SearchRequest) GetExpressionsOk

func (o *SearchRequest) GetExpressionsOk() (*map[string]string, bool)

GetExpressionsOk returns a tuple with the Expressions field value if set, nil otherwise and a boolean to check if the value has been set.

func (*SearchRequest) GetFulltextFilter

func (o *SearchRequest) GetFulltextFilter() map[string]interface{}

GetFulltextFilter returns the FulltextFilter field value if set, zero value otherwise.

func (*SearchRequest) GetFulltextFilterOk

func (o *SearchRequest) GetFulltextFilterOk() (map[string]interface{}, bool)

GetFulltextFilterOk returns a tuple with the FulltextFilter field value if set, nil otherwise and a boolean to check if the value has been set.

func (*SearchRequest) GetHighlight

func (o *SearchRequest) GetHighlight() Highlight

GetHighlight returns the Highlight field value if set, zero value otherwise.

func (*SearchRequest) GetHighlightOk

func (o *SearchRequest) GetHighlightOk() (*Highlight, bool)

GetHighlightOk returns a tuple with the Highlight field value if set, nil otherwise and a boolean to check if the value has been set.

func (*SearchRequest) GetIndex

func (o *SearchRequest) GetIndex() string

GetIndex returns the Index field value

func (*SearchRequest) GetIndexOk

func (o *SearchRequest) GetIndexOk() (*string, bool)

GetIndexOk returns a tuple with the Index field value and a boolean to check if the value has been set.

func (*SearchRequest) GetLimit

func (o *SearchRequest) GetLimit() int32

GetLimit returns the Limit field value if set, zero value otherwise.

func (*SearchRequest) GetLimitOk

func (o *SearchRequest) GetLimitOk() (*int32, bool)

GetLimitOk returns a tuple with the Limit field value if set, nil otherwise and a boolean to check if the value has been set.

func (*SearchRequest) GetMaxMatches

func (o *SearchRequest) GetMaxMatches() int32

GetMaxMatches returns the MaxMatches field value if set, zero value otherwise.

func (*SearchRequest) GetMaxMatchesOk

func (o *SearchRequest) GetMaxMatchesOk() (*int32, bool)

GetMaxMatchesOk returns a tuple with the MaxMatches field value if set, nil otherwise and a boolean to check if the value has been set.

func (*SearchRequest) GetOffset

func (o *SearchRequest) GetOffset() int32

GetOffset returns the Offset field value if set, zero value otherwise.

func (*SearchRequest) GetOffsetOk

func (o *SearchRequest) GetOffsetOk() (*int32, bool)

GetOffsetOk returns a tuple with the Offset field value if set, nil otherwise and a boolean to check if the value has been set.

func (*SearchRequest) GetOptions

func (o *SearchRequest) GetOptions() map[string]interface{}

GetOptions returns the Options field value if set, zero value otherwise.

func (*SearchRequest) GetOptionsOk

func (o *SearchRequest) GetOptionsOk() (map[string]interface{}, bool)

GetOptionsOk returns a tuple with the Options field value if set, nil otherwise and a boolean to check if the value has been set.

func (*SearchRequest) GetProfile

func (o *SearchRequest) GetProfile() bool

GetProfile returns the Profile field value if set, zero value otherwise.

func (*SearchRequest) GetProfileOk

func (o *SearchRequest) GetProfileOk() (*bool, bool)

GetProfileOk returns a tuple with the Profile field value if set, nil otherwise and a boolean to check if the value has been set.

func (*SearchRequest) GetQuery

func (o *SearchRequest) GetQuery() map[string]interface{}

GetQuery returns the Query field value if set, zero value otherwise.

func (*SearchRequest) GetQueryOk

func (o *SearchRequest) GetQueryOk() (map[string]interface{}, bool)

GetQueryOk returns a tuple with the Query field value if set, nil otherwise and a boolean to check if the value has been set.

func (*SearchRequest) GetSort

func (o *SearchRequest) GetSort() []map[string]interface{}

GetSort returns the Sort field value if set, zero value otherwise.

func (*SearchRequest) GetSortOk

func (o *SearchRequest) GetSortOk() ([]map[string]interface{}, bool)

GetSortOk returns a tuple with the Sort field value if set, nil otherwise and a boolean to check if the value has been set.

func (*SearchRequest) GetSource

func (o *SearchRequest) GetSource() map[string]interface{}

GetSource returns the Source field value if set, zero value otherwise.

func (*SearchRequest) GetSourceOk

func (o *SearchRequest) GetSourceOk() (map[string]interface{}, bool)

GetSourceOk returns a tuple with the Source field value if set, nil otherwise and a boolean to check if the value has been set.

func (*SearchRequest) GetTrackScores

func (o *SearchRequest) GetTrackScores() bool

GetTrackScores returns the TrackScores field value if set, zero value otherwise.

func (*SearchRequest) GetTrackScoresOk

func (o *SearchRequest) GetTrackScoresOk() (*bool, bool)

GetTrackScoresOk returns a tuple with the TrackScores field value if set, nil otherwise and a boolean to check if the value has been set.

func (*SearchRequest) HasAggs

func (o *SearchRequest) HasAggs() bool

HasAggs returns a boolean if a field has been set.

func (*SearchRequest) HasAttrFilter

func (o *SearchRequest) HasAttrFilter() bool

HasAttrFilter returns a boolean if a field has been set.

func (*SearchRequest) HasExpressions

func (o *SearchRequest) HasExpressions() bool

HasExpressions returns a boolean if a field has been set.

func (*SearchRequest) HasFulltextFilter

func (o *SearchRequest) HasFulltextFilter() bool

HasFulltextFilter returns a boolean if a field has been set.

func (*SearchRequest) HasHighlight

func (o *SearchRequest) HasHighlight() bool

HasHighlight returns a boolean if a field has been set.

func (*SearchRequest) HasLimit

func (o *SearchRequest) HasLimit() bool

HasLimit returns a boolean if a field has been set.

func (*SearchRequest) HasMaxMatches

func (o *SearchRequest) HasMaxMatches() bool

HasMaxMatches returns a boolean if a field has been set.

func (*SearchRequest) HasOffset

func (o *SearchRequest) HasOffset() bool

HasOffset returns a boolean if a field has been set.

func (*SearchRequest) HasOptions

func (o *SearchRequest) HasOptions() bool

HasOptions returns a boolean if a field has been set.

func (*SearchRequest) HasProfile

func (o *SearchRequest) HasProfile() bool

HasProfile returns a boolean if a field has been set.

func (*SearchRequest) HasQuery

func (o *SearchRequest) HasQuery() bool

HasQuery returns a boolean if a field has been set.

func (*SearchRequest) HasSort

func (o *SearchRequest) HasSort() bool

HasSort returns a boolean if a field has been set.

func (*SearchRequest) HasSource

func (o *SearchRequest) HasSource() bool

HasSource returns a boolean if a field has been set.

func (*SearchRequest) HasTrackScores

func (o *SearchRequest) HasTrackScores() bool

HasTrackScores returns a boolean if a field has been set.

func (SearchRequest) MarshalJSON

func (o SearchRequest) MarshalJSON() ([]byte, error)

func (*SearchRequest) SetAggs

func (o *SearchRequest) SetAggs(v map[string]Aggregation)

SetAggs gets a reference to the given map[string]Aggregation and assigns it to the Aggs field.

func (*SearchRequest) SetAttrFilter

func (o *SearchRequest) SetAttrFilter(v map[string]interface{})

SetAttrFilter gets a reference to the given map[string]interface{} and assigns it to the AttrFilter field.

func (*SearchRequest) SetExpressions

func (o *SearchRequest) SetExpressions(v map[string]string)

SetExpressions gets a reference to the given map[string]string and assigns it to the Expressions field.

func (*SearchRequest) SetFulltextFilter

func (o *SearchRequest) SetFulltextFilter(v map[string]interface{})

SetFulltextFilter gets a reference to the given map[string]interface{} and assigns it to the FulltextFilter field.

func (*SearchRequest) SetHighlight

func (o *SearchRequest) SetHighlight(v Highlight)

SetHighlight gets a reference to the given Highlight and assigns it to the Highlight field.

func (*SearchRequest) SetIndex

func (o *SearchRequest) SetIndex(v string)

SetIndex sets field value

func (*SearchRequest) SetLimit

func (o *SearchRequest) SetLimit(v int32)

SetLimit gets a reference to the given int32 and assigns it to the Limit field.

func (*SearchRequest) SetMaxMatches

func (o *SearchRequest) SetMaxMatches(v int32)

SetMaxMatches gets a reference to the given int32 and assigns it to the MaxMatches field.

func (*SearchRequest) SetOffset

func (o *SearchRequest) SetOffset(v int32)

SetOffset gets a reference to the given int32 and assigns it to the Offset field.

func (*SearchRequest) SetOptions

func (o *SearchRequest) SetOptions(v map[string]interface{})

SetOptions gets a reference to the given map[string]interface{} and assigns it to the Options field.

func (*SearchRequest) SetProfile

func (o *SearchRequest) SetProfile(v bool)

SetProfile gets a reference to the given bool and assigns it to the Profile field.

func (*SearchRequest) SetQuery

func (o *SearchRequest) SetQuery(v map[string]interface{})

SetQuery gets a reference to the given map[string]interface{} and assigns it to the Query field.

func (*SearchRequest) SetSort

func (o *SearchRequest) SetSort(v []map[string]interface{})

SetSort gets a reference to the given []map[string]interface{} and assigns it to the Sort field.

func (*SearchRequest) SetSource

func (o *SearchRequest) SetSource(v map[string]interface{})

SetSource gets a reference to the given map[string]interface{} and assigns it to the Source field.

func (*SearchRequest) SetTrackScores

func (o *SearchRequest) SetTrackScores(v bool)

SetTrackScores gets a reference to the given bool and assigns it to the TrackScores field.

func (SearchRequest) ToMap

func (o SearchRequest) ToMap() (map[string]interface{}, error)

func (*SearchRequest) UnmarshalJSON

func (o *SearchRequest) UnmarshalJSON(data []byte) (err error)

type SearchResponse

type SearchResponse struct {
	Took         *int32                 `json:"took,omitempty"`
	TimedOut     *bool                  `json:"timed_out,omitempty"`
	Aggregations map[string]interface{} `json:"aggregations,omitempty"`
	Hits         *SearchResponseHits    `json:"hits,omitempty"`
	Profile      map[string]interface{} `json:"profile,omitempty"`
	Warning      map[string]interface{} `json:"warning,omitempty"`
}

SearchResponse Response object of a search request

func NewSearchResponse

func NewSearchResponse() *SearchResponse

NewSearchResponse instantiates a new SearchResponse object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewSearchResponseWithDefaults

func NewSearchResponseWithDefaults() *SearchResponse

NewSearchResponseWithDefaults instantiates a new SearchResponse object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*SearchResponse) GetAggregations

func (o *SearchResponse) GetAggregations() map[string]interface{}

GetAggregations returns the Aggregations field value if set, zero value otherwise.

func (*SearchResponse) GetAggregationsOk

func (o *SearchResponse) GetAggregationsOk() (map[string]interface{}, bool)

GetAggregationsOk returns a tuple with the Aggregations field value if set, nil otherwise and a boolean to check if the value has been set.

func (*SearchResponse) GetHits

func (o *SearchResponse) GetHits() SearchResponseHits

GetHits returns the Hits field value if set, zero value otherwise.

func (*SearchResponse) GetHitsOk

func (o *SearchResponse) GetHitsOk() (*SearchResponseHits, bool)

GetHitsOk returns a tuple with the Hits field value if set, nil otherwise and a boolean to check if the value has been set.

func (*SearchResponse) GetProfile

func (o *SearchResponse) GetProfile() map[string]interface{}

GetProfile returns the Profile field value if set, zero value otherwise.

func (*SearchResponse) GetProfileOk

func (o *SearchResponse) GetProfileOk() (map[string]interface{}, bool)

GetProfileOk returns a tuple with the Profile field value if set, nil otherwise and a boolean to check if the value has been set.

func (*SearchResponse) GetTimedOut

func (o *SearchResponse) GetTimedOut() bool

GetTimedOut returns the TimedOut field value if set, zero value otherwise.

func (*SearchResponse) GetTimedOutOk

func (o *SearchResponse) GetTimedOutOk() (*bool, bool)

GetTimedOutOk returns a tuple with the TimedOut field value if set, nil otherwise and a boolean to check if the value has been set.

func (*SearchResponse) GetTook

func (o *SearchResponse) GetTook() int32

GetTook returns the Took field value if set, zero value otherwise.

func (*SearchResponse) GetTookOk

func (o *SearchResponse) GetTookOk() (*int32, bool)

GetTookOk returns a tuple with the Took field value if set, nil otherwise and a boolean to check if the value has been set.

func (*SearchResponse) GetWarning

func (o *SearchResponse) GetWarning() map[string]interface{}

GetWarning returns the Warning field value if set, zero value otherwise.

func (*SearchResponse) GetWarningOk

func (o *SearchResponse) GetWarningOk() (map[string]interface{}, bool)

GetWarningOk returns a tuple with the Warning field value if set, nil otherwise and a boolean to check if the value has been set.

func (*SearchResponse) HasAggregations

func (o *SearchResponse) HasAggregations() bool

HasAggregations returns a boolean if a field has been set.

func (*SearchResponse) HasHits

func (o *SearchResponse) HasHits() bool

HasHits returns a boolean if a field has been set.

func (*SearchResponse) HasProfile

func (o *SearchResponse) HasProfile() bool

HasProfile returns a boolean if a field has been set.

func (*SearchResponse) HasTimedOut

func (o *SearchResponse) HasTimedOut() bool

HasTimedOut returns a boolean if a field has been set.

func (*SearchResponse) HasTook

func (o *SearchResponse) HasTook() bool

HasTook returns a boolean if a field has been set.

func (*SearchResponse) HasWarning

func (o *SearchResponse) HasWarning() bool

HasWarning returns a boolean if a field has been set.

func (SearchResponse) MarshalJSON

func (o SearchResponse) MarshalJSON() ([]byte, error)

func (*SearchResponse) SetAggregations

func (o *SearchResponse) SetAggregations(v map[string]interface{})

SetAggregations gets a reference to the given map[string]interface{} and assigns it to the Aggregations field.

func (*SearchResponse) SetHits

func (o *SearchResponse) SetHits(v SearchResponseHits)

SetHits gets a reference to the given SearchResponseHits and assigns it to the Hits field.

func (*SearchResponse) SetProfile

func (o *SearchResponse) SetProfile(v map[string]interface{})

SetProfile gets a reference to the given map[string]interface{} and assigns it to the Profile field.

func (*SearchResponse) SetTimedOut

func (o *SearchResponse) SetTimedOut(v bool)

SetTimedOut gets a reference to the given bool and assigns it to the TimedOut field.

func (*SearchResponse) SetTook

func (o *SearchResponse) SetTook(v int32)

SetTook gets a reference to the given int32 and assigns it to the Took field.

func (*SearchResponse) SetWarning

func (o *SearchResponse) SetWarning(v map[string]interface{})

SetWarning gets a reference to the given map[string]interface{} and assigns it to the Warning field.

func (SearchResponse) ToMap

func (o SearchResponse) ToMap() (map[string]interface{}, error)

type SearchResponseHits

type SearchResponseHits struct {
	MaxScore      *int32                   `json:"max_score,omitempty"`
	Total         *int32                   `json:"total,omitempty"`
	TotalRelation *string                  `json:"total_relation,omitempty"`
	Hits          []map[string]interface{} `json:"hits,omitempty"`
}

SearchResponseHits struct for SearchResponseHits

func NewSearchResponseHits

func NewSearchResponseHits() *SearchResponseHits

NewSearchResponseHits instantiates a new SearchResponseHits object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewSearchResponseHitsWithDefaults

func NewSearchResponseHitsWithDefaults() *SearchResponseHits

NewSearchResponseHitsWithDefaults instantiates a new SearchResponseHits object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*SearchResponseHits) GetHits

func (o *SearchResponseHits) GetHits() []map[string]interface{}

GetHits returns the Hits field value if set, zero value otherwise.

func (*SearchResponseHits) GetHitsOk

func (o *SearchResponseHits) GetHitsOk() ([]map[string]interface{}, bool)

GetHitsOk returns a tuple with the Hits field value if set, nil otherwise and a boolean to check if the value has been set.

func (*SearchResponseHits) GetMaxScore

func (o *SearchResponseHits) GetMaxScore() int32

GetMaxScore returns the MaxScore field value if set, zero value otherwise.

func (*SearchResponseHits) GetMaxScoreOk

func (o *SearchResponseHits) GetMaxScoreOk() (*int32, bool)

GetMaxScoreOk returns a tuple with the MaxScore field value if set, nil otherwise and a boolean to check if the value has been set.

func (*SearchResponseHits) GetTotal

func (o *SearchResponseHits) GetTotal() int32

GetTotal returns the Total field value if set, zero value otherwise.

func (*SearchResponseHits) GetTotalOk

func (o *SearchResponseHits) GetTotalOk() (*int32, bool)

GetTotalOk returns a tuple with the Total field value if set, nil otherwise and a boolean to check if the value has been set.

func (*SearchResponseHits) GetTotalRelation

func (o *SearchResponseHits) GetTotalRelation() string

GetTotalRelation returns the TotalRelation field value if set, zero value otherwise.

func (*SearchResponseHits) GetTotalRelationOk

func (o *SearchResponseHits) GetTotalRelationOk() (*string, bool)

GetTotalRelationOk returns a tuple with the TotalRelation field value if set, nil otherwise and a boolean to check if the value has been set.

func (*SearchResponseHits) HasHits

func (o *SearchResponseHits) HasHits() bool

HasHits returns a boolean if a field has been set.

func (*SearchResponseHits) HasMaxScore

func (o *SearchResponseHits) HasMaxScore() bool

HasMaxScore returns a boolean if a field has been set.

func (*SearchResponseHits) HasTotal

func (o *SearchResponseHits) HasTotal() bool

HasTotal returns a boolean if a field has been set.

func (*SearchResponseHits) HasTotalRelation

func (o *SearchResponseHits) HasTotalRelation() bool

HasTotalRelation returns a boolean if a field has been set.

func (SearchResponseHits) MarshalJSON

func (o SearchResponseHits) MarshalJSON() ([]byte, error)

func (*SearchResponseHits) SetHits

func (o *SearchResponseHits) SetHits(v []map[string]interface{})

SetHits gets a reference to the given []map[string]interface{} and assigns it to the Hits field.

func (*SearchResponseHits) SetMaxScore

func (o *SearchResponseHits) SetMaxScore(v int32)

SetMaxScore gets a reference to the given int32 and assigns it to the MaxScore field.

func (*SearchResponseHits) SetTotal

func (o *SearchResponseHits) SetTotal(v int32)

SetTotal gets a reference to the given int32 and assigns it to the Total field.

func (*SearchResponseHits) SetTotalRelation

func (o *SearchResponseHits) SetTotalRelation(v string)

SetTotalRelation gets a reference to the given string and assigns it to the TotalRelation field.

func (SearchResponseHits) ToMap

func (o SearchResponseHits) ToMap() (map[string]interface{}, error)

type ServerConfiguration

type ServerConfiguration struct {
	URL         string
	Description string
	Variables   map[string]ServerVariable
}

ServerConfiguration stores the information about a server

type ServerConfigurations

type ServerConfigurations []ServerConfiguration

ServerConfigurations stores multiple ServerConfiguration items

func (ServerConfigurations) URL

func (sc ServerConfigurations) URL(index int, variables map[string]string) (string, error)

URL formats template on a index using given variables

type ServerVariable

type ServerVariable struct {
	Description  string
	DefaultValue string
	EnumValues   []string
}

ServerVariable stores the information about a server variable

type SortMVA

type SortMVA struct {
	Attr  string `json:"attr"`
	Order string `json:"order"`
	Mode  string `json:"mode"`
}

SortMVA Query sort expression for MVA attributes

func NewSortMVA

func NewSortMVA(attr string, order string, mode string) *SortMVA

NewSortMVA instantiates a new SortMVA object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewSortMVAWithDefaults

func NewSortMVAWithDefaults() *SortMVA

NewSortMVAWithDefaults instantiates a new SortMVA object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*SortMVA) GetAttr

func (o *SortMVA) GetAttr() string

GetAttr returns the Attr field value

func (*SortMVA) GetAttrOk

func (o *SortMVA) GetAttrOk() (*string, bool)

GetAttrOk returns a tuple with the Attr field value and a boolean to check if the value has been set.

func (*SortMVA) GetMode

func (o *SortMVA) GetMode() string

GetMode returns the Mode field value

func (*SortMVA) GetModeOk

func (o *SortMVA) GetModeOk() (*string, bool)

GetModeOk returns a tuple with the Mode field value and a boolean to check if the value has been set.

func (*SortMVA) GetOrder

func (o *SortMVA) GetOrder() string

GetOrder returns the Order field value

func (*SortMVA) GetOrderOk

func (o *SortMVA) GetOrderOk() (*string, bool)

GetOrderOk returns a tuple with the Order field value and a boolean to check if the value has been set.

func (SortMVA) MarshalJSON

func (o SortMVA) MarshalJSON() ([]byte, error)

func (*SortMVA) SetAttr

func (o *SortMVA) SetAttr(v string)

SetAttr sets field value

func (*SortMVA) SetMode

func (o *SortMVA) SetMode(v string)

SetMode sets field value

func (*SortMVA) SetOrder

func (o *SortMVA) SetOrder(v string)

SetOrder sets field value

func (SortMVA) ToMap

func (o SortMVA) ToMap() (map[string]interface{}, error)

func (*SortMVA) UnmarshalJSON

func (o *SortMVA) UnmarshalJSON(data []byte) (err error)

type SortMultiple

type SortMultiple struct {
	Attrs   map[string]interface{} `json:"attrs"`
	Replace bool                   `json:"replace"`
}

SortMultiple Query sort expression for multiple attributes

func NewSortMultiple

func NewSortMultiple(attrs map[string]interface{}, replace bool) *SortMultiple

NewSortMultiple instantiates a new SortMultiple object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewSortMultipleWithDefaults

func NewSortMultipleWithDefaults() *SortMultiple

NewSortMultipleWithDefaults instantiates a new SortMultiple object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*SortMultiple) GetAttrs

func (o *SortMultiple) GetAttrs() map[string]interface{}

GetAttrs returns the Attrs field value

func (*SortMultiple) GetAttrsOk

func (o *SortMultiple) GetAttrsOk() (map[string]interface{}, bool)

GetAttrsOk returns a tuple with the Attrs field value and a boolean to check if the value has been set.

func (*SortMultiple) GetReplace

func (o *SortMultiple) GetReplace() bool

GetReplace returns the Replace field value

func (*SortMultiple) GetReplaceOk

func (o *SortMultiple) GetReplaceOk() (*bool, bool)

GetReplaceOk returns a tuple with the Replace field value and a boolean to check if the value has been set.

func (SortMultiple) MarshalJSON

func (o SortMultiple) MarshalJSON() ([]byte, error)

func (*SortMultiple) SetAttrs

func (o *SortMultiple) SetAttrs(v map[string]interface{})

SetAttrs sets field value

func (*SortMultiple) SetReplace

func (o *SortMultiple) SetReplace(v bool)

SetReplace sets field value

func (SortMultiple) ToMap

func (o SortMultiple) ToMap() (map[string]interface{}, error)

func (*SortMultiple) UnmarshalJSON

func (o *SortMultiple) UnmarshalJSON(data []byte) (err error)

type SortOrder

type SortOrder struct {
	Attr  string `json:"attr"`
	Order string `json:"order"`
}

SortOrder Query sort expression

func NewSortOrder

func NewSortOrder(attr string, order string) *SortOrder

NewSortOrder instantiates a new SortOrder object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewSortOrderWithDefaults

func NewSortOrderWithDefaults() *SortOrder

NewSortOrderWithDefaults instantiates a new SortOrder object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*SortOrder) GetAttr

func (o *SortOrder) GetAttr() string

GetAttr returns the Attr field value

func (*SortOrder) GetAttrOk

func (o *SortOrder) GetAttrOk() (*string, bool)

GetAttrOk returns a tuple with the Attr field value and a boolean to check if the value has been set.

func (*SortOrder) GetOrder

func (o *SortOrder) GetOrder() string

GetOrder returns the Order field value

func (*SortOrder) GetOrderOk

func (o *SortOrder) GetOrderOk() (*string, bool)

GetOrderOk returns a tuple with the Order field value and a boolean to check if the value has been set.

func (SortOrder) MarshalJSON

func (o SortOrder) MarshalJSON() ([]byte, error)

func (*SortOrder) SetAttr

func (o *SortOrder) SetAttr(v string)

SetAttr sets field value

func (*SortOrder) SetOrder

func (o *SortOrder) SetOrder(v string)

SetOrder sets field value

func (SortOrder) ToMap

func (o SortOrder) ToMap() (map[string]interface{}, error)

func (*SortOrder) UnmarshalJSON

func (o *SortOrder) UnmarshalJSON(data []byte) (err error)

type SourceByRules

type SourceByRules struct {
	Includes []string `json:"includes"`
	Excludes []string `json:"excludes"`
}

SourceByRules Query fields to be included/excluded to/from response

func NewSourceByRules

func NewSourceByRules(includes []string, excludes []string) *SourceByRules

NewSourceByRules instantiates a new SourceByRules object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewSourceByRulesWithDefaults

func NewSourceByRulesWithDefaults() *SourceByRules

NewSourceByRulesWithDefaults instantiates a new SourceByRules object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*SourceByRules) GetExcludes

func (o *SourceByRules) GetExcludes() []string

GetExcludes returns the Excludes field value

func (*SourceByRules) GetExcludesOk

func (o *SourceByRules) GetExcludesOk() ([]string, bool)

GetExcludesOk returns a tuple with the Excludes field value and a boolean to check if the value has been set.

func (*SourceByRules) GetIncludes

func (o *SourceByRules) GetIncludes() []string

GetIncludes returns the Includes field value

func (*SourceByRules) GetIncludesOk

func (o *SourceByRules) GetIncludesOk() ([]string, bool)

GetIncludesOk returns a tuple with the Includes field value and a boolean to check if the value has been set.

func (SourceByRules) MarshalJSON

func (o SourceByRules) MarshalJSON() ([]byte, error)

func (*SourceByRules) SetExcludes

func (o *SourceByRules) SetExcludes(v []string)

SetExcludes sets field value

func (*SourceByRules) SetIncludes

func (o *SourceByRules) SetIncludes(v []string)

SetIncludes sets field value

func (SourceByRules) ToMap

func (o SourceByRules) ToMap() (map[string]interface{}, error)

func (*SourceByRules) UnmarshalJSON

func (o *SourceByRules) UnmarshalJSON(data []byte) (err error)

type SqlDefaultResponse

type SqlDefaultResponse struct {
	ErrorResponse       *ErrorResponse
	ErrorResponseString *ErrorResponseString
}

SqlDefaultResponse - struct for SqlDefaultResponse

func ErrorResponseAsSqlDefaultResponse

func ErrorResponseAsSqlDefaultResponse(v *ErrorResponse) SqlDefaultResponse

ErrorResponseAsSqlDefaultResponse is a convenience function that returns ErrorResponse wrapped in SqlDefaultResponse

func ErrorResponseStringAsSqlDefaultResponse

func ErrorResponseStringAsSqlDefaultResponse(v *ErrorResponseString) SqlDefaultResponse

ErrorResponseStringAsSqlDefaultResponse is a convenience function that returns ErrorResponseString wrapped in SqlDefaultResponse

func (*SqlDefaultResponse) GetActualInstance

func (obj *SqlDefaultResponse) GetActualInstance() interface{}

Get the actual instance

func (SqlDefaultResponse) MarshalJSON

func (src SqlDefaultResponse) MarshalJSON() ([]byte, error)

Marshal data from the first non-nil pointers in the struct to JSON

func (*SqlDefaultResponse) UnmarshalJSON

func (dst *SqlDefaultResponse) UnmarshalJSON(data []byte) error

Unmarshal JSON data into one of the pointers in the struct

type SuccessResponse

type SuccessResponse struct {
	Index   *string `json:"_index,omitempty"`
	Id      *int64  `json:"_id,omitempty"`
	Created *bool   `json:"created,omitempty"`
	Result  *string `json:"result,omitempty"`
	Found   *bool   `json:"found,omitempty"`
}

SuccessResponse Success response

func NewSuccessResponse

func NewSuccessResponse() *SuccessResponse

NewSuccessResponse instantiates a new SuccessResponse object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewSuccessResponseWithDefaults

func NewSuccessResponseWithDefaults() *SuccessResponse

NewSuccessResponseWithDefaults instantiates a new SuccessResponse object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*SuccessResponse) GetCreated

func (o *SuccessResponse) GetCreated() bool

GetCreated returns the Created field value if set, zero value otherwise.

func (*SuccessResponse) GetCreatedOk

func (o *SuccessResponse) GetCreatedOk() (*bool, bool)

GetCreatedOk returns a tuple with the Created field value if set, nil otherwise and a boolean to check if the value has been set.

func (*SuccessResponse) GetFound

func (o *SuccessResponse) GetFound() bool

GetFound returns the Found field value if set, zero value otherwise.

func (*SuccessResponse) GetFoundOk

func (o *SuccessResponse) GetFoundOk() (*bool, bool)

GetFoundOk returns a tuple with the Found field value if set, nil otherwise and a boolean to check if the value has been set.

func (*SuccessResponse) GetId

func (o *SuccessResponse) GetId() int64

GetId returns the Id field value if set, zero value otherwise.

func (*SuccessResponse) GetIdOk

func (o *SuccessResponse) GetIdOk() (*int64, bool)

GetIdOk returns a tuple with the Id field value if set, nil otherwise and a boolean to check if the value has been set.

func (*SuccessResponse) GetIndex

func (o *SuccessResponse) GetIndex() string

GetIndex returns the Index field value if set, zero value otherwise.

func (*SuccessResponse) GetIndexOk

func (o *SuccessResponse) GetIndexOk() (*string, bool)

GetIndexOk returns a tuple with the Index field value if set, nil otherwise and a boolean to check if the value has been set.

func (*SuccessResponse) GetResult

func (o *SuccessResponse) GetResult() string

GetResult returns the Result field value if set, zero value otherwise.

func (*SuccessResponse) GetResultOk

func (o *SuccessResponse) GetResultOk() (*string, bool)

GetResultOk returns a tuple with the Result field value if set, nil otherwise and a boolean to check if the value has been set.

func (*SuccessResponse) HasCreated

func (o *SuccessResponse) HasCreated() bool

HasCreated returns a boolean if a field has been set.

func (*SuccessResponse) HasFound

func (o *SuccessResponse) HasFound() bool

HasFound returns a boolean if a field has been set.

func (*SuccessResponse) HasId

func (o *SuccessResponse) HasId() bool

HasId returns a boolean if a field has been set.

func (*SuccessResponse) HasIndex

func (o *SuccessResponse) HasIndex() bool

HasIndex returns a boolean if a field has been set.

func (*SuccessResponse) HasResult

func (o *SuccessResponse) HasResult() bool

HasResult returns a boolean if a field has been set.

func (SuccessResponse) MarshalJSON

func (o SuccessResponse) MarshalJSON() ([]byte, error)

func (*SuccessResponse) SetCreated

func (o *SuccessResponse) SetCreated(v bool)

SetCreated gets a reference to the given bool and assigns it to the Created field.

func (*SuccessResponse) SetFound

func (o *SuccessResponse) SetFound(v bool)

SetFound gets a reference to the given bool and assigns it to the Found field.

func (*SuccessResponse) SetId

func (o *SuccessResponse) SetId(v int64)

SetId gets a reference to the given int64 and assigns it to the Id field.

func (*SuccessResponse) SetIndex

func (o *SuccessResponse) SetIndex(v string)

SetIndex gets a reference to the given string and assigns it to the Index field.

func (*SuccessResponse) SetResult

func (o *SuccessResponse) SetResult(v string)

SetResult gets a reference to the given string and assigns it to the Result field.

func (SuccessResponse) ToMap

func (o SuccessResponse) ToMap() (map[string]interface{}, error)

type UpdateDocumentRequest

type UpdateDocumentRequest struct {
	Index string `json:"index"`
	// Index name
	Doc map[string]interface{} `json:"doc"`
	// Document ID
	Id *int64 `json:"id,omitempty"`
	// Query tree object
	Query map[string]interface{} `json:"query,omitempty"`
}

UpdateDocumentRequest Payload for update document

func NewUpdateDocumentRequest

func NewUpdateDocumentRequest(index string, doc map[string]interface{}) *UpdateDocumentRequest

NewUpdateDocumentRequest instantiates a new UpdateDocumentRequest object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewUpdateDocumentRequestWithDefaults

func NewUpdateDocumentRequestWithDefaults() *UpdateDocumentRequest

NewUpdateDocumentRequestWithDefaults instantiates a new UpdateDocumentRequest object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*UpdateDocumentRequest) GetDoc

func (o *UpdateDocumentRequest) GetDoc() map[string]interface{}

GetDoc returns the Doc field value

func (*UpdateDocumentRequest) GetDocOk

func (o *UpdateDocumentRequest) GetDocOk() (map[string]interface{}, bool)

GetDocOk returns a tuple with the Doc field value and a boolean to check if the value has been set.

func (*UpdateDocumentRequest) GetId

func (o *UpdateDocumentRequest) GetId() int64

GetId returns the Id field value if set, zero value otherwise.

func (*UpdateDocumentRequest) GetIdOk

func (o *UpdateDocumentRequest) GetIdOk() (*int64, bool)

GetIdOk returns a tuple with the Id field value if set, nil otherwise and a boolean to check if the value has been set.

func (*UpdateDocumentRequest) GetIndex

func (o *UpdateDocumentRequest) GetIndex() string

GetIndex returns the Index field value

func (*UpdateDocumentRequest) GetIndexOk

func (o *UpdateDocumentRequest) GetIndexOk() (*string, bool)

GetIndexOk returns a tuple with the Index field value and a boolean to check if the value has been set.

func (*UpdateDocumentRequest) GetQuery

func (o *UpdateDocumentRequest) GetQuery() map[string]interface{}

GetQuery returns the Query field value if set, zero value otherwise (both if not set or set to explicit null).

func (*UpdateDocumentRequest) GetQueryOk

func (o *UpdateDocumentRequest) GetQueryOk() (map[string]interface{}, bool)

GetQueryOk returns a tuple with the Query field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*UpdateDocumentRequest) HasId

func (o *UpdateDocumentRequest) HasId() bool

HasId returns a boolean if a field has been set.

func (*UpdateDocumentRequest) HasQuery

func (o *UpdateDocumentRequest) HasQuery() bool

HasQuery returns a boolean if a field has been set.

func (UpdateDocumentRequest) MarshalJSON

func (o UpdateDocumentRequest) MarshalJSON() ([]byte, error)

func (*UpdateDocumentRequest) SetDoc

func (o *UpdateDocumentRequest) SetDoc(v map[string]interface{})

SetDoc sets field value

func (*UpdateDocumentRequest) SetId

func (o *UpdateDocumentRequest) SetId(v int64)

SetId gets a reference to the given int64 and assigns it to the Id field.

func (*UpdateDocumentRequest) SetIndex

func (o *UpdateDocumentRequest) SetIndex(v string)

SetIndex sets field value

func (*UpdateDocumentRequest) SetQuery

func (o *UpdateDocumentRequest) SetQuery(v map[string]interface{})

SetQuery gets a reference to the given map[string]interface{} and assigns it to the Query field.

func (UpdateDocumentRequest) ToMap

func (o UpdateDocumentRequest) ToMap() (map[string]interface{}, error)

func (*UpdateDocumentRequest) UnmarshalJSON

func (o *UpdateDocumentRequest) UnmarshalJSON(data []byte) (err error)

type UpdateResponse

type UpdateResponse struct {
	Index   *string `json:"_index,omitempty"`
	Updated *int32  `json:"updated,omitempty"`
	Id      *int64  `json:"_id,omitempty"`
	Result  *string `json:"result,omitempty"`
}

UpdateResponse Success response

func NewUpdateResponse

func NewUpdateResponse() *UpdateResponse

NewUpdateResponse instantiates a new UpdateResponse object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewUpdateResponseWithDefaults

func NewUpdateResponseWithDefaults() *UpdateResponse

NewUpdateResponseWithDefaults instantiates a new UpdateResponse object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*UpdateResponse) GetId

func (o *UpdateResponse) GetId() int64

GetId returns the Id field value if set, zero value otherwise.

func (*UpdateResponse) GetIdOk

func (o *UpdateResponse) GetIdOk() (*int64, bool)

GetIdOk returns a tuple with the Id field value if set, nil otherwise and a boolean to check if the value has been set.

func (*UpdateResponse) GetIndex

func (o *UpdateResponse) GetIndex() string

GetIndex returns the Index field value if set, zero value otherwise.

func (*UpdateResponse) GetIndexOk

func (o *UpdateResponse) GetIndexOk() (*string, bool)

GetIndexOk returns a tuple with the Index field value if set, nil otherwise and a boolean to check if the value has been set.

func (*UpdateResponse) GetResult

func (o *UpdateResponse) GetResult() string

GetResult returns the Result field value if set, zero value otherwise.

func (*UpdateResponse) GetResultOk

func (o *UpdateResponse) GetResultOk() (*string, bool)

GetResultOk returns a tuple with the Result field value if set, nil otherwise and a boolean to check if the value has been set.

func (*UpdateResponse) GetUpdated

func (o *UpdateResponse) GetUpdated() int32

GetUpdated returns the Updated field value if set, zero value otherwise.

func (*UpdateResponse) GetUpdatedOk

func (o *UpdateResponse) GetUpdatedOk() (*int32, bool)

GetUpdatedOk returns a tuple with the Updated field value if set, nil otherwise and a boolean to check if the value has been set.

func (*UpdateResponse) HasId

func (o *UpdateResponse) HasId() bool

HasId returns a boolean if a field has been set.

func (*UpdateResponse) HasIndex

func (o *UpdateResponse) HasIndex() bool

HasIndex returns a boolean if a field has been set.

func (*UpdateResponse) HasResult

func (o *UpdateResponse) HasResult() bool

HasResult returns a boolean if a field has been set.

func (*UpdateResponse) HasUpdated

func (o *UpdateResponse) HasUpdated() bool

HasUpdated returns a boolean if a field has been set.

func (UpdateResponse) MarshalJSON

func (o UpdateResponse) MarshalJSON() ([]byte, error)

func (*UpdateResponse) SetId

func (o *UpdateResponse) SetId(v int64)

SetId gets a reference to the given int64 and assigns it to the Id field.

func (*UpdateResponse) SetIndex

func (o *UpdateResponse) SetIndex(v string)

SetIndex gets a reference to the given string and assigns it to the Index field.

func (*UpdateResponse) SetResult

func (o *UpdateResponse) SetResult(v string)

SetResult gets a reference to the given string and assigns it to the Result field.

func (*UpdateResponse) SetUpdated

func (o *UpdateResponse) SetUpdated(v int32)

SetUpdated gets a reference to the given int32 and assigns it to the Updated field.

func (UpdateResponse) ToMap

func (o UpdateResponse) ToMap() (map[string]interface{}, error)

type UtilsAPIService

type UtilsAPIService service

UtilsAPIService UtilsAPI service

func (*UtilsAPIService) Sql

Sql Perform SQL requests

Run a query in SQL format. Expects a query string passed through `body` parameter and optional `raw_response` parameter that defines a format of response. `raw_response` can be set to `False` for Select queries only, e.g., `SELECT * FROM myindex` The query string must stay as it is, no URL encoding is needed. The response object depends on the query executed. In select mode the response has same format as `/search` operation.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiSqlRequest

func (*UtilsAPIService) SqlExecute

func (a *UtilsAPIService) SqlExecute(r ApiSqlRequest) ([]map[string]interface{}, *http.Response, error)

Execute executes the request

@return []map[string]interface{}

Jump to

Keyboard shortcuts

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