public class QueryNoticesOptions
extends com.ibm.cloud.sdk.core.service.model.GenericModel
Modifier and Type | Class and Description |
---|---|
static class |
QueryNoticesOptions.Builder
Builder.
|
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
aggregation |
protected java.lang.String |
collectionId |
protected java.lang.Long |
count |
protected java.lang.String |
deduplicateField |
protected java.lang.String |
environmentId |
protected java.lang.String |
filter |
protected java.lang.Boolean |
highlight |
protected java.lang.String |
naturalLanguageQuery |
protected java.lang.Long |
offset |
protected java.lang.Boolean |
passages |
protected java.lang.Long |
passagesCharacters |
protected java.lang.Long |
passagesCount |
protected java.util.List<java.lang.String> |
passagesFields |
protected java.lang.String |
query |
protected java.lang.Boolean |
similar |
protected java.util.List<java.lang.String> |
similarDocumentIds |
protected java.util.List<java.lang.String> |
similarFields |
protected java.util.List<java.lang.String> |
sort |
protected java.util.List<java.lang.String> |
xReturn |
Modifier | Constructor and Description |
---|---|
protected |
QueryNoticesOptions(QueryNoticesOptions.Builder builder) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
aggregation()
Gets the aggregation.
|
java.lang.String |
collectionId()
Gets the collectionId.
|
java.lang.Long |
count()
Gets the count.
|
java.lang.String |
deduplicateField()
Gets the deduplicateField.
|
java.lang.String |
environmentId()
Gets the environmentId.
|
java.lang.String |
filter()
Gets the filter.
|
java.lang.Boolean |
highlight()
Gets the highlight.
|
java.lang.String |
naturalLanguageQuery()
Gets the naturalLanguageQuery.
|
QueryNoticesOptions.Builder |
newBuilder()
New builder.
|
java.lang.Long |
offset()
Gets the offset.
|
java.lang.Boolean |
passages()
Gets the passages.
|
java.lang.Long |
passagesCharacters()
Gets the passagesCharacters.
|
java.lang.Long |
passagesCount()
Gets the passagesCount.
|
java.util.List<java.lang.String> |
passagesFields()
Gets the passagesFields.
|
java.lang.String |
query()
Gets the query.
|
java.lang.Boolean |
similar()
Gets the similar.
|
java.util.List<java.lang.String> |
similarDocumentIds()
Gets the similarDocumentIds.
|
java.util.List<java.lang.String> |
similarFields()
Gets the similarFields.
|
java.util.List<java.lang.String> |
sort()
Gets the sort.
|
java.util.List<java.lang.String> |
xReturn()
Gets the xReturn.
|
protected java.lang.String environmentId
protected java.lang.String collectionId
protected java.lang.String filter
protected java.lang.String query
protected java.lang.String naturalLanguageQuery
protected java.lang.Boolean passages
protected java.lang.String aggregation
protected java.lang.Long count
protected java.util.List<java.lang.String> xReturn
protected java.lang.Long offset
protected java.util.List<java.lang.String> sort
protected java.lang.Boolean highlight
protected java.util.List<java.lang.String> passagesFields
protected java.lang.Long passagesCount
protected java.lang.Long passagesCharacters
protected java.lang.String deduplicateField
protected java.lang.Boolean similar
protected java.util.List<java.lang.String> similarDocumentIds
protected java.util.List<java.lang.String> similarFields
protected QueryNoticesOptions(QueryNoticesOptions.Builder builder)
public QueryNoticesOptions.Builder newBuilder()
public java.lang.String environmentId()
The ID of the environment.
public java.lang.String collectionId()
The ID of the collection.
public java.lang.String filter()
A cacheable query that excludes documents that don't mention the query content. Filter searches are better for metadata-type searches and for assessing the concepts in the data set.
public java.lang.String query()
A query search returns all documents in your data set with full enrichments and full text, but with the most relevant documents listed first.
public java.lang.String naturalLanguageQuery()
A natural language query that returns relevant documents by utilizing training data and natural language understanding.
public java.lang.Boolean passages()
A passages query that returns the most relevant passages from the results.
public java.lang.String aggregation()
An aggregation search that returns an exact answer by combining query search with filters. Useful for applications to build lists, tables, and time series. For a full list of possible aggregations, see the Query reference.
public java.lang.Long count()
Number of results to return. The maximum for the **count** and **offset** values together in any one query is **10000**.
public java.util.List<java.lang.String> xReturn()
A comma-separated list of the portion of the document hierarchy to return.
public java.lang.Long offset()
The number of query results to skip at the beginning. For example, if the total number of results that are returned is 10 and the offset is 8, it returns the last two results. The maximum for the **count** and **offset** values together in any one query is **10000**.
public java.util.List<java.lang.String> sort()
A comma-separated list of fields in the document to sort on. You can optionally specify a sort direction by prefixing the field with `-` for descending or `+` for ascending. Ascending is the default sort direction if no prefix is specified.
public java.lang.Boolean highlight()
When true, a highlight field is returned for each result which contains the fields which match the query with `` tags around the matching query terms.
public java.util.List<java.lang.String> passagesFields()
A comma-separated list of fields that passages are drawn from. If this parameter not specified, then all top-level fields are included.
public java.lang.Long passagesCount()
The maximum number of passages to return. The search returns fewer passages if the requested total is not found.
public java.lang.Long passagesCharacters()
The approximate number of characters that any one passage will have.
public java.lang.String deduplicateField()
When specified, duplicate results based on the field specified are removed from the returned results. Duplicate comparison is limited to the current query only, **offset** is not considered. This parameter is currently Beta functionality.
public java.lang.Boolean similar()
When `true`, results are returned based on their similarity to the document IDs specified in the **similar.document_ids** parameter.
public java.util.List<java.lang.String> similarDocumentIds()
A comma-separated list of document IDs to find similar documents.
**Tip:** Include the **natural_language_query** parameter to expand the scope of the document similarity search with the natural language query. Other query parameters, such as **filter** and **query**, are subsequently applied and reduce the scope.
public java.util.List<java.lang.String> similarFields()
A comma-separated list of field names that are used as a basis for comparison to identify similar documents. If not specified, the entire document is used for comparison.