Name | Type | Description | Notes |
---|---|---|---|
Index | string | The index to perform the search on | |
Query | Pointer to SearchQuery | [optional] | |
Join | Pointer to []Join | Join clause to combine search data from multiple tables | [optional] |
Highlight | Pointer to Highlight | [optional] | |
Limit | Pointer to int32 | Maximum number of results to return | [optional] |
Knn | Pointer to KnnQuery | [optional] | |
Aggs | Pointer to | Defines aggregation settings for grouping results | [optional] |
Expressions | Pointer to | Expressions to calculate additional values for the result | [optional] |
MaxMatches | Pointer to int32 | Maximum number of matches allowed in the result | [optional] |
Offset | Pointer to int32 | Starting point for pagination of the result | [optional] |
Options | Pointer to map[string]interface{} | Additional search options | [optional] |
Profile | Pointer to bool | Enable or disable profiling of the search request | [optional] |
Sort | Pointer to interface{} | [optional] | |
Source | Pointer to interface{} | [optional] | |
TrackScores | Pointer to bool | Enable or disable result weight calculation used for sorting | [optional] |
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() *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() SearchQuery
GetQuery returns the Query field if non-nil, zero value otherwise.
func (o *SearchRequest) GetQueryOk() (*SearchQuery, 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 SearchQuery)
SetQuery sets Query field to given value.
func (o *SearchRequest) HasQuery() bool
HasQuery returns a boolean if a field has been set.
func (o *SearchRequest) GetJoin() []Join
GetJoin returns the Join field if non-nil, zero value otherwise.
func (o *SearchRequest) GetJoinOk() (*[]Join, bool)
GetJoinOk returns a tuple with the Join field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *SearchRequest) SetJoin(v []Join)
SetJoin sets Join field to given value.
func (o *SearchRequest) HasJoin() bool
HasJoin returns a boolean if a field has been set.
func (o *SearchRequest) GetHighlight() Highlight
GetHighlight returns the Highlight field if non-nil, zero value otherwise.
func (o *SearchRequest) GetHighlightOk() (*Highlight, 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 Highlight)
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) 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) GetKnn() KnnQuery
GetKnn returns the Knn field if non-nil, zero value otherwise.
func (o *SearchRequest) GetKnnOk() (*KnnQuery, bool)
GetKnnOk returns a tuple with the Knn field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *SearchRequest) SetKnn(v KnnQuery)
SetKnn sets Knn field to given value.
func (o *SearchRequest) HasKnn() bool
HasKnn returns a boolean if a field has been set.
func (o *SearchRequest) GetAggs() map[string]Aggregation
GetAggs returns the Aggs field if non-nil, zero value otherwise.
func (o *SearchRequest) GetAggsOk() (*map[string]Aggregation, 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]Aggregation)
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) SetAggsNil(b bool)
SetAggsNil sets the value for Aggs to be an explicit nil
func (o *SearchRequest) UnsetAggs()
UnsetAggs ensures that no value is present for Aggs, not even an explicit nil
func (o *SearchRequest) GetExpressions() map[string]string
GetExpressions returns the Expressions field if non-nil, zero value otherwise.
func (o *SearchRequest) GetExpressionsOk() (*map[string]string, 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]string)
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) SetExpressionsNil(b bool)
SetExpressionsNil sets the value for Expressions to be an explicit nil
func (o *SearchRequest) UnsetExpressions()
UnsetExpressions ensures that no value is present for Expressions, not even an explicit nil
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) 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) GetOptions() map[string]interface{}
GetOptions returns the Options field if non-nil, zero value otherwise.
func (o *SearchRequest) GetOptionsOk() (*map[string]interface{}, bool)
GetOptionsOk returns a tuple with the Options field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *SearchRequest) SetOptions(v map[string]interface{})
SetOptions sets Options field to given value.
func (o *SearchRequest) HasOptions() bool
HasOptions 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.
func (o *SearchRequest) GetSort() interface{}
GetSort returns the Sort field if non-nil, zero value otherwise.
func (o *SearchRequest) GetSortOk() (*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 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) SetSortNil(b bool)
SetSortNil sets the value for Sort to be an explicit nil
func (o *SearchRequest) UnsetSort()
UnsetSort ensures that no value is present for Sort, not even an explicit nil
func (o *SearchRequest) GetSource() interface{}
GetSource returns the Source field if non-nil, zero value otherwise.
func (o *SearchRequest) GetSourceOk() (*interface{}, 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 interface{})
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) SetSourceNil(b bool)
SetSourceNil sets the value for Source to be an explicit nil
func (o *SearchRequest) UnsetSource()
UnsetSource ensures that no value is present for Source, not even an explicit nil
func (o *SearchRequest) GetTrackScores() bool
GetTrackScores returns the TrackScores field if non-nil, zero value otherwise.
func (o *SearchRequest) GetTrackScoresOk() (*bool, bool)
GetTrackScoresOk returns a tuple with the TrackScores field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *SearchRequest) SetTrackScores(v bool)
SetTrackScores sets TrackScores field to given value.
func (o *SearchRequest) HasTrackScores() bool
HasTrackScores returns a boolean if a field has been set.