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 | Method and Description |
---|---|
String |
aggregation()
Gets the aggregation.
|
String |
collectionId()
Gets the collectionId.
|
Long |
count()
Gets the count.
|
String |
deduplicateField()
Gets the deduplicateField.
|
String |
environmentId()
Gets the environmentId.
|
String |
filter()
Gets the filter.
|
Boolean |
highlight()
Gets the highlight.
|
String |
naturalLanguageQuery()
Gets the naturalLanguageQuery.
|
QueryNoticesOptions.Builder |
newBuilder()
New builder.
|
Long |
offset()
Gets the offset.
|
Boolean |
passages()
Gets the passages.
|
Long |
passagesCharacters()
Gets the passagesCharacters.
|
Long |
passagesCount()
Gets the passagesCount.
|
List<String> |
passagesFields()
Gets the passagesFields.
|
String |
query()
Gets the query.
|
Boolean |
similar()
Gets the similar.
|
List<String> |
similarDocumentIds()
Gets the similarDocumentIds.
|
List<String> |
similarFields()
Gets the similarFields.
|
List<String> |
sort()
Gets the sort.
|
List<String> |
xReturn()
Gets the xReturn.
|
public QueryNoticesOptions.Builder newBuilder()
public String environmentId()
The ID of the environment.
public String collectionId()
The ID of the collection.
public 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 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 String naturalLanguageQuery()
A natural language query that returns relevant documents by utilizing training data and natural language understanding.
public Boolean passages()
A passages query that returns the most relevant passages from the results.
public 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 Long count()
Number of results to return. The maximum for the **count** and **offset** values together in any one query is **10000**.
public List<String> xReturn()
A comma-separated list of the portion of the document hierarchy to return.
public 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 List<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 Boolean highlight()
When true, a highlight field is returned for each result which contains the fields which match the query with `<em></em>` tags around the matching query terms.
public List<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 Long passagesCount()
The maximum number of passages to return. The search returns fewer passages if the requested total is not found.
public Long passagesCharacters()
The approximate number of characters that any one passage will have.
public 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 Boolean similar()
When `true`, results are returned based on their similarity to the document IDs specified in the **similar.document_ids** parameter.
public List<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.
Copyright © 2022 IBM Cloud. All rights reserved.