public class DefaultQueryParams
extends com.ibm.cloud.sdk.core.service.model.GenericModel
Modifier and Type | Class and Description |
---|---|
static class |
DefaultQueryParams.Builder
Builder.
|
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
aggregation |
protected java.util.List<java.lang.String> |
collectionIds |
protected java.lang.Long |
count |
protected java.lang.Boolean |
highlight |
protected DefaultQueryParamsPassages |
passages |
protected java.lang.String |
sort |
protected java.lang.Boolean |
spellingSuggestions |
protected DefaultQueryParamsSuggestedRefinements |
suggestedRefinements |
protected DefaultQueryParamsTableResults |
tableResults |
protected java.util.List<java.lang.String> |
xReturn |
Modifier | Constructor and Description |
---|---|
protected |
DefaultQueryParams(DefaultQueryParams.Builder builder) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
aggregation()
Gets the aggregation.
|
java.util.List<java.lang.String> |
collectionIds()
Gets the collectionIds.
|
java.lang.Long |
count()
Gets the count.
|
java.lang.Boolean |
highlight()
Gets the highlight.
|
DefaultQueryParams.Builder |
newBuilder()
New builder.
|
DefaultQueryParamsPassages |
passages()
Gets the passages.
|
java.lang.String |
sort()
Gets the sort.
|
java.lang.Boolean |
spellingSuggestions()
Gets the spellingSuggestions.
|
DefaultQueryParamsSuggestedRefinements |
suggestedRefinements()
Gets the suggestedRefinements.
|
DefaultQueryParamsTableResults |
tableResults()
Gets the tableResults.
|
java.util.List<java.lang.String> |
xReturn()
Gets the xReturn.
|
@SerializedName(value="collection_ids") protected java.util.List<java.lang.String> collectionIds
protected DefaultQueryParamsPassages passages
@SerializedName(value="table_results") protected DefaultQueryParamsTableResults tableResults
protected java.lang.String aggregation
@SerializedName(value="suggested_refinements") protected DefaultQueryParamsSuggestedRefinements suggestedRefinements
@SerializedName(value="spelling_suggestions") protected java.lang.Boolean spellingSuggestions
protected java.lang.Boolean highlight
protected java.lang.Long count
protected java.lang.String sort
@SerializedName(value="return") protected java.util.List<java.lang.String> xReturn
protected DefaultQueryParams(DefaultQueryParams.Builder builder)
public DefaultQueryParams.Builder newBuilder()
public java.util.List<java.lang.String> collectionIds()
An array of collection identifiers to query. If empty or omitted all collections in the project are queried.
public DefaultQueryParamsPassages passages()
Default settings configuration for passage search options.
public DefaultQueryParamsTableResults tableResults()
Default project query settings for table results.
public java.lang.String aggregation()
A string representing the default aggregation query for the project.
public DefaultQueryParamsSuggestedRefinements suggestedRefinements()
Object containing suggested refinement settings.
public java.lang.Boolean spellingSuggestions()
When `true`, a spelling suggestions for the query are retuned by default.
public java.lang.Boolean highlight()
When `true`, a highlights for the query are retuned by default.
public java.lang.Long count()
The number of document results returned by default.
public java.lang.String sort()
A comma separated list of document fields to sort results by default.
public java.util.List<java.lang.String> xReturn()
An array of field names to return in document results if present by default.