Class DefaultQueryParams
java.lang.Object
com.ibm.cloud.sdk.core.service.model.GenericModel
com.ibm.watson.discovery.v2.model.DefaultQueryParams
- All Implemented Interfaces:
com.ibm.cloud.sdk.core.service.model.ObjectModel
public class DefaultQueryParams
extends com.ibm.cloud.sdk.core.service.model.GenericModel
Default query parameters for this project.
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
DefaultQueryParams.Builder
Builder. -
Method Summary
Modifier and Type Method Description String
aggregation()
Gets the aggregation.List<String>
collectionIds()
Gets the collectionIds.Long
count()
Gets the count.Boolean
highlight()
Gets the highlight.DefaultQueryParams.Builder
newBuilder()
New builder.DefaultQueryParamsPassages
passages()
Gets the passages.String
sort()
Gets the sort.Boolean
spellingSuggestions()
Gets the spellingSuggestions.DefaultQueryParamsSuggestedRefinements
suggestedRefinements()
Gets the suggestedRefinements.DefaultQueryParamsTableResults
tableResults()
Gets the tableResults.List<String>
xReturn()
Gets the xReturn.Methods inherited from class com.ibm.cloud.sdk.core.service.model.GenericModel
equals, hashCode, toString
-
Method Details
-
newBuilder
New builder.- Returns:
- a DefaultQueryParams builder
-
collectionIds
Gets the collectionIds.An array of collection identifiers to query. If empty or omitted all collections in the project are queried.
- Returns:
- the collectionIds
-
passages
Gets the passages.Default settings configuration for passage search options.
- Returns:
- the passages
-
tableResults
Gets the tableResults.Default project query settings for table results.
- Returns:
- the tableResults
-
aggregation
Gets the aggregation.A string representing the default aggregation query for the project.
- Returns:
- the aggregation
-
suggestedRefinements
Gets the suggestedRefinements.Object that contains suggested refinement settings. Available with Premium plans only.
- Returns:
- the suggestedRefinements
-
spellingSuggestions
Gets the spellingSuggestions.When `true`, a spelling suggestions for the query are returned by default.
- Returns:
- the spellingSuggestions
-
highlight
Gets the highlight.When `true`, a highlights for the query are returned by default.
- Returns:
- the highlight
-
count
Gets the count.The number of document results returned by default.
- Returns:
- the count
-
sort
Gets the sort.A comma separated list of document fields to sort results by default.
- Returns:
- the sort
-
xReturn
Gets the xReturn.An array of field names to return in document results if present by default.
- Returns:
- the xReturn
-