Name | Type | Description | Notes |
---|---|---|---|
Index | string | ||
Query | map[string]map[string]interface{} | ||
Limit | Pointer to int32 | [optional] | |
Offset | Pointer to int32 | [optional] | |
MaxMatches | Pointer to int32 | [optional] | |
Sort | Pointer to []map[string]interface{} | [optional] | |
Aggs | Pointer to map[string]map[string]interface{} | [optional] | |
Expressions | Pointer to map[string]interface{} | [optional] | |
Highlight | Pointer to map[string]interface{} | [optional] | |
Source | Pointer to []string | [optional] | |
Profile | Pointer to bool | [optional] |
func NewSearchRequest(index string, query map[string]map[string]interface{}, ) *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() *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 (o *SearchRequest) GetIndex() string
GetIndex returns the Index field if non-nil, zero value otherwise.
func (o *SearchRequest) GetIndexOk() (*string, bool)
GetIndexOk returns a tuple with the Index field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *SearchRequest) SetIndex(v string)
SetIndex sets Index field to given value.
func (o *SearchRequest) GetQuery() map[string]map[string]interface{}
GetQuery returns the Query field if non-nil, zero value otherwise.
func (o *SearchRequest) GetQueryOk() (*map[string]map[string]interface{}, bool)
GetQueryOk returns a tuple with the Query field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *SearchRequest) SetQuery(v map[string]map[string]interface{})
SetQuery sets Query field to given value.
func (o *SearchRequest) GetLimit() int32
GetLimit returns the Limit field if non-nil, zero value otherwise.
func (o *SearchRequest) GetLimitOk() (*int32, bool)
GetLimitOk returns a tuple with the Limit field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *SearchRequest) SetLimit(v int32)
SetLimit sets Limit field to given value.
func (o *SearchRequest) HasLimit() bool
HasLimit returns a boolean if a field has been set.
func (o *SearchRequest) GetOffset() int32
GetOffset returns the Offset field if non-nil, zero value otherwise.
func (o *SearchRequest) GetOffsetOk() (*int32, bool)
GetOffsetOk returns a tuple with the Offset field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *SearchRequest) SetOffset(v int32)
SetOffset sets Offset field to given value.
func (o *SearchRequest) HasOffset() bool
HasOffset returns a boolean if a field has been set.
func (o *SearchRequest) GetMaxMatches() int32
GetMaxMatches returns the MaxMatches field if non-nil, zero value otherwise.
func (o *SearchRequest) GetMaxMatchesOk() (*int32, bool)
GetMaxMatchesOk returns a tuple with the MaxMatches field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *SearchRequest) SetMaxMatches(v int32)
SetMaxMatches sets MaxMatches field to given value.
func (o *SearchRequest) HasMaxMatches() bool
HasMaxMatches returns a boolean if a field has been set.
func (o *SearchRequest) GetSort() []map[string]interface{}
GetSort returns the Sort field if non-nil, zero value otherwise.
func (o *SearchRequest) GetSortOk() (*[]map[string]interface{}, bool)
GetSortOk returns a tuple with the Sort field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *SearchRequest) SetSort(v []map[string]interface{})
SetSort sets Sort field to given value.
func (o *SearchRequest) HasSort() bool
HasSort returns a boolean if a field has been set.
func (o *SearchRequest) GetAggs() map[string]map[string]interface{}
GetAggs returns the Aggs field if non-nil, zero value otherwise.
func (o *SearchRequest) GetAggsOk() (*map[string]map[string]interface{}, bool)
GetAggsOk returns a tuple with the Aggs field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *SearchRequest) SetAggs(v map[string]map[string]interface{})
SetAggs sets Aggs field to given value.
func (o *SearchRequest) HasAggs() bool
HasAggs returns a boolean if a field has been set.
func (o *SearchRequest) GetExpressions() map[string]interface{}
GetExpressions returns the Expressions field if non-nil, zero value otherwise.
func (o *SearchRequest) GetExpressionsOk() (*map[string]interface{}, bool)
GetExpressionsOk returns a tuple with the Expressions field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *SearchRequest) SetExpressions(v map[string]interface{})
SetExpressions sets Expressions field to given value.
func (o *SearchRequest) HasExpressions() bool
HasExpressions returns a boolean if a field has been set.
func (o *SearchRequest) GetHighlight() map[string]interface{}
GetHighlight returns the Highlight field if non-nil, zero value otherwise.
func (o *SearchRequest) GetHighlightOk() (*map[string]interface{}, bool)
GetHighlightOk returns a tuple with the Highlight field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *SearchRequest) SetHighlight(v map[string]interface{})
SetHighlight sets Highlight field to given value.
func (o *SearchRequest) HasHighlight() bool
HasHighlight returns a boolean if a field has been set.
func (o *SearchRequest) GetSource() []string
GetSource returns the Source field if non-nil, zero value otherwise.
func (o *SearchRequest) GetSourceOk() (*[]string, bool)
GetSourceOk returns a tuple with the Source field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *SearchRequest) SetSource(v []string)
SetSource sets Source field to given value.
func (o *SearchRequest) HasSource() bool
HasSource returns a boolean if a field has been set.
func (o *SearchRequest) GetProfile() bool
GetProfile returns the Profile field if non-nil, zero value otherwise.
func (o *SearchRequest) GetProfileOk() (*bool, bool)
GetProfileOk returns a tuple with the Profile field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *SearchRequest) SetProfile(v bool)
SetProfile sets Profile field to given value.
func (o *SearchRequest) HasProfile() bool
HasProfile returns a boolean if a field has been set.