discoveryv1

package
v0.0.0-...-0deef17 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 20, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package discoveryv1 : Operations and models for the DiscoveryV1 service

Index

Constants

View Source
const (
	Collection_Status_Active      = "active"
	Collection_Status_Maintenance = "maintenance"
	Collection_Status_Pending     = "pending"
)

Constants associated with the Collection.Status property. The status of the collection.

View Source
const (
	CreateCollectionOptions_Language_Ar   = "ar"
	CreateCollectionOptions_Language_De   = "de"
	CreateCollectionOptions_Language_En   = "en"
	CreateCollectionOptions_Language_Es   = "es"
	CreateCollectionOptions_Language_Fr   = "fr"
	CreateCollectionOptions_Language_It   = "it"
	CreateCollectionOptions_Language_Ja   = "ja"
	CreateCollectionOptions_Language_Ko   = "ko"
	CreateCollectionOptions_Language_Nl   = "nl"
	CreateCollectionOptions_Language_Pt   = "pt"
	CreateCollectionOptions_Language_ZhCn = "zh-CN"
)

Constants associated with the CreateCollectionOptions.Language property. The language of the documents stored in the collection, in the form of an ISO 639-1 language code.

View Source
const (
	CreateCredentialsOptions_SourceType_Box                = "box"
	CreateCredentialsOptions_SourceType_CloudObjectStorage = "cloud_object_storage"
	CreateCredentialsOptions_SourceType_Salesforce         = "salesforce"
	CreateCredentialsOptions_SourceType_Sharepoint         = "sharepoint"
	CreateCredentialsOptions_SourceType_WebCrawl           = "web_crawl"
)

Constants associated with the CreateCredentialsOptions.SourceType property. The source that this credentials object connects to. - `box` indicates the credentials are used to connect an instance of Enterprise Box. - `salesforce` indicates the credentials are used to connect to Salesforce. - `sharepoint` indicates the credentials are used to connect to Microsoft SharePoint Online. - `web_crawl` indicates the credentials are used to perform a web crawl. = `cloud_object_storage` indicates the credentials are used to connect to an IBM Cloud Object Store.

View Source
const (
	CreateCredentialsOptions_Status_Connected = "connected"
	CreateCredentialsOptions_Status_Invalid   = "invalid"
)

Constants associated with the CreateCredentialsOptions.Status property. The current status of this set of credentials. `connected` indicates that the credentials are available to use with the source configuration of a collection. `invalid` refers to the credentials (for example, the password provided has expired) and must be corrected before they can be used with a collection.

View Source
const (
	CreateEnvironmentOptions_Size_L    = "L"
	CreateEnvironmentOptions_Size_Lt   = "LT"
	CreateEnvironmentOptions_Size_M    = "M"
	CreateEnvironmentOptions_Size_Ml   = "ML"
	CreateEnvironmentOptions_Size_Ms   = "MS"
	CreateEnvironmentOptions_Size_S    = "S"
	CreateEnvironmentOptions_Size_Xl   = "XL"
	CreateEnvironmentOptions_Size_Xs   = "XS"
	CreateEnvironmentOptions_Size_Xxl  = "XXL"
	CreateEnvironmentOptions_Size_Xxxl = "XXXL"
)

Constants associated with the CreateEnvironmentOptions.Size property. Size of the environment. In the Lite plan the default and only accepted value is `LT`, in all other plans the default is `S`.

View Source
const (
	CredentialDetails_CredentialType_Aws4Hmac         = "aws4_hmac"
	CredentialDetails_CredentialType_Basic            = "basic"
	CredentialDetails_CredentialType_Noauth           = "noauth"
	CredentialDetails_CredentialType_NtlmV1           = "ntlm_v1"
	CredentialDetails_CredentialType_Oauth2           = "oauth2"
	CredentialDetails_CredentialType_Saml             = "saml"
	CredentialDetails_CredentialType_UsernamePassword = "username_password"
)

Constants associated with the CredentialDetails.CredentialType property. The authentication method for this credentials definition. The **credential_type** specified must be supported by the **source_type**. The following combinations are possible:

- `"source_type": "box"` - valid `credential_type`s: `oauth2` - `"source_type": "salesforce"` - valid `credential_type`s: `username_password` - `"source_type": "sharepoint"` - valid `credential_type`s: `saml` with **source_version** of `online`, or `ntlm_v1` with **source_version** of `2016` - `"source_type": "web_crawl"` - valid `credential_type`s: `noauth` or `basic` - "source_type": "cloud_object_storage"` - valid `credential_type`s: `aws4_hmac`.

View Source
const (
	Credentials_SourceType_Box                = "box"
	Credentials_SourceType_CloudObjectStorage = "cloud_object_storage"
	Credentials_SourceType_Salesforce         = "salesforce"
	Credentials_SourceType_Sharepoint         = "sharepoint"
	Credentials_SourceType_WebCrawl           = "web_crawl"
)

Constants associated with the Credentials.SourceType property. The source that this credentials object connects to. - `box` indicates the credentials are used to connect an instance of Enterprise Box. - `salesforce` indicates the credentials are used to connect to Salesforce. - `sharepoint` indicates the credentials are used to connect to Microsoft SharePoint Online. - `web_crawl` indicates the credentials are used to perform a web crawl. = `cloud_object_storage` indicates the credentials are used to connect to an IBM Cloud Object Store.

View Source
const (
	Credentials_Status_Connected = "connected"
	Credentials_Status_Invalid   = "invalid"
)

Constants associated with the Credentials.Status property. The current status of this set of credentials. `connected` indicates that the credentials are available to use with the source configuration of a collection. `invalid` refers to the credentials (for example, the password provided has expired) and must be corrected before they can be used with a collection.

View Source
const (
	DocumentAccepted_Status_Pending    = "pending"
	DocumentAccepted_Status_Processing = "processing"
)

Constants associated with the DocumentAccepted.Status property. Status of the document in the ingestion process. A status of `processing` is returned for documents that are ingested with a *version* date before `2019-01-01`. The `pending` status is returned for all others.

View Source
const (
	DocumentStatus_Status_Available            = "available"
	DocumentStatus_Status_AvailableWithNotices = "available with notices"
	DocumentStatus_Status_Failed               = "failed"
	DocumentStatus_Status_Pending              = "pending"
	DocumentStatus_Status_Processing           = "processing"
)

Constants associated with the DocumentStatus.Status property. Status of the document in the ingestion process.

View Source
const (
	DocumentStatus_FileType_HTML = "html"
	DocumentStatus_FileType_JSON = "json"
	DocumentStatus_FileType_Pdf  = "pdf"
	DocumentStatus_FileType_Word = "word"
)

Constants associated with the DocumentStatus.FileType property. The type of the original source file.

View Source
const (
	EnrichmentOptions_Language_Ar = "ar"
	EnrichmentOptions_Language_De = "de"
	EnrichmentOptions_Language_En = "en"
	EnrichmentOptions_Language_Es = "es"
	EnrichmentOptions_Language_Fr = "fr"
	EnrichmentOptions_Language_It = "it"
	EnrichmentOptions_Language_Pt = "pt"
	EnrichmentOptions_Language_Ru = "ru"
	EnrichmentOptions_Language_Sv = "sv"
)

Constants associated with the EnrichmentOptions.Language property. ISO 639-1 code indicating the language to use for the analysis. This code overrides the automatic language detection performed by the service. Valid codes are `ar` (Arabic), `en` (English), `fr` (French), `de` (German), `it` (Italian), `pt` (Portuguese), `ru` (Russian), `es` (Spanish), and `sv` (Swedish). **Note:** Not all features support all languages, automatic detection is recommended.

View Source
const (
	Environment_Status_Active      = "active"
	Environment_Status_Maintenance = "maintenance"
	Environment_Status_Pending     = "pending"
	Environment_Status_Resizing    = "resizing"
)

Constants associated with the Environment.Status property. Current status of the environment. `resizing` is displayed when a request to increase the environment size has been made, but is still in the process of being completed.

View Source
const (
	Environment_Size_L    = "L"
	Environment_Size_Lt   = "LT"
	Environment_Size_M    = "M"
	Environment_Size_Ml   = "ML"
	Environment_Size_Ms   = "MS"
	Environment_Size_S    = "S"
	Environment_Size_Xl   = "XL"
	Environment_Size_Xs   = "XS"
	Environment_Size_Xxl  = "XXL"
	Environment_Size_Xxxl = "XXXL"
)

Constants associated with the Environment.Size property. Current size of the environment.

View Source
const (
	Field_Type_Binary  = "binary"
	Field_Type_Boolean = "boolean"
	Field_Type_Byte    = "byte"
	Field_Type_Date    = "date"
	Field_Type_Double  = "double"
	Field_Type_Float   = "float"
	Field_Type_Integer = "integer"
	Field_Type_Long    = "long"
	Field_Type_Nested  = "nested"
	Field_Type_Short   = "short"
	Field_Type_String  = "string"
)

Constants associated with the Field.Type property. The type of the field.

View Source
const (
	Gateway_Status_Connected = "connected"
	Gateway_Status_Idle      = "idle"
)

Constants associated with the Gateway.Status property. The current status of the gateway. `connected` means the gateway is connected to the remotly installed gateway. `idle` means this gateway is not currently in use.

View Source
const (
	LogQueryResponseResult_DocumentType_Event = "event"
	LogQueryResponseResult_DocumentType_Query = "query"
)

Constants associated with the LogQueryResponseResult.DocumentType property. The type of log entry returned.

**query** indicates that the log represents the results of a call to the single collection **query** method.

**event** indicates that the log represents  a call to the **events** API.
View Source
const (
	LogQueryResponseResult_EventType_Click = "click"
	LogQueryResponseResult_EventType_Query = "query"
)

Constants associated with the LogQueryResponseResult.EventType property. The type of event that this object respresents. Possible values are

  • `query` the log of a query to a collection

  • `click` the result of a call to the **events** endpoint.

View Source
const (
	NormalizationOperation_Operation_Copy        = "copy"
	NormalizationOperation_Operation_Merge       = "merge"
	NormalizationOperation_Operation_Move        = "move"
	NormalizationOperation_Operation_Remove      = "remove"
	NormalizationOperation_Operation_RemoveNulls = "remove_nulls"
)

Constants associated with the NormalizationOperation.Operation property. Identifies what type of operation to perform.

**copy** - Copies the value of the **source_field** to the **destination_field** field. If the **destination_field** already exists, then the value of the **source_field** overwrites the original value of the **destination_field**.

**move** - Renames (moves) the **source_field** to the **destination_field**. If the **destination_field** already exists, then the value of the **source_field** overwrites the original value of the **destination_field**. Rename is identical to copy, except that the **source_field** is removed after the value has been copied to the **destination_field** (it is the same as a _copy_ followed by a _remove_).

**merge** - Merges the value of the **source_field** with the value of the **destination_field**. The **destination_field** is converted into an array if it is not already an array, and the value of the **source_field** is appended to the array. This operation removes the **source_field** after the merge. If the **source_field** does not exist in the current document, then the **destination_field** is still converted into an array (if it is not an array already). This conversion ensures the type for **destination_field** is consistent across all documents.

**remove** - Deletes the **source_field** field. The **destination_field** is ignored for this operation.

**remove_nulls** - Removes all nested null (blank) field values from the ingested document. **source_field** and **destination_field** are ignored by this operation because _remove_nulls_ operates on the entire ingested document. Typically, **remove_nulls** is invoked as the last normalization operation (if it is invoked at all, it can be time-expensive).

View Source
const (
	Notice_Severity_Error   = "error"
	Notice_Severity_Warning = "warning"
)

Constants associated with the Notice.Severity property. Severity level of the notice.

View Source
const (
	QueryNoticesResult_FileType_HTML = "html"
	QueryNoticesResult_FileType_JSON = "json"
	QueryNoticesResult_FileType_Pdf  = "pdf"
	QueryNoticesResult_FileType_Word = "word"
)

Constants associated with the QueryNoticesResult.FileType property. The type of the original source file.

View Source
const (
	RetrievalDetails_DocumentRetrievalStrategy_ContinuousRelevancyTraining = "continuous_relevancy_training"
	RetrievalDetails_DocumentRetrievalStrategy_RelevancyTraining           = "relevancy_training"
	RetrievalDetails_DocumentRetrievalStrategy_Untrained                   = "untrained"
)

Constants associated with the RetrievalDetails.DocumentRetrievalStrategy property. Indentifies the document retrieval strategy used for this query. `relevancy_training` indicates that the results were returned using a relevancy trained model. `continuous_relevancy_training` indicates that the results were returned using the continuous relevancy training model created by result feedback analysis. `untrained` means the results were returned using the standard untrained model.

**Note**: In the event of trained collections being queried, but the trained model is not used to return results,

the **document_retrieval_strategy** will be listed as `untrained`.

View Source
const (
	SearchStatus_Status_InsufficentData = "INSUFFICENT_DATA"
	SearchStatus_Status_NoData          = "NO_DATA"
	SearchStatus_Status_NotApplicable   = "NOT_APPLICABLE"
	SearchStatus_Status_Trained         = "TRAINED"
	SearchStatus_Status_Training        = "TRAINING"
)

Constants associated with the SearchStatus.Status property. The current status of Continuous Relevancy Training for this environment.

View Source
const (
	Source_Type_Box                = "box"
	Source_Type_CloudObjectStorage = "cloud_object_storage"
	Source_Type_Salesforce         = "salesforce"
	Source_Type_Sharepoint         = "sharepoint"
	Source_Type_WebCrawl           = "web_crawl"
)

Constants associated with the Source.Type property. The type of source to connect to. - `box` indicates the configuration is to connect an instance of Enterprise Box. - `salesforce` indicates the configuration is to connect to Salesforce. - `sharepoint` indicates the configuration is to connect to Microsoft SharePoint Online. - `web_crawl` indicates the configuration is to perform a web page crawl. - `cloud_object_storage` indicates the configuration is to connect to a cloud object store.

View Source
const (
	SourceOptionsWebCrawl_CrawlSpeed_Aggressive = "aggressive"
	SourceOptionsWebCrawl_CrawlSpeed_Gentle     = "gentle"
	SourceOptionsWebCrawl_CrawlSpeed_Normal     = "normal"
)

Constants associated with the SourceOptionsWebCrawl.CrawlSpeed property. The number of concurrent URLs to fetch. `gentle` means one URL is fetched at a time with a delay between each call. `normal` means as many as two URLs are fectched concurrently with a short delay between fetch calls. `aggressive` means that up to ten URLs are fetched concurrently with a short delay between fetch calls.

View Source
const (
	SourceSchedule_Frequency_Daily       = "daily"
	SourceSchedule_Frequency_FiveMinutes = "five_minutes"
	SourceSchedule_Frequency_Hourly      = "hourly"
	SourceSchedule_Frequency_Monthly     = "monthly"
	SourceSchedule_Frequency_Weekly      = "weekly"
)

Constants associated with the SourceSchedule.Frequency property. The crawl schedule in the specified **time_zone**.

- `five_minutes`: Runs every five minutes. - `hourly`: Runs every hour. - `daily`: Runs every day between 00:00 and 06:00. - `weekly`: Runs every week on Sunday between 00:00 and 06:00. - `monthly`: Runs the on the first Sunday of every month between 00:00 and 06:00.

View Source
const (
	SourceStatus_Status_Complete      = "complete"
	SourceStatus_Status_NotConfigured = "not_configured"
	SourceStatus_Status_Queued        = "queued"
	SourceStatus_Status_Running       = "running"
	SourceStatus_Status_Unknown       = "unknown"
)

Constants associated with the SourceStatus.Status property. The current status of the source crawl for this collection. This field returns `not_configured` if the default configuration for this source does not have a **source** object defined.

- `running` indicates that a crawl to fetch more documents is in progress. - `complete` indicates that the crawl has completed with no errors. - `queued` indicates that the crawl has been paused by the system and will automatically restart when possible. - `unknown` indicates that an unidentified error has occured in the service.

View Source
const (
	TokenDictStatusResponse_Status_Active   = "active"
	TokenDictStatusResponse_Status_NotFound = "not found"
	TokenDictStatusResponse_Status_Pending  = "pending"
)

Constants associated with the TokenDictStatusResponse.Status property. Current wordlist status for the specified collection.

View Source
const (
	UpdateCredentialsOptions_SourceType_Box                = "box"
	UpdateCredentialsOptions_SourceType_CloudObjectStorage = "cloud_object_storage"
	UpdateCredentialsOptions_SourceType_Salesforce         = "salesforce"
	UpdateCredentialsOptions_SourceType_Sharepoint         = "sharepoint"
	UpdateCredentialsOptions_SourceType_WebCrawl           = "web_crawl"
)

Constants associated with the UpdateCredentialsOptions.SourceType property. The source that this credentials object connects to. - `box` indicates the credentials are used to connect an instance of Enterprise Box. - `salesforce` indicates the credentials are used to connect to Salesforce. - `sharepoint` indicates the credentials are used to connect to Microsoft SharePoint Online. - `web_crawl` indicates the credentials are used to perform a web crawl. = `cloud_object_storage` indicates the credentials are used to connect to an IBM Cloud Object Store.

View Source
const (
	UpdateCredentialsOptions_Status_Connected = "connected"
	UpdateCredentialsOptions_Status_Invalid   = "invalid"
)

Constants associated with the UpdateCredentialsOptions.Status property. The current status of this set of credentials. `connected` indicates that the credentials are available to use with the source configuration of a collection. `invalid` refers to the credentials (for example, the password provided has expired) and must be corrected before they can be used with a collection.

View Source
const (
	UpdateEnvironmentOptions_Size_L    = "L"
	UpdateEnvironmentOptions_Size_M    = "M"
	UpdateEnvironmentOptions_Size_Ml   = "ML"
	UpdateEnvironmentOptions_Size_Ms   = "MS"
	UpdateEnvironmentOptions_Size_S    = "S"
	UpdateEnvironmentOptions_Size_Xl   = "XL"
	UpdateEnvironmentOptions_Size_Xxl  = "XXL"
	UpdateEnvironmentOptions_Size_Xxxl = "XXXL"
)

Constants associated with the UpdateEnvironmentOptions.Size property. Size that the environment should be increased to. Environment size cannot be modified when using a Lite plan. Environment size can only increased and not decreased.

View Source
const (
	CreateEventOptions_Type_Click = "click"
)

Constants associated with the CreateEventOptions.Type property. The event type to be created.

View Source
const (
	CreateEventResponse_Type_Click = "click"
)

Constants associated with the CreateEventResponse.Type property. The event type that was created.

View Source
const (
	CredentialDetails_SourceVersion_Online = "online"
)

Constants associated with the CredentialDetails.SourceVersion property. The type of Sharepoint repository to connect to. Only valid, and required, with a **source_type** of `sharepoint`.

View Source
const (
	DeleteCollectionResponse_Status_Deleted = "deleted"
)

Constants associated with the DeleteCollectionResponse.Status property. The status of the collection. The status of a successful deletion operation is `deleted`.

View Source
const (
	DeleteConfigurationResponse_Status_Deleted = "deleted"
)

Constants associated with the DeleteConfigurationResponse.Status property. Status of the configuration. A deleted configuration has the status deleted.

View Source
const (
	DeleteCredentials_Status_Deleted = "deleted"
)

Constants associated with the DeleteCredentials.Status property. The status of the deletion request.

View Source
const (
	DeleteDocumentResponse_Status_Deleted = "deleted"
)

Constants associated with the DeleteDocumentResponse.Status property. Status of the document. A deleted document has the status deleted.

View Source
const (
	DeleteEnvironmentResponse_Status_Deleted = "deleted"
)

Constants associated with the DeleteEnvironmentResponse.Status property. Status of the environment.

View Source
const (
	GetMetricsEventRateOptions_ResultType_Document = "document"
)

Constants associated with the GetMetricsEventRateOptions.ResultType property. The type of result to consider when calculating the metric.

View Source
const (
	GetMetricsQueryEventOptions_ResultType_Document = "document"
)

Constants associated with the GetMetricsQueryEventOptions.ResultType property. The type of result to consider when calculating the metric.

View Source
const (
	GetMetricsQueryNoResultsOptions_ResultType_Document = "document"
)

Constants associated with the GetMetricsQueryNoResultsOptions.ResultType property. The type of result to consider when calculating the metric.

View Source
const (
	GetMetricsQueryOptions_ResultType_Document = "document"
)

Constants associated with the GetMetricsQueryOptions.ResultType property. The type of result to consider when calculating the metric.

View Source
const (
	LogQueryResponseResult_ResultType_Document = "document"
)

Constants associated with the LogQueryResponseResult.ResultType property. The type of result that this **event** is associated with. Only returned with logs of type `event`.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddDocumentOptions

type AddDocumentOptions struct {

	// The ID of the environment.
	EnvironmentID *string `json:"environment_id" validate:"required"`

	// The ID of the collection.
	CollectionID *string `json:"collection_id" validate:"required"`

	// The content of the document to ingest. The maximum supported file size when adding a file to a collection is 50
	// megabytes, the maximum supported file size when testing a configuration is 1 megabyte. Files larger than the
	// supported size are rejected.
	File io.ReadCloser `json:"file,omitempty"`

	// The filename for file.
	Filename *string `json:"filename,omitempty"`

	// The content type of file.
	FileContentType *string `json:"file_content_type,omitempty"`

	// The maximum supported metadata file size is 1 MB. Metadata parts larger than 1 MB are rejected. Example:  “` {
	//   "Creator": "Johnny Appleseed",
	//   "Subject": "Apples"
	// } “`.
	Metadata *string `json:"metadata,omitempty"`

	// Allows users to set headers to be GDPR compliant
	Headers map[string]string
}

AddDocumentOptions : The AddDocument options.

func (*AddDocumentOptions) SetCollectionID

func (options *AddDocumentOptions) SetCollectionID(collectionID string) *AddDocumentOptions

SetCollectionID : Allow user to set CollectionID

func (*AddDocumentOptions) SetEnvironmentID

func (options *AddDocumentOptions) SetEnvironmentID(environmentID string) *AddDocumentOptions

SetEnvironmentID : Allow user to set EnvironmentID

func (*AddDocumentOptions) SetFile

func (options *AddDocumentOptions) SetFile(file io.ReadCloser) *AddDocumentOptions

SetFile : Allow user to set File

func (*AddDocumentOptions) SetFileContentType

func (options *AddDocumentOptions) SetFileContentType(fileContentType string) *AddDocumentOptions

SetFileContentType : Allow user to set FileContentType

func (*AddDocumentOptions) SetFilename

func (options *AddDocumentOptions) SetFilename(filename string) *AddDocumentOptions

SetFilename : Allow user to set Filename

func (*AddDocumentOptions) SetHeaders

func (options *AddDocumentOptions) SetHeaders(param map[string]string) *AddDocumentOptions

SetHeaders : Allow user to set Headers

func (*AddDocumentOptions) SetMetadata

func (options *AddDocumentOptions) SetMetadata(metadata string) *AddDocumentOptions

SetMetadata : Allow user to set Metadata

type AddTrainingDataOptions

type AddTrainingDataOptions struct {

	// The ID of the environment.
	EnvironmentID *string `json:"environment_id" validate:"required"`

	// The ID of the collection.
	CollectionID *string `json:"collection_id" validate:"required"`

	// The natural text query for the new training query.
	NaturalLanguageQuery *string `json:"natural_language_query,omitempty"`

	// The filter used on the collection before the **natural_language_query** is applied.
	Filter *string `json:"filter,omitempty"`

	// Array of training examples.
	Examples []TrainingExample `json:"examples,omitempty"`

	// Allows users to set headers to be GDPR compliant
	Headers map[string]string
}

AddTrainingDataOptions : The AddTrainingData options.

func (*AddTrainingDataOptions) SetCollectionID

func (options *AddTrainingDataOptions) SetCollectionID(collectionID string) *AddTrainingDataOptions

SetCollectionID : Allow user to set CollectionID

func (*AddTrainingDataOptions) SetEnvironmentID

func (options *AddTrainingDataOptions) SetEnvironmentID(environmentID string) *AddTrainingDataOptions

SetEnvironmentID : Allow user to set EnvironmentID

func (*AddTrainingDataOptions) SetExamples

func (options *AddTrainingDataOptions) SetExamples(examples []TrainingExample) *AddTrainingDataOptions

SetExamples : Allow user to set Examples

func (*AddTrainingDataOptions) SetFilter

func (options *AddTrainingDataOptions) SetFilter(filter string) *AddTrainingDataOptions

SetFilter : Allow user to set Filter

func (*AddTrainingDataOptions) SetHeaders

func (options *AddTrainingDataOptions) SetHeaders(param map[string]string) *AddTrainingDataOptions

SetHeaders : Allow user to set Headers

func (*AddTrainingDataOptions) SetNaturalLanguageQuery

func (options *AddTrainingDataOptions) SetNaturalLanguageQuery(naturalLanguageQuery string) *AddTrainingDataOptions

SetNaturalLanguageQuery : Allow user to set NaturalLanguageQuery

type AggregationResult

type AggregationResult struct {

	// Key that matched the aggregation type.
	Key *string `json:"key,omitempty"`

	// Number of matching results.
	MatchingResults *int64 `json:"matching_results,omitempty"`

	// Aggregations returned in the case of chained aggregations.
	Aggregations []QueryAggregation `json:"aggregations,omitempty"`
}

AggregationResult : Aggregation results for the specified query.

type Calculation

type Calculation struct {

	// The field where the aggregation is located in the document.
	Field *string `json:"field,omitempty"`

	// Value of the aggregation.
	Value *float64 `json:"value,omitempty"`
}

Calculation : Calculation struct

type Collection

type Collection struct {

	// The unique identifier of the collection.
	CollectionID *string `json:"collection_id,omitempty"`

	// The name of the collection.
	Name *string `json:"name,omitempty"`

	// The description of the collection.
	Description *string `json:"description,omitempty"`

	// The creation date of the collection in the format yyyy-MM-dd'T'HH:mmcon:ss.SSS'Z'.
	Created *strfmt.DateTime `json:"created,omitempty"`

	// The timestamp of when the collection was last updated in the format yyyy-MM-dd'T'HH:mm:ss.SSS'Z'.
	Updated *strfmt.DateTime `json:"updated,omitempty"`

	// The status of the collection.
	Status *string `json:"status,omitempty"`

	// The unique identifier of the collection's configuration.
	ConfigurationID *string `json:"configuration_id,omitempty"`

	// The language of the documents stored in the collection. Permitted values include `en` (English), `de` (German), and
	// `es` (Spanish).
	Language *string `json:"language,omitempty"`

	// Object containing collection document count information.
	DocumentCounts *DocumentCounts `json:"document_counts,omitempty"`

	// Summary of the disk usage statistics for this collection.
	DiskUsage *CollectionDiskUsage `json:"disk_usage,omitempty"`

	// Training status details.
	TrainingStatus *TrainingStatus `json:"training_status,omitempty"`

	// Object containing information about the crawl status of this collection.
	CrawlStatus *CollectionCrawlStatus `json:"crawl_status,omitempty"`

	// Object containing smart document understanding information for this collection.
	SmartDocumentUnderstanding *SduStatus `json:"smart_document_understanding,omitempty"`
}

Collection : A collection for storing documents.

type CollectionCrawlStatus

type CollectionCrawlStatus struct {

	// Object containing source crawl status information.
	SourceCrawl *SourceStatus `json:"source_crawl,omitempty"`
}

CollectionCrawlStatus : Object containing information about the crawl status of this collection.

type CollectionDiskUsage

type CollectionDiskUsage struct {

	// Number of bytes used by the collection.
	UsedBytes *int64 `json:"used_bytes,omitempty"`
}

CollectionDiskUsage : Summary of the disk usage statistics for this collection.

type CollectionUsage

type CollectionUsage struct {

	// Number of active collections in the environment.
	Available *int64 `json:"available,omitempty"`

	// Total number of collections allowed in the environment.
	MaximumAllowed *int64 `json:"maximum_allowed,omitempty"`
}

CollectionUsage : Summary of the collection usage in the environment.

type Completions

type Completions struct {

	// Array of autcomplete suggestion based on the provided prefix.
	Completions []string `json:"completions,omitempty"`
}

Completions : An object containing an array of autocompletion suggestions.

type Configuration

type Configuration struct {

	// The unique identifier of the configuration.
	ConfigurationID *string `json:"configuration_id,omitempty"`

	// The name of the configuration.
	Name *string `json:"name" validate:"required"`

	// The creation date of the configuration in the format yyyy-MM-dd'T'HH:mm:ss.SSS'Z'.
	Created *strfmt.DateTime `json:"created,omitempty"`

	// The timestamp of when the configuration was last updated in the format yyyy-MM-dd'T'HH:mm:ss.SSS'Z'.
	Updated *strfmt.DateTime `json:"updated,omitempty"`

	// The description of the configuration, if available.
	Description *string `json:"description,omitempty"`

	// Document conversion settings.
	Conversions *Conversions `json:"conversions,omitempty"`

	// An array of document enrichment settings for the configuration.
	Enrichments []Enrichment `json:"enrichments,omitempty"`

	// Defines operations that can be used to transform the final output JSON into a normalized form. Operations are
	// executed in the order that they appear in the array.
	Normalizations []NormalizationOperation `json:"normalizations,omitempty"`

	// Object containing source parameters for the configuration.
	Source *Source `json:"source,omitempty"`
}

Configuration : A custom configuration for the environment.

type Conversions

type Conversions struct {

	// A list of PDF conversion settings.
	Pdf *PdfSettings `json:"pdf,omitempty"`

	// A list of Word conversion settings.
	Word *WordSettings `json:"word,omitempty"`

	// A list of HTML conversion settings.
	HTML *HTMLSettings `json:"html,omitempty"`

	// A list of Document Segmentation settings.
	Segment *SegmentSettings `json:"segment,omitempty"`

	// Defines operations that can be used to transform the final output JSON into a normalized form. Operations are
	// executed in the order that they appear in the array.
	JSONNormalizations []NormalizationOperation `json:"json_normalizations,omitempty"`

	// When `true`, automatic text extraction from images (this includes images embedded in supported document formats, for
	// example PDF, and suppported image formats, for example TIFF) is performed on documents uploaded to the collection.
	// This field is supported on **Advanced** and higher plans only. **Lite** plans do not support image text recognition.
	ImageTextRecognition *bool `json:"image_text_recognition,omitempty"`
}

Conversions : Document conversion settings.

type CreateCollectionOptions

type CreateCollectionOptions struct {

	// The ID of the environment.
	EnvironmentID *string `json:"environment_id" validate:"required"`

	// The name of the collection to be created.
	Name *string `json:"name" validate:"required"`

	// A description of the collection.
	Description *string `json:"description,omitempty"`

	// The ID of the configuration in which the collection is to be created.
	ConfigurationID *string `json:"configuration_id,omitempty"`

	// The language of the documents stored in the collection, in the form of an ISO 639-1 language code.
	Language *string `json:"language,omitempty"`

	// Allows users to set headers to be GDPR compliant
	Headers map[string]string
}

CreateCollectionOptions : The CreateCollection options.

func (*CreateCollectionOptions) SetConfigurationID

func (options *CreateCollectionOptions) SetConfigurationID(configurationID string) *CreateCollectionOptions

SetConfigurationID : Allow user to set ConfigurationID

func (*CreateCollectionOptions) SetDescription

func (options *CreateCollectionOptions) SetDescription(description string) *CreateCollectionOptions

SetDescription : Allow user to set Description

func (*CreateCollectionOptions) SetEnvironmentID

func (options *CreateCollectionOptions) SetEnvironmentID(environmentID string) *CreateCollectionOptions

SetEnvironmentID : Allow user to set EnvironmentID

func (*CreateCollectionOptions) SetHeaders

func (options *CreateCollectionOptions) SetHeaders(param map[string]string) *CreateCollectionOptions

SetHeaders : Allow user to set Headers

func (*CreateCollectionOptions) SetLanguage

func (options *CreateCollectionOptions) SetLanguage(language string) *CreateCollectionOptions

SetLanguage : Allow user to set Language

func (*CreateCollectionOptions) SetName

func (options *CreateCollectionOptions) SetName(name string) *CreateCollectionOptions

SetName : Allow user to set Name

type CreateConfigurationOptions

type CreateConfigurationOptions struct {

	// The ID of the environment.
	EnvironmentID *string `json:"environment_id" validate:"required"`

	// The name of the configuration.
	Name *string `json:"name" validate:"required"`

	// The description of the configuration, if available.
	Description *string `json:"description,omitempty"`

	// Document conversion settings.
	Conversions *Conversions `json:"conversions,omitempty"`

	// An array of document enrichment settings for the configuration.
	Enrichments []Enrichment `json:"enrichments,omitempty"`

	// Defines operations that can be used to transform the final output JSON into a normalized form. Operations are
	// executed in the order that they appear in the array.
	Normalizations []NormalizationOperation `json:"normalizations,omitempty"`

	// Object containing source parameters for the configuration.
	Source *Source `json:"source,omitempty"`

	// Allows users to set headers to be GDPR compliant
	Headers map[string]string
}

CreateConfigurationOptions : The CreateConfiguration options.

func (*CreateConfigurationOptions) SetConversions

func (options *CreateConfigurationOptions) SetConversions(conversions *Conversions) *CreateConfigurationOptions

SetConversions : Allow user to set Conversions

func (*CreateConfigurationOptions) SetDescription

func (options *CreateConfigurationOptions) SetDescription(description string) *CreateConfigurationOptions

SetDescription : Allow user to set Description

func (*CreateConfigurationOptions) SetEnrichments

func (options *CreateConfigurationOptions) SetEnrichments(enrichments []Enrichment) *CreateConfigurationOptions

SetEnrichments : Allow user to set Enrichments

func (*CreateConfigurationOptions) SetEnvironmentID

func (options *CreateConfigurationOptions) SetEnvironmentID(environmentID string) *CreateConfigurationOptions

SetEnvironmentID : Allow user to set EnvironmentID

func (*CreateConfigurationOptions) SetHeaders

func (options *CreateConfigurationOptions) SetHeaders(param map[string]string) *CreateConfigurationOptions

SetHeaders : Allow user to set Headers

func (*CreateConfigurationOptions) SetName

SetName : Allow user to set Name

func (*CreateConfigurationOptions) SetNormalizations

func (options *CreateConfigurationOptions) SetNormalizations(normalizations []NormalizationOperation) *CreateConfigurationOptions

SetNormalizations : Allow user to set Normalizations

func (*CreateConfigurationOptions) SetSource

func (options *CreateConfigurationOptions) SetSource(source *Source) *CreateConfigurationOptions

SetSource : Allow user to set Source

type CreateCredentialsOptions

type CreateCredentialsOptions struct {

	// The ID of the environment.
	EnvironmentID *string `json:"environment_id" validate:"required"`

	// The source that this credentials object connects to.
	// -  `box` indicates the credentials are used to connect an instance of Enterprise Box.
	// -  `salesforce` indicates the credentials are used to connect to Salesforce.
	// -  `sharepoint` indicates the credentials are used to connect to Microsoft SharePoint Online.
	// -  `web_crawl` indicates the credentials are used to perform a web crawl.
	// =  `cloud_object_storage` indicates the credentials are used to connect to an IBM Cloud Object Store.
	SourceType *string `json:"source_type,omitempty"`

	// Object containing details of the stored credentials.
	//
	// Obtain credentials for your source from the administrator of the source.
	CredentialDetails *CredentialDetails `json:"credential_details,omitempty"`

	// The current status of this set of credentials. `connected` indicates that the credentials are available to use with
	// the source configuration of a collection. `invalid` refers to the credentials (for example, the password provided
	// has expired) and must be corrected before they can be used with a collection.
	Status *string `json:"status,omitempty"`

	// Allows users to set headers to be GDPR compliant
	Headers map[string]string
}

CreateCredentialsOptions : The CreateCredentials options.

func (*CreateCredentialsOptions) SetCredentialDetails

func (options *CreateCredentialsOptions) SetCredentialDetails(credentialDetails *CredentialDetails) *CreateCredentialsOptions

SetCredentialDetails : Allow user to set CredentialDetails

func (*CreateCredentialsOptions) SetEnvironmentID

func (options *CreateCredentialsOptions) SetEnvironmentID(environmentID string) *CreateCredentialsOptions

SetEnvironmentID : Allow user to set EnvironmentID

func (*CreateCredentialsOptions) SetHeaders

func (options *CreateCredentialsOptions) SetHeaders(param map[string]string) *CreateCredentialsOptions

SetHeaders : Allow user to set Headers

func (*CreateCredentialsOptions) SetSourceType

func (options *CreateCredentialsOptions) SetSourceType(sourceType string) *CreateCredentialsOptions

SetSourceType : Allow user to set SourceType

func (*CreateCredentialsOptions) SetStatus

func (options *CreateCredentialsOptions) SetStatus(status string) *CreateCredentialsOptions

SetStatus : Allow user to set Status

type CreateEnvironmentOptions

type CreateEnvironmentOptions struct {

	// Name that identifies the environment.
	Name *string `json:"name" validate:"required"`

	// Description of the environment.
	Description *string `json:"description,omitempty"`

	// Size of the environment. In the Lite plan the default and only accepted value is `LT`, in all other plans the
	// default is `S`.
	Size *string `json:"size,omitempty"`

	// Allows users to set headers to be GDPR compliant
	Headers map[string]string
}

CreateEnvironmentOptions : The CreateEnvironment options.

func (*CreateEnvironmentOptions) SetDescription

func (options *CreateEnvironmentOptions) SetDescription(description string) *CreateEnvironmentOptions

SetDescription : Allow user to set Description

func (*CreateEnvironmentOptions) SetHeaders

func (options *CreateEnvironmentOptions) SetHeaders(param map[string]string) *CreateEnvironmentOptions

SetHeaders : Allow user to set Headers

func (*CreateEnvironmentOptions) SetName

SetName : Allow user to set Name

func (*CreateEnvironmentOptions) SetSize

SetSize : Allow user to set Size

type CreateEventOptions

type CreateEventOptions struct {

	// The event type to be created.
	Type *string `json:"type" validate:"required"`

	// Query event data object.
	Data *EventData `json:"data" validate:"required"`

	// Allows users to set headers to be GDPR compliant
	Headers map[string]string
}

CreateEventOptions : The CreateEvent options.

func (*CreateEventOptions) SetData

func (options *CreateEventOptions) SetData(data *EventData) *CreateEventOptions

SetData : Allow user to set Data

func (*CreateEventOptions) SetHeaders

func (options *CreateEventOptions) SetHeaders(param map[string]string) *CreateEventOptions

SetHeaders : Allow user to set Headers

func (*CreateEventOptions) SetType

func (options *CreateEventOptions) SetType(typeVar string) *CreateEventOptions

SetType : Allow user to set Type

type CreateEventResponse

type CreateEventResponse struct {

	// The event type that was created.
	Type *string `json:"type,omitempty"`

	// Query event data object.
	Data *EventData `json:"data,omitempty"`
}

CreateEventResponse : An object defining the event being created.

type CreateExpansionsOptions

type CreateExpansionsOptions struct {

	// The ID of the environment.
	EnvironmentID *string `json:"environment_id" validate:"required"`

	// The ID of the collection.
	CollectionID *string `json:"collection_id" validate:"required"`

	// An array of query expansion definitions.
	//
	//  Each object in the **expansions** array represents a term or set of terms that will be expanded into other terms.
	// Each expansion object can be configured as bidirectional or unidirectional. Bidirectional means that all terms are
	// expanded to all other terms in the object. Unidirectional means that a set list of terms can be expanded into a
	// second list of terms.
	//
	//  To create a bi-directional expansion specify an **expanded_terms** array. When found in a query, all items in the
	// **expanded_terms** array are then expanded to the other items in the same array.
	//
	//  To create a uni-directional expansion, specify both an array of **input_terms** and an array of **expanded_terms**.
	// When items in the **input_terms** array are present in a query, they are expanded using the items listed in the
	// **expanded_terms** array.
	Expansions []Expansion `json:"expansions" validate:"required"`

	// Allows users to set headers to be GDPR compliant
	Headers map[string]string
}

CreateExpansionsOptions : The CreateExpansions options.

func (*CreateExpansionsOptions) SetCollectionID

func (options *CreateExpansionsOptions) SetCollectionID(collectionID string) *CreateExpansionsOptions

SetCollectionID : Allow user to set CollectionID

func (*CreateExpansionsOptions) SetEnvironmentID

func (options *CreateExpansionsOptions) SetEnvironmentID(environmentID string) *CreateExpansionsOptions

SetEnvironmentID : Allow user to set EnvironmentID

func (*CreateExpansionsOptions) SetExpansions

func (options *CreateExpansionsOptions) SetExpansions(expansions []Expansion) *CreateExpansionsOptions

SetExpansions : Allow user to set Expansions

func (*CreateExpansionsOptions) SetHeaders

func (options *CreateExpansionsOptions) SetHeaders(param map[string]string) *CreateExpansionsOptions

SetHeaders : Allow user to set Headers

type CreateGatewayOptions

type CreateGatewayOptions struct {

	// The ID of the environment.
	EnvironmentID *string `json:"environment_id" validate:"required"`

	// User-defined name.
	Name *string `json:"name,omitempty"`

	// Allows users to set headers to be GDPR compliant
	Headers map[string]string
}

CreateGatewayOptions : The CreateGateway options.

func (*CreateGatewayOptions) SetEnvironmentID

func (options *CreateGatewayOptions) SetEnvironmentID(environmentID string) *CreateGatewayOptions

SetEnvironmentID : Allow user to set EnvironmentID

func (*CreateGatewayOptions) SetHeaders

func (options *CreateGatewayOptions) SetHeaders(param map[string]string) *CreateGatewayOptions

SetHeaders : Allow user to set Headers

func (*CreateGatewayOptions) SetName

func (options *CreateGatewayOptions) SetName(name string) *CreateGatewayOptions

SetName : Allow user to set Name

type CreateStopwordListOptions

type CreateStopwordListOptions struct {

	// The ID of the environment.
	EnvironmentID *string `json:"environment_id" validate:"required"`

	// The ID of the collection.
	CollectionID *string `json:"collection_id" validate:"required"`

	// The content of the stopword list to ingest.
	StopwordFile io.ReadCloser `json:"stopword_file" validate:"required"`

	// The filename for stopwordFile.
	StopwordFilename *string `json:"stopword_filename" validate:"required"`

	// Allows users to set headers to be GDPR compliant
	Headers map[string]string
}

CreateStopwordListOptions : The CreateStopwordList options.

func (*CreateStopwordListOptions) SetCollectionID

func (options *CreateStopwordListOptions) SetCollectionID(collectionID string) *CreateStopwordListOptions

SetCollectionID : Allow user to set CollectionID

func (*CreateStopwordListOptions) SetEnvironmentID

func (options *CreateStopwordListOptions) SetEnvironmentID(environmentID string) *CreateStopwordListOptions

SetEnvironmentID : Allow user to set EnvironmentID

func (*CreateStopwordListOptions) SetHeaders

func (options *CreateStopwordListOptions) SetHeaders(param map[string]string) *CreateStopwordListOptions

SetHeaders : Allow user to set Headers

func (*CreateStopwordListOptions) SetStopwordFile

func (options *CreateStopwordListOptions) SetStopwordFile(stopwordFile io.ReadCloser) *CreateStopwordListOptions

SetStopwordFile : Allow user to set StopwordFile

func (*CreateStopwordListOptions) SetStopwordFilename

func (options *CreateStopwordListOptions) SetStopwordFilename(stopwordFilename string) *CreateStopwordListOptions

SetStopwordFilename : Allow user to set StopwordFilename

type CreateTokenizationDictionaryOptions

type CreateTokenizationDictionaryOptions struct {

	// The ID of the environment.
	EnvironmentID *string `json:"environment_id" validate:"required"`

	// The ID of the collection.
	CollectionID *string `json:"collection_id" validate:"required"`

	// An array of tokenization rules. Each rule contains, the original `text` string, component `tokens`, any alternate
	// character set `readings`, and which `part_of_speech` the text is from.
	TokenizationRules []TokenDictRule `json:"tokenization_rules,omitempty"`

	// Allows users to set headers to be GDPR compliant
	Headers map[string]string
}

CreateTokenizationDictionaryOptions : The CreateTokenizationDictionary options.

func (*CreateTokenizationDictionaryOptions) SetCollectionID

func (options *CreateTokenizationDictionaryOptions) SetCollectionID(collectionID string) *CreateTokenizationDictionaryOptions

SetCollectionID : Allow user to set CollectionID

func (*CreateTokenizationDictionaryOptions) SetEnvironmentID

func (options *CreateTokenizationDictionaryOptions) SetEnvironmentID(environmentID string) *CreateTokenizationDictionaryOptions

SetEnvironmentID : Allow user to set EnvironmentID

func (*CreateTokenizationDictionaryOptions) SetHeaders

SetHeaders : Allow user to set Headers

func (*CreateTokenizationDictionaryOptions) SetTokenizationRules

func (options *CreateTokenizationDictionaryOptions) SetTokenizationRules(tokenizationRules []TokenDictRule) *CreateTokenizationDictionaryOptions

SetTokenizationRules : Allow user to set TokenizationRules

type CreateTrainingExampleOptions

type CreateTrainingExampleOptions struct {

	// The ID of the environment.
	EnvironmentID *string `json:"environment_id" validate:"required"`

	// The ID of the collection.
	CollectionID *string `json:"collection_id" validate:"required"`

	// The ID of the query used for training.
	QueryID *string `json:"query_id" validate:"required"`

	// The document ID associated with this training example.
	DocumentID *string `json:"document_id,omitempty"`

	// The cross reference associated with this training example.
	CrossReference *string `json:"cross_reference,omitempty"`

	// The relevance of the training example.
	Relevance *int64 `json:"relevance,omitempty"`

	// Allows users to set headers to be GDPR compliant
	Headers map[string]string
}

CreateTrainingExampleOptions : The CreateTrainingExample options.

func (*CreateTrainingExampleOptions) SetCollectionID

func (options *CreateTrainingExampleOptions) SetCollectionID(collectionID string) *CreateTrainingExampleOptions

SetCollectionID : Allow user to set CollectionID

func (*CreateTrainingExampleOptions) SetCrossReference

func (options *CreateTrainingExampleOptions) SetCrossReference(crossReference string) *CreateTrainingExampleOptions

SetCrossReference : Allow user to set CrossReference

func (*CreateTrainingExampleOptions) SetDocumentID

func (options *CreateTrainingExampleOptions) SetDocumentID(documentID string) *CreateTrainingExampleOptions

SetDocumentID : Allow user to set DocumentID

func (*CreateTrainingExampleOptions) SetEnvironmentID

func (options *CreateTrainingExampleOptions) SetEnvironmentID(environmentID string) *CreateTrainingExampleOptions

SetEnvironmentID : Allow user to set EnvironmentID

func (*CreateTrainingExampleOptions) SetHeaders

SetHeaders : Allow user to set Headers

func (*CreateTrainingExampleOptions) SetQueryID

SetQueryID : Allow user to set QueryID

func (*CreateTrainingExampleOptions) SetRelevance

func (options *CreateTrainingExampleOptions) SetRelevance(relevance int64) *CreateTrainingExampleOptions

SetRelevance : Allow user to set Relevance

type CredentialDetails

type CredentialDetails struct {

	// The authentication method for this credentials definition. The  **credential_type** specified must be supported by
	// the **source_type**. The following combinations are possible:
	//
	// -  `"source_type": "box"` - valid `credential_type`s: `oauth2`
	// -  `"source_type": "salesforce"` - valid `credential_type`s: `username_password`
	// -  `"source_type": "sharepoint"` - valid `credential_type`s: `saml` with **source_version** of `online`, or
	// `ntlm_v1` with **source_version** of `2016`
	// -  `"source_type": "web_crawl"` - valid `credential_type`s: `noauth` or `basic`
	// -  "source_type": "cloud_object_storage"` - valid `credential_type`s: `aws4_hmac`.
	CredentialType *string `json:"credential_type,omitempty"`

	// The **client_id** of the source that these credentials connect to. Only valid, and required, with a
	// **credential_type** of `oauth2`.
	ClientID *string `json:"client_id,omitempty"`

	// The **enterprise_id** of the Box site that these credentials connect to. Only valid, and required, with a
	// **source_type** of `box`.
	EnterpriseID *string `json:"enterprise_id,omitempty"`

	// The **url** of the source that these credentials connect to. Only valid, and required, with a **credential_type** of
	// `username_password`, `noauth`, and `basic`.
	URL *string `json:"url,omitempty"`

	// The **username** of the source that these credentials connect to. Only valid, and required, with a
	// **credential_type** of `saml`, `username_password`, `basic`, or `ntlm_v1`.
	Username *string `json:"username,omitempty"`

	// The **organization_url** of the source that these credentials connect to. Only valid, and required, with a
	// **credential_type** of `saml`.
	OrganizationURL *string `json:"organization_url,omitempty"`

	// The **site_collection.path** of the source that these credentials connect to. Only valid, and required, with a
	// **source_type** of `sharepoint`.
	SiteCollectionPath *string `json:"site_collection.path,omitempty"`

	// The **client_secret** of the source that these credentials connect to. Only valid, and required, with a
	// **credential_type** of `oauth2`. This value is never returned and is only used when creating or modifying
	// **credentials**.
	ClientSecret *string `json:"client_secret,omitempty"`

	// The **public_key_id** of the source that these credentials connect to. Only valid, and required, with a
	// **credential_type** of `oauth2`. This value is never returned and is only used when creating or modifying
	// **credentials**.
	PublicKeyID *string `json:"public_key_id,omitempty"`

	// The **private_key** of the source that these credentials connect to. Only valid, and required, with a
	// **credential_type** of `oauth2`. This value is never returned and is only used when creating or modifying
	// **credentials**.
	PrivateKey *string `json:"private_key,omitempty"`

	// The **passphrase** of the source that these credentials connect to. Only valid, and required, with a
	// **credential_type** of `oauth2`. This value is never returned and is only used when creating or modifying
	// **credentials**.
	Passphrase *string `json:"passphrase,omitempty"`

	// The **password** of the source that these credentials connect to. Only valid, and required, with
	// **credential_type**s of `saml`, `username_password`, `basic`, or `ntlm_v1`.
	//
	// **Note:** When used with a **source_type** of `salesforce`, the password consists of the Salesforce password and a
	// valid Salesforce security token concatenated. This value is never returned and is only used when creating or
	// modifying **credentials**.
	Password *string `json:"password,omitempty"`

	// The ID of the **gateway** to be connected through (when connecting to intranet sites). Only valid with a
	// **credential_type** of `noauth`, `basic`, or `ntlm_v1`. Gateways are created using the
	// `/v1/environments/{environment_id}/gateways` methods.
	GatewayID *string `json:"gateway_id,omitempty"`

	// The type of Sharepoint repository to connect to. Only valid, and required, with a **source_type** of `sharepoint`.
	SourceVersion *string `json:"source_version,omitempty"`

	// SharePoint OnPrem WebApplication URL. Only valid, and required, with a **source_version** of `2016`. If a port is
	// not supplied, the default to port `80` for http and port `443` for https connections are used.
	WebApplicationURL *string `json:"web_application_url,omitempty"`

	// The domain used to log in to your OnPrem SharePoint account. Only valid, and required, with a **source_version** of
	// `2016`.
	Domain *string `json:"domain,omitempty"`

	// The endpoint associated with the cloud object store that your are connecting to. Only valid, and required, with a
	// **credential_type** of `aws4_hmac`.
	Endpoint *string `json:"endpoint,omitempty"`

	// The access key ID associated with the cloud object store. Only valid, and required, with a **credential_type** of
	// `aws4_hmac`. This value is never returned and is only used when creating or modifying **credentials**. For more
	// infomation, see the [cloud object store
	// documentation](https://cloud.ibm.com/docs/services/cloud-object-storage?topic=cloud-object-storage-using-hmac-credentials#using-hmac-credentials).
	AccessKeyID *string `json:"access_key_id,omitempty"`

	// The secret access key associated with the cloud object store. Only valid, and required, with a **credential_type**
	// of `aws4_hmac`. This value is never returned and is only used when creating or modifying **credentials**. For more
	// infomation, see the [cloud object store
	// documentation](https://cloud.ibm.com/docs/services/cloud-object-storage?topic=cloud-object-storage-using-hmac-credentials#using-hmac-credentials).
	SecretAccessKey *string `json:"secret_access_key,omitempty"`
}

CredentialDetails : Object containing details of the stored credentials.

Obtain credentials for your source from the administrator of the source.

type Credentials

type Credentials struct {

	// Unique identifier for this set of credentials.
	CredentialID *string `json:"credential_id,omitempty"`

	// The source that this credentials object connects to.
	// -  `box` indicates the credentials are used to connect an instance of Enterprise Box.
	// -  `salesforce` indicates the credentials are used to connect to Salesforce.
	// -  `sharepoint` indicates the credentials are used to connect to Microsoft SharePoint Online.
	// -  `web_crawl` indicates the credentials are used to perform a web crawl.
	// =  `cloud_object_storage` indicates the credentials are used to connect to an IBM Cloud Object Store.
	SourceType *string `json:"source_type,omitempty"`

	// Object containing details of the stored credentials.
	//
	// Obtain credentials for your source from the administrator of the source.
	CredentialDetails *CredentialDetails `json:"credential_details,omitempty"`

	// The current status of this set of credentials. `connected` indicates that the credentials are available to use with
	// the source configuration of a collection. `invalid` refers to the credentials (for example, the password provided
	// has expired) and must be corrected before they can be used with a collection.
	Status *string `json:"status,omitempty"`
}

Credentials : Object containing credential information.

type CredentialsList

type CredentialsList struct {

	// An array of credential definitions that were created for this instance.
	Credentials []Credentials `json:"credentials,omitempty"`
}

CredentialsList : Object containing array of credential definitions.

type DeleteAllTrainingDataOptions

type DeleteAllTrainingDataOptions struct {

	// The ID of the environment.
	EnvironmentID *string `json:"environment_id" validate:"required"`

	// The ID of the collection.
	CollectionID *string `json:"collection_id" validate:"required"`

	// Allows users to set headers to be GDPR compliant
	Headers map[string]string
}

DeleteAllTrainingDataOptions : The DeleteAllTrainingData options.

func (*DeleteAllTrainingDataOptions) SetCollectionID

func (options *DeleteAllTrainingDataOptions) SetCollectionID(collectionID string) *DeleteAllTrainingDataOptions

SetCollectionID : Allow user to set CollectionID

func (*DeleteAllTrainingDataOptions) SetEnvironmentID

func (options *DeleteAllTrainingDataOptions) SetEnvironmentID(environmentID string) *DeleteAllTrainingDataOptions

SetEnvironmentID : Allow user to set EnvironmentID

func (*DeleteAllTrainingDataOptions) SetHeaders

SetHeaders : Allow user to set Headers

type DeleteCollectionOptions

type DeleteCollectionOptions struct {

	// The ID of the environment.
	EnvironmentID *string `json:"environment_id" validate:"required"`

	// The ID of the collection.
	CollectionID *string `json:"collection_id" validate:"required"`

	// Allows users to set headers to be GDPR compliant
	Headers map[string]string
}

DeleteCollectionOptions : The DeleteCollection options.

func (*DeleteCollectionOptions) SetCollectionID

func (options *DeleteCollectionOptions) SetCollectionID(collectionID string) *DeleteCollectionOptions

SetCollectionID : Allow user to set CollectionID

func (*DeleteCollectionOptions) SetEnvironmentID

func (options *DeleteCollectionOptions) SetEnvironmentID(environmentID string) *DeleteCollectionOptions

SetEnvironmentID : Allow user to set EnvironmentID

func (*DeleteCollectionOptions) SetHeaders

func (options *DeleteCollectionOptions) SetHeaders(param map[string]string) *DeleteCollectionOptions

SetHeaders : Allow user to set Headers

type DeleteCollectionResponse

type DeleteCollectionResponse struct {

	// The unique identifier of the collection that is being deleted.
	CollectionID *string `json:"collection_id" validate:"required"`

	// The status of the collection. The status of a successful deletion operation is `deleted`.
	Status *string `json:"status" validate:"required"`
}

DeleteCollectionResponse : Response object returned when deleting a colleciton.

type DeleteConfigurationOptions

type DeleteConfigurationOptions struct {

	// The ID of the environment.
	EnvironmentID *string `json:"environment_id" validate:"required"`

	// The ID of the configuration.
	ConfigurationID *string `json:"configuration_id" validate:"required"`

	// Allows users to set headers to be GDPR compliant
	Headers map[string]string
}

DeleteConfigurationOptions : The DeleteConfiguration options.

func (*DeleteConfigurationOptions) SetConfigurationID

func (options *DeleteConfigurationOptions) SetConfigurationID(configurationID string) *DeleteConfigurationOptions

SetConfigurationID : Allow user to set ConfigurationID

func (*DeleteConfigurationOptions) SetEnvironmentID

func (options *DeleteConfigurationOptions) SetEnvironmentID(environmentID string) *DeleteConfigurationOptions

SetEnvironmentID : Allow user to set EnvironmentID

func (*DeleteConfigurationOptions) SetHeaders

func (options *DeleteConfigurationOptions) SetHeaders(param map[string]string) *DeleteConfigurationOptions

SetHeaders : Allow user to set Headers

type DeleteConfigurationResponse

type DeleteConfigurationResponse struct {

	// The unique identifier for the configuration.
	ConfigurationID *string `json:"configuration_id" validate:"required"`

	// Status of the configuration. A deleted configuration has the status deleted.
	Status *string `json:"status" validate:"required"`

	// An array of notice messages, if any.
	Notices []Notice `json:"notices,omitempty"`
}

DeleteConfigurationResponse : Information returned when a configuration is deleted.

type DeleteCredentials

type DeleteCredentials struct {

	// The unique identifier of the credentials that have been deleted.
	CredentialID *string `json:"credential_id,omitempty"`

	// The status of the deletion request.
	Status *string `json:"status,omitempty"`
}

DeleteCredentials : Object returned after credentials are deleted.

type DeleteCredentialsOptions

type DeleteCredentialsOptions struct {

	// The ID of the environment.
	EnvironmentID *string `json:"environment_id" validate:"required"`

	// The unique identifier for a set of source credentials.
	CredentialID *string `json:"credential_id" validate:"required"`

	// Allows users to set headers to be GDPR compliant
	Headers map[string]string
}

DeleteCredentialsOptions : The DeleteCredentials options.

func (*DeleteCredentialsOptions) SetCredentialID

func (options *DeleteCredentialsOptions) SetCredentialID(credentialID string) *DeleteCredentialsOptions

SetCredentialID : Allow user to set CredentialID

func (*DeleteCredentialsOptions) SetEnvironmentID

func (options *DeleteCredentialsOptions) SetEnvironmentID(environmentID string) *DeleteCredentialsOptions

SetEnvironmentID : Allow user to set EnvironmentID

func (*DeleteCredentialsOptions) SetHeaders

func (options *DeleteCredentialsOptions) SetHeaders(param map[string]string) *DeleteCredentialsOptions

SetHeaders : Allow user to set Headers

type DeleteDocumentOptions

type DeleteDocumentOptions struct {

	// The ID of the environment.
	EnvironmentID *string `json:"environment_id" validate:"required"`

	// The ID of the collection.
	CollectionID *string `json:"collection_id" validate:"required"`

	// The ID of the document.
	DocumentID *string `json:"document_id" validate:"required"`

	// Allows users to set headers to be GDPR compliant
	Headers map[string]string
}

DeleteDocumentOptions : The DeleteDocument options.

func (*DeleteDocumentOptions) SetCollectionID

func (options *DeleteDocumentOptions) SetCollectionID(collectionID string) *DeleteDocumentOptions

SetCollectionID : Allow user to set CollectionID

func (*DeleteDocumentOptions) SetDocumentID

func (options *DeleteDocumentOptions) SetDocumentID(documentID string) *DeleteDocumentOptions

SetDocumentID : Allow user to set DocumentID

func (*DeleteDocumentOptions) SetEnvironmentID

func (options *DeleteDocumentOptions) SetEnvironmentID(environmentID string) *DeleteDocumentOptions

SetEnvironmentID : Allow user to set EnvironmentID

func (*DeleteDocumentOptions) SetHeaders

func (options *DeleteDocumentOptions) SetHeaders(param map[string]string) *DeleteDocumentOptions

SetHeaders : Allow user to set Headers

type DeleteDocumentResponse

type DeleteDocumentResponse struct {

	// The unique identifier of the document.
	DocumentID *string `json:"document_id,omitempty"`

	// Status of the document. A deleted document has the status deleted.
	Status *string `json:"status,omitempty"`
}

DeleteDocumentResponse : Information returned when a document is deleted.

type DeleteEnvironmentOptions

type DeleteEnvironmentOptions struct {

	// The ID of the environment.
	EnvironmentID *string `json:"environment_id" validate:"required"`

	// Allows users to set headers to be GDPR compliant
	Headers map[string]string
}

DeleteEnvironmentOptions : The DeleteEnvironment options.

func (*DeleteEnvironmentOptions) SetEnvironmentID

func (options *DeleteEnvironmentOptions) SetEnvironmentID(environmentID string) *DeleteEnvironmentOptions

SetEnvironmentID : Allow user to set EnvironmentID

func (*DeleteEnvironmentOptions) SetHeaders

func (options *DeleteEnvironmentOptions) SetHeaders(param map[string]string) *DeleteEnvironmentOptions

SetHeaders : Allow user to set Headers

type DeleteEnvironmentResponse

type DeleteEnvironmentResponse struct {

	// The unique identifier for the environment.
	EnvironmentID *string `json:"environment_id" validate:"required"`

	// Status of the environment.
	Status *string `json:"status" validate:"required"`
}

DeleteEnvironmentResponse : Response object returned when deleting an environment.

type DeleteExpansionsOptions

type DeleteExpansionsOptions struct {

	// The ID of the environment.
	EnvironmentID *string `json:"environment_id" validate:"required"`

	// The ID of the collection.
	CollectionID *string `json:"collection_id" validate:"required"`

	// Allows users to set headers to be GDPR compliant
	Headers map[string]string
}

DeleteExpansionsOptions : The DeleteExpansions options.

func (*DeleteExpansionsOptions) SetCollectionID

func (options *DeleteExpansionsOptions) SetCollectionID(collectionID string) *DeleteExpansionsOptions

SetCollectionID : Allow user to set CollectionID

func (*DeleteExpansionsOptions) SetEnvironmentID

func (options *DeleteExpansionsOptions) SetEnvironmentID(environmentID string) *DeleteExpansionsOptions

SetEnvironmentID : Allow user to set EnvironmentID

func (*DeleteExpansionsOptions) SetHeaders

func (options *DeleteExpansionsOptions) SetHeaders(param map[string]string) *DeleteExpansionsOptions

SetHeaders : Allow user to set Headers

type DeleteGatewayOptions

type DeleteGatewayOptions struct {

	// The ID of the environment.
	EnvironmentID *string `json:"environment_id" validate:"required"`

	// The requested gateway ID.
	GatewayID *string `json:"gateway_id" validate:"required"`

	// Allows users to set headers to be GDPR compliant
	Headers map[string]string
}

DeleteGatewayOptions : The DeleteGateway options.

func (*DeleteGatewayOptions) SetEnvironmentID

func (options *DeleteGatewayOptions) SetEnvironmentID(environmentID string) *DeleteGatewayOptions

SetEnvironmentID : Allow user to set EnvironmentID

func (*DeleteGatewayOptions) SetGatewayID

func (options *DeleteGatewayOptions) SetGatewayID(gatewayID string) *DeleteGatewayOptions

SetGatewayID : Allow user to set GatewayID

func (*DeleteGatewayOptions) SetHeaders

func (options *DeleteGatewayOptions) SetHeaders(param map[string]string) *DeleteGatewayOptions

SetHeaders : Allow user to set Headers

type DeleteStopwordListOptions

type DeleteStopwordListOptions struct {

	// The ID of the environment.
	EnvironmentID *string `json:"environment_id" validate:"required"`

	// The ID of the collection.
	CollectionID *string `json:"collection_id" validate:"required"`

	// Allows users to set headers to be GDPR compliant
	Headers map[string]string
}

DeleteStopwordListOptions : The DeleteStopwordList options.

func (*DeleteStopwordListOptions) SetCollectionID

func (options *DeleteStopwordListOptions) SetCollectionID(collectionID string) *DeleteStopwordListOptions

SetCollectionID : Allow user to set CollectionID

func (*DeleteStopwordListOptions) SetEnvironmentID

func (options *DeleteStopwordListOptions) SetEnvironmentID(environmentID string) *DeleteStopwordListOptions

SetEnvironmentID : Allow user to set EnvironmentID

func (*DeleteStopwordListOptions) SetHeaders

func (options *DeleteStopwordListOptions) SetHeaders(param map[string]string) *DeleteStopwordListOptions

SetHeaders : Allow user to set Headers

type DeleteTokenizationDictionaryOptions

type DeleteTokenizationDictionaryOptions struct {

	// The ID of the environment.
	EnvironmentID *string `json:"environment_id" validate:"required"`

	// The ID of the collection.
	CollectionID *string `json:"collection_id" validate:"required"`

	// Allows users to set headers to be GDPR compliant
	Headers map[string]string
}

DeleteTokenizationDictionaryOptions : The DeleteTokenizationDictionary options.

func (*DeleteTokenizationDictionaryOptions) SetCollectionID

func (options *DeleteTokenizationDictionaryOptions) SetCollectionID(collectionID string) *DeleteTokenizationDictionaryOptions

SetCollectionID : Allow user to set CollectionID

func (*DeleteTokenizationDictionaryOptions) SetEnvironmentID

func (options *DeleteTokenizationDictionaryOptions) SetEnvironmentID(environmentID string) *DeleteTokenizationDictionaryOptions

SetEnvironmentID : Allow user to set EnvironmentID

func (*DeleteTokenizationDictionaryOptions) SetHeaders

SetHeaders : Allow user to set Headers

type DeleteTrainingDataOptions

type DeleteTrainingDataOptions struct {

	// The ID of the environment.
	EnvironmentID *string `json:"environment_id" validate:"required"`

	// The ID of the collection.
	CollectionID *string `json:"collection_id" validate:"required"`

	// The ID of the query used for training.
	QueryID *string `json:"query_id" validate:"required"`

	// Allows users to set headers to be GDPR compliant
	Headers map[string]string
}

DeleteTrainingDataOptions : The DeleteTrainingData options.

func (*DeleteTrainingDataOptions) SetCollectionID

func (options *DeleteTrainingDataOptions) SetCollectionID(collectionID string) *DeleteTrainingDataOptions

SetCollectionID : Allow user to set CollectionID

func (*DeleteTrainingDataOptions) SetEnvironmentID

func (options *DeleteTrainingDataOptions) SetEnvironmentID(environmentID string) *DeleteTrainingDataOptions

SetEnvironmentID : Allow user to set EnvironmentID

func (*DeleteTrainingDataOptions) SetHeaders

func (options *DeleteTrainingDataOptions) SetHeaders(param map[string]string) *DeleteTrainingDataOptions

SetHeaders : Allow user to set Headers

func (*DeleteTrainingDataOptions) SetQueryID

func (options *DeleteTrainingDataOptions) SetQueryID(queryID string) *DeleteTrainingDataOptions

SetQueryID : Allow user to set QueryID

type DeleteTrainingExampleOptions

type DeleteTrainingExampleOptions struct {

	// The ID of the environment.
	EnvironmentID *string `json:"environment_id" validate:"required"`

	// The ID of the collection.
	CollectionID *string `json:"collection_id" validate:"required"`

	// The ID of the query used for training.
	QueryID *string `json:"query_id" validate:"required"`

	// The ID of the document as it is indexed.
	ExampleID *string `json:"example_id" validate:"required"`

	// Allows users to set headers to be GDPR compliant
	Headers map[string]string
}

DeleteTrainingExampleOptions : The DeleteTrainingExample options.

func (*DeleteTrainingExampleOptions) SetCollectionID

func (options *DeleteTrainingExampleOptions) SetCollectionID(collectionID string) *DeleteTrainingExampleOptions

SetCollectionID : Allow user to set CollectionID

func (*DeleteTrainingExampleOptions) SetEnvironmentID

func (options *DeleteTrainingExampleOptions) SetEnvironmentID(environmentID string) *DeleteTrainingExampleOptions

SetEnvironmentID : Allow user to set EnvironmentID

func (*DeleteTrainingExampleOptions) SetExampleID

func (options *DeleteTrainingExampleOptions) SetExampleID(exampleID string) *DeleteTrainingExampleOptions

SetExampleID : Allow user to set ExampleID

func (*DeleteTrainingExampleOptions) SetHeaders

SetHeaders : Allow user to set Headers

func (*DeleteTrainingExampleOptions) SetQueryID

SetQueryID : Allow user to set QueryID

type DeleteUserDataOptions

type DeleteUserDataOptions struct {

	// The customer ID for which all data is to be deleted.
	CustomerID *string `json:"customer_id" validate:"required"`

	// Allows users to set headers to be GDPR compliant
	Headers map[string]string
}

DeleteUserDataOptions : The DeleteUserData options.

func (*DeleteUserDataOptions) SetCustomerID

func (options *DeleteUserDataOptions) SetCustomerID(customerID string) *DeleteUserDataOptions

SetCustomerID : Allow user to set CustomerID

func (*DeleteUserDataOptions) SetHeaders

func (options *DeleteUserDataOptions) SetHeaders(param map[string]string) *DeleteUserDataOptions

SetHeaders : Allow user to set Headers

type DiscoveryV1

type DiscoveryV1 struct {
	Service *core.BaseService
	Version string
}

DiscoveryV1 : IBM Watson™ Discovery is a cognitive search and content analytics engine that you can add to applications to identify patterns, trends and actionable insights to drive better decision-making. Securely unify structured and unstructured data with pre-enriched content, and use a simplified query language to eliminate the need for manual filtering of results.

Version: 1.0 See: https://console.bluemix.net/docs/services/discovery/

func NewDiscoveryV1

func NewDiscoveryV1(options *DiscoveryV1Options) (service *DiscoveryV1, err error)

NewDiscoveryV1 : Instantiate DiscoveryV1

func (*DiscoveryV1) AddDocument

func (discovery *DiscoveryV1) AddDocument(addDocumentOptions *AddDocumentOptions) (result *DocumentAccepted, response *core.DetailedResponse, err error)

AddDocument : Add a document Add a document to a collection with optional metadata.

  • The **version** query parameter is still required.

  • Returns immediately after the system has accepted the document for processing.

  • The user must provide document content, metadata, or both. If the request is missing both document content and

metadata, it is rejected.

  • The user can set the **Content-Type** parameter on the **file** part to indicate the media type of the document.

If the **Content-Type** parameter is missing or is one of the generic media types (for example, `application/octet-stream`), then the service attempts to automatically detect the document's media type.

  • The following field names are reserved and will be filtered out if present after normalization: `id`, `score`,

`highlight`, and any field with the prefix of: `_`, `+`, or `-`

  • Fields with empty name values after normalization are filtered out before indexing.

  • Fields containing the following characters after normalization are filtered out before indexing: `#` and `,`

    **Note:** Documents can be added with a specific **document_id** by using the

**_/v1/environments/{environment_id}/collections/{collection_id}/documents** method.

func (*DiscoveryV1) AddTrainingData

func (discovery *DiscoveryV1) AddTrainingData(addTrainingDataOptions *AddTrainingDataOptions) (result *TrainingQuery, response *core.DetailedResponse, err error)

AddTrainingData : Add query to training data Adds a query to the training data for this collection. The query can contain a filter and natural language query.

func (*DiscoveryV1) CreateCollection

func (discovery *DiscoveryV1) CreateCollection(createCollectionOptions *CreateCollectionOptions) (result *Collection, response *core.DetailedResponse, err error)

CreateCollection : Create a collection

func (*DiscoveryV1) CreateConfiguration

func (discovery *DiscoveryV1) CreateConfiguration(createConfigurationOptions *CreateConfigurationOptions) (result *Configuration, response *core.DetailedResponse, err error)

CreateConfiguration : Add configuration Creates a new configuration.

If the input configuration contains the **configuration_id**, **created**, or **updated** properties, then they are ignored and overridden by the system, and an error is not returned so that the overridden fields do not need to be removed when copying a configuration.

The configuration can contain unrecognized JSON fields. Any such fields are ignored and do not generate an error. This makes it easier to use newer configuration files with older versions of the API and the service. It also makes it possible for the tooling to add additional metadata and information to the configuration.

func (*DiscoveryV1) CreateCredentials

func (discovery *DiscoveryV1) CreateCredentials(createCredentialsOptions *CreateCredentialsOptions) (result *Credentials, response *core.DetailedResponse, err error)

CreateCredentials : Create credentials Creates a set of credentials to connect to a remote source. Created credentials are used in a configuration to associate a collection with the remote source.

**Note:** All credentials are sent over an encrypted connection and encrypted at rest.

func (*DiscoveryV1) CreateEnvironment

func (discovery *DiscoveryV1) CreateEnvironment(createEnvironmentOptions *CreateEnvironmentOptions) (result *Environment, response *core.DetailedResponse, err error)

CreateEnvironment : Create an environment Creates a new environment for private data. An environment must be created before collections can be created.

**Note**: You can create only one environment for private data per service instance. An attempt to create another environment results in an error.

func (*DiscoveryV1) CreateEvent

func (discovery *DiscoveryV1) CreateEvent(createEventOptions *CreateEventOptions) (result *CreateEventResponse, response *core.DetailedResponse, err error)

CreateEvent : Create event The **Events** API can be used to create log entries that are associated with specific queries. For example, you can record which documents in the results set were "clicked" by a user and when that click occured.

func (*DiscoveryV1) CreateExpansions

func (discovery *DiscoveryV1) CreateExpansions(createExpansionsOptions *CreateExpansionsOptions) (result *Expansions, response *core.DetailedResponse, err error)

CreateExpansions : Create or update expansion list Create or replace the Expansion list for this collection. The maximum number of expanded terms per collection is `500`. The current expansion list is replaced with the uploaded content.

func (*DiscoveryV1) CreateGateway

func (discovery *DiscoveryV1) CreateGateway(createGatewayOptions *CreateGatewayOptions) (result *Gateway, response *core.DetailedResponse, err error)

CreateGateway : Create Gateway Create a gateway configuration to use with a remotely installed gateway.

func (*DiscoveryV1) CreateStopwordList

func (discovery *DiscoveryV1) CreateStopwordList(createStopwordListOptions *CreateStopwordListOptions) (result *TokenDictStatusResponse, response *core.DetailedResponse, err error)

CreateStopwordList : Create stopword list Upload a custom stopword list to use with the specified collection.

func (*DiscoveryV1) CreateTokenizationDictionary

func (discovery *DiscoveryV1) CreateTokenizationDictionary(createTokenizationDictionaryOptions *CreateTokenizationDictionaryOptions) (result *TokenDictStatusResponse, response *core.DetailedResponse, err error)

CreateTokenizationDictionary : Create tokenization dictionary Upload a custom tokenization dictionary to use with the specified collection.

func (*DiscoveryV1) CreateTrainingExample

func (discovery *DiscoveryV1) CreateTrainingExample(createTrainingExampleOptions *CreateTrainingExampleOptions) (result *TrainingExample, response *core.DetailedResponse, err error)

CreateTrainingExample : Add example to training data query Adds a example to this training data query.

func (*DiscoveryV1) DeleteAllTrainingData

func (discovery *DiscoveryV1) DeleteAllTrainingData(deleteAllTrainingDataOptions *DeleteAllTrainingDataOptions) (response *core.DetailedResponse, err error)

DeleteAllTrainingData : Delete all training data Deletes all training data from a collection.

func (*DiscoveryV1) DeleteCollection

func (discovery *DiscoveryV1) DeleteCollection(deleteCollectionOptions *DeleteCollectionOptions) (result *DeleteCollectionResponse, response *core.DetailedResponse, err error)

DeleteCollection : Delete a collection

func (*DiscoveryV1) DeleteConfiguration

func (discovery *DiscoveryV1) DeleteConfiguration(deleteConfigurationOptions *DeleteConfigurationOptions) (result *DeleteConfigurationResponse, response *core.DetailedResponse, err error)

DeleteConfiguration : Delete a configuration The deletion is performed unconditionally. A configuration deletion request succeeds even if the configuration is referenced by a collection or document ingestion. However, documents that have already been submitted for processing continue to use the deleted configuration. Documents are always processed with a snapshot of the configuration as it existed at the time the document was submitted.

func (*DiscoveryV1) DeleteCredentials

func (discovery *DiscoveryV1) DeleteCredentials(deleteCredentialsOptions *DeleteCredentialsOptions) (result *DeleteCredentials, response *core.DetailedResponse, err error)

DeleteCredentials : Delete credentials Deletes a set of stored credentials from your Discovery instance.

func (*DiscoveryV1) DeleteDocument

func (discovery *DiscoveryV1) DeleteDocument(deleteDocumentOptions *DeleteDocumentOptions) (result *DeleteDocumentResponse, response *core.DetailedResponse, err error)

DeleteDocument : Delete a document If the given document ID is invalid, or if the document is not found, then the a success response is returned (HTTP status code `200`) with the status set to 'deleted'.

func (*DiscoveryV1) DeleteEnvironment

func (discovery *DiscoveryV1) DeleteEnvironment(deleteEnvironmentOptions *DeleteEnvironmentOptions) (result *DeleteEnvironmentResponse, response *core.DetailedResponse, err error)

DeleteEnvironment : Delete environment

func (*DiscoveryV1) DeleteExpansions

func (discovery *DiscoveryV1) DeleteExpansions(deleteExpansionsOptions *DeleteExpansionsOptions) (response *core.DetailedResponse, err error)

DeleteExpansions : Delete the expansion list Remove the expansion information for this collection. The expansion list must be deleted to disable query expansion for a collection.

func (*DiscoveryV1) DeleteGateway

func (discovery *DiscoveryV1) DeleteGateway(deleteGatewayOptions *DeleteGatewayOptions) (result *GatewayDelete, response *core.DetailedResponse, err error)

DeleteGateway : Delete Gateway Delete the specified gateway configuration.

func (*DiscoveryV1) DeleteStopwordList

func (discovery *DiscoveryV1) DeleteStopwordList(deleteStopwordListOptions *DeleteStopwordListOptions) (response *core.DetailedResponse, err error)

DeleteStopwordList : Delete a custom stopword list Delete a custom stopword list from the collection. After a custom stopword list is deleted, the default list is used for the collection.

func (*DiscoveryV1) DeleteTokenizationDictionary

func (discovery *DiscoveryV1) DeleteTokenizationDictionary(deleteTokenizationDictionaryOptions *DeleteTokenizationDictionaryOptions) (response *core.DetailedResponse, err error)

DeleteTokenizationDictionary : Delete tokenization dictionary Delete the tokenization dictionary from the collection.

func (*DiscoveryV1) DeleteTrainingData

func (discovery *DiscoveryV1) DeleteTrainingData(deleteTrainingDataOptions *DeleteTrainingDataOptions) (response *core.DetailedResponse, err error)

DeleteTrainingData : Delete a training data query Removes the training data query and all associated examples from the training data set.

func (*DiscoveryV1) DeleteTrainingExample

func (discovery *DiscoveryV1) DeleteTrainingExample(deleteTrainingExampleOptions *DeleteTrainingExampleOptions) (response *core.DetailedResponse, err error)

DeleteTrainingExample : Delete example for training data query Deletes the example document with the given ID from the training data query.

func (*DiscoveryV1) DeleteUserData

func (discovery *DiscoveryV1) DeleteUserData(deleteUserDataOptions *DeleteUserDataOptions) (response *core.DetailedResponse, err error)

DeleteUserData : Delete labeled data Deletes all data associated with a specified customer ID. The method has no effect if no data is associated with the customer ID.

You associate a customer ID with data by passing the **X-Watson-Metadata** header with a request that passes data. For more information about personal data and customer IDs, see [Information security](https://cloud.ibm.com/docs/services/discovery?topic=discovery-information-security#information-security).

func (*DiscoveryV1) DisableSSLVerification

func (discovery *DiscoveryV1) DisableSSLVerification()

DisableSSLVerification bypasses verification of the server's SSL certificate

func (*DiscoveryV1) FederatedQuery

func (discovery *DiscoveryV1) FederatedQuery(federatedQueryOptions *FederatedQueryOptions) (result *QueryResponse, response *core.DetailedResponse, err error)

FederatedQuery : Query multiple collections By using this method, you can construct long queries that search multiple collection. For details, see the [Discovery documentation](https://cloud.ibm.com/docs/services/discovery?topic=discovery-query-concepts#query-concepts).

func (*DiscoveryV1) FederatedQueryNotices

func (discovery *DiscoveryV1) FederatedQueryNotices(federatedQueryNoticesOptions *FederatedQueryNoticesOptions) (result *QueryNoticesResponse, response *core.DetailedResponse, err error)

FederatedQueryNotices : Query multiple collection system notices Queries for notices (errors or warnings) that might have been generated by the system. Notices are generated when ingesting documents and performing relevance training. See the [Discovery documentation](https://cloud.ibm.com/docs/services/discovery?topic=discovery-query-concepts#query-concepts) for more details on the query language.

func (*DiscoveryV1) GetAutocompletion

func (discovery *DiscoveryV1) GetAutocompletion(getAutocompletionOptions *GetAutocompletionOptions) (result *Completions, response *core.DetailedResponse, err error)

GetAutocompletion : Get Autocomplete Suggestions Returns completion query suggestions for the specified prefix. /n/n **Important:** this method is only valid when using the Cloud Pak version of Discovery.

func (*DiscoveryV1) GetCollection

func (discovery *DiscoveryV1) GetCollection(getCollectionOptions *GetCollectionOptions) (result *Collection, response *core.DetailedResponse, err error)

GetCollection : Get collection details

func (*DiscoveryV1) GetConfiguration

func (discovery *DiscoveryV1) GetConfiguration(getConfigurationOptions *GetConfigurationOptions) (result *Configuration, response *core.DetailedResponse, err error)

GetConfiguration : Get configuration details

func (*DiscoveryV1) GetCredentials

func (discovery *DiscoveryV1) GetCredentials(getCredentialsOptions *GetCredentialsOptions) (result *Credentials, response *core.DetailedResponse, err error)

GetCredentials : View Credentials Returns details about the specified credentials.

**Note:** Secure credential information such as a password or SSH key is never returned and must be obtained from

the source system.

func (*DiscoveryV1) GetDocumentStatus

func (discovery *DiscoveryV1) GetDocumentStatus(getDocumentStatusOptions *GetDocumentStatusOptions) (result *DocumentStatus, response *core.DetailedResponse, err error)

GetDocumentStatus : Get document details Fetch status details about a submitted document. **Note:** this operation does not return the document itself. Instead, it returns only the document's processing status and any notices (warnings or errors) that were generated when the document was ingested. Use the query API to retrieve the actual document content.

func (*DiscoveryV1) GetEnvironment

func (discovery *DiscoveryV1) GetEnvironment(getEnvironmentOptions *GetEnvironmentOptions) (result *Environment, response *core.DetailedResponse, err error)

GetEnvironment : Get environment info

func (*DiscoveryV1) GetGateway

func (discovery *DiscoveryV1) GetGateway(getGatewayOptions *GetGatewayOptions) (result *Gateway, response *core.DetailedResponse, err error)

GetGateway : List Gateway Details List information about the specified gateway.

func (*DiscoveryV1) GetMetricsEventRate

func (discovery *DiscoveryV1) GetMetricsEventRate(getMetricsEventRateOptions *GetMetricsEventRateOptions) (result *MetricResponse, response *core.DetailedResponse, err error)

GetMetricsEventRate : Percentage of queries with an associated event The percentage of queries using the **natural_language_query** parameter that have a corresponding "click" event over a specified time window. This metric requires having integrated event tracking in your application using the **Events** API.

func (*DiscoveryV1) GetMetricsQuery

func (discovery *DiscoveryV1) GetMetricsQuery(getMetricsQueryOptions *GetMetricsQueryOptions) (result *MetricResponse, response *core.DetailedResponse, err error)

GetMetricsQuery : Number of queries over time Total number of queries using the **natural_language_query** parameter over a specific time window.

func (*DiscoveryV1) GetMetricsQueryEvent

func (discovery *DiscoveryV1) GetMetricsQueryEvent(getMetricsQueryEventOptions *GetMetricsQueryEventOptions) (result *MetricResponse, response *core.DetailedResponse, err error)

GetMetricsQueryEvent : Number of queries with an event over time Total number of queries using the **natural_language_query** parameter that have a corresponding "click" event over a specified time window. This metric requires having integrated event tracking in your application using the **Events** API.

func (*DiscoveryV1) GetMetricsQueryNoResults

func (discovery *DiscoveryV1) GetMetricsQueryNoResults(getMetricsQueryNoResultsOptions *GetMetricsQueryNoResultsOptions) (result *MetricResponse, response *core.DetailedResponse, err error)

GetMetricsQueryNoResults : Number of queries with no search results over time Total number of queries using the **natural_language_query** parameter that have no results returned over a specified time window.

func (*DiscoveryV1) GetMetricsQueryTokenEvent

func (discovery *DiscoveryV1) GetMetricsQueryTokenEvent(getMetricsQueryTokenEventOptions *GetMetricsQueryTokenEventOptions) (result *MetricTokenResponse, response *core.DetailedResponse, err error)

GetMetricsQueryTokenEvent : Most frequent query tokens with an event The most frequent query tokens parsed from the **natural_language_query** parameter and their corresponding "click" event rate within the recording period (queries and events are stored for 30 days). A query token is an individual word or unigram within the query string.

func (*DiscoveryV1) GetStopwordListStatus

func (discovery *DiscoveryV1) GetStopwordListStatus(getStopwordListStatusOptions *GetStopwordListStatusOptions) (result *TokenDictStatusResponse, response *core.DetailedResponse, err error)

GetStopwordListStatus : Get stopword list status Returns the current status of the stopword list for the specified collection.

func (*DiscoveryV1) GetTokenizationDictionaryStatus

func (discovery *DiscoveryV1) GetTokenizationDictionaryStatus(getTokenizationDictionaryStatusOptions *GetTokenizationDictionaryStatusOptions) (result *TokenDictStatusResponse, response *core.DetailedResponse, err error)

GetTokenizationDictionaryStatus : Get tokenization dictionary status Returns the current status of the tokenization dictionary for the specified collection.

func (*DiscoveryV1) GetTrainingData

func (discovery *DiscoveryV1) GetTrainingData(getTrainingDataOptions *GetTrainingDataOptions) (result *TrainingQuery, response *core.DetailedResponse, err error)

GetTrainingData : Get details about a query Gets details for a specific training data query, including the query string and all examples.

func (*DiscoveryV1) GetTrainingExample

func (discovery *DiscoveryV1) GetTrainingExample(getTrainingExampleOptions *GetTrainingExampleOptions) (result *TrainingExample, response *core.DetailedResponse, err error)

GetTrainingExample : Get details for training data example Gets the details for this training example.

func (*DiscoveryV1) ListCollectionFields

func (discovery *DiscoveryV1) ListCollectionFields(listCollectionFieldsOptions *ListCollectionFieldsOptions) (result *ListCollectionFieldsResponse, response *core.DetailedResponse, err error)

ListCollectionFields : List collection fields Gets a list of the unique fields (and their types) stored in the index.

func (*DiscoveryV1) ListCollections

func (discovery *DiscoveryV1) ListCollections(listCollectionsOptions *ListCollectionsOptions) (result *ListCollectionsResponse, response *core.DetailedResponse, err error)

ListCollections : List collections Lists existing collections for the service instance.

func (*DiscoveryV1) ListConfigurations

func (discovery *DiscoveryV1) ListConfigurations(listConfigurationsOptions *ListConfigurationsOptions) (result *ListConfigurationsResponse, response *core.DetailedResponse, err error)

ListConfigurations : List configurations Lists existing configurations for the service instance.

func (*DiscoveryV1) ListCredentials

func (discovery *DiscoveryV1) ListCredentials(listCredentialsOptions *ListCredentialsOptions) (result *CredentialsList, response *core.DetailedResponse, err error)

ListCredentials : List credentials List all the source credentials that have been created for this service instance.

**Note:**  All credentials are sent over an encrypted connection and encrypted at rest.

func (*DiscoveryV1) ListEnvironments

func (discovery *DiscoveryV1) ListEnvironments(listEnvironmentsOptions *ListEnvironmentsOptions) (result *ListEnvironmentsResponse, response *core.DetailedResponse, err error)

ListEnvironments : List environments List existing environments for the service instance.

func (*DiscoveryV1) ListExpansions

func (discovery *DiscoveryV1) ListExpansions(listExpansionsOptions *ListExpansionsOptions) (result *Expansions, response *core.DetailedResponse, err error)

ListExpansions : Get the expansion list Returns the current expansion list for the specified collection. If an expansion list is not specified, an object with empty expansion arrays is returned.

func (*DiscoveryV1) ListFields

func (discovery *DiscoveryV1) ListFields(listFieldsOptions *ListFieldsOptions) (result *ListCollectionFieldsResponse, response *core.DetailedResponse, err error)

ListFields : List fields across collections Gets a list of the unique fields (and their types) stored in the indexes of the specified collections.

func (*DiscoveryV1) ListGateways

func (discovery *DiscoveryV1) ListGateways(listGatewaysOptions *ListGatewaysOptions) (result *GatewayList, response *core.DetailedResponse, err error)

ListGateways : List Gateways List the currently configured gateways.

func (*DiscoveryV1) ListTrainingData

func (discovery *DiscoveryV1) ListTrainingData(listTrainingDataOptions *ListTrainingDataOptions) (result *TrainingDataSet, response *core.DetailedResponse, err error)

ListTrainingData : List training data Lists the training data for the specified collection.

func (*DiscoveryV1) ListTrainingExamples

func (discovery *DiscoveryV1) ListTrainingExamples(listTrainingExamplesOptions *ListTrainingExamplesOptions) (result *TrainingExampleList, response *core.DetailedResponse, err error)

ListTrainingExamples : List examples for a training data query List all examples for this training data query.

func (*DiscoveryV1) NewAddDocumentOptions

func (discovery *DiscoveryV1) NewAddDocumentOptions(environmentID string, collectionID string) *AddDocumentOptions

NewAddDocumentOptions : Instantiate AddDocumentOptions

func (*DiscoveryV1) NewAddTrainingDataOptions

func (discovery *DiscoveryV1) NewAddTrainingDataOptions(environmentID string, collectionID string) *AddTrainingDataOptions

NewAddTrainingDataOptions : Instantiate AddTrainingDataOptions

func (*DiscoveryV1) NewCreateCollectionOptions

func (discovery *DiscoveryV1) NewCreateCollectionOptions(environmentID string, name string) *CreateCollectionOptions

NewCreateCollectionOptions : Instantiate CreateCollectionOptions

func (*DiscoveryV1) NewCreateConfigurationOptions

func (discovery *DiscoveryV1) NewCreateConfigurationOptions(environmentID string, name string) *CreateConfigurationOptions

NewCreateConfigurationOptions : Instantiate CreateConfigurationOptions

func (*DiscoveryV1) NewCreateCredentialsOptions

func (discovery *DiscoveryV1) NewCreateCredentialsOptions(environmentID string) *CreateCredentialsOptions

NewCreateCredentialsOptions : Instantiate CreateCredentialsOptions

func (*DiscoveryV1) NewCreateEnvironmentOptions

func (discovery *DiscoveryV1) NewCreateEnvironmentOptions(name string) *CreateEnvironmentOptions

NewCreateEnvironmentOptions : Instantiate CreateEnvironmentOptions

func (*DiscoveryV1) NewCreateEventOptions

func (discovery *DiscoveryV1) NewCreateEventOptions(typeVar string, data *EventData) *CreateEventOptions

NewCreateEventOptions : Instantiate CreateEventOptions

func (*DiscoveryV1) NewCreateExpansionsOptions

func (discovery *DiscoveryV1) NewCreateExpansionsOptions(environmentID string, collectionID string, expansions []Expansion) *CreateExpansionsOptions

NewCreateExpansionsOptions : Instantiate CreateExpansionsOptions

func (*DiscoveryV1) NewCreateGatewayOptions

func (discovery *DiscoveryV1) NewCreateGatewayOptions(environmentID string) *CreateGatewayOptions

NewCreateGatewayOptions : Instantiate CreateGatewayOptions

func (*DiscoveryV1) NewCreateStopwordListOptions

func (discovery *DiscoveryV1) NewCreateStopwordListOptions(environmentID string, collectionID string, stopwordFile io.ReadCloser, stopwordFilename string) *CreateStopwordListOptions

NewCreateStopwordListOptions : Instantiate CreateStopwordListOptions

func (*DiscoveryV1) NewCreateTokenizationDictionaryOptions

func (discovery *DiscoveryV1) NewCreateTokenizationDictionaryOptions(environmentID string, collectionID string) *CreateTokenizationDictionaryOptions

NewCreateTokenizationDictionaryOptions : Instantiate CreateTokenizationDictionaryOptions

func (*DiscoveryV1) NewCreateTrainingExampleOptions

func (discovery *DiscoveryV1) NewCreateTrainingExampleOptions(environmentID string, collectionID string, queryID string) *CreateTrainingExampleOptions

NewCreateTrainingExampleOptions : Instantiate CreateTrainingExampleOptions

func (*DiscoveryV1) NewDeleteAllTrainingDataOptions

func (discovery *DiscoveryV1) NewDeleteAllTrainingDataOptions(environmentID string, collectionID string) *DeleteAllTrainingDataOptions

NewDeleteAllTrainingDataOptions : Instantiate DeleteAllTrainingDataOptions

func (*DiscoveryV1) NewDeleteCollectionOptions

func (discovery *DiscoveryV1) NewDeleteCollectionOptions(environmentID string, collectionID string) *DeleteCollectionOptions

NewDeleteCollectionOptions : Instantiate DeleteCollectionOptions

func (*DiscoveryV1) NewDeleteConfigurationOptions

func (discovery *DiscoveryV1) NewDeleteConfigurationOptions(environmentID string, configurationID string) *DeleteConfigurationOptions

NewDeleteConfigurationOptions : Instantiate DeleteConfigurationOptions

func (*DiscoveryV1) NewDeleteCredentialsOptions

func (discovery *DiscoveryV1) NewDeleteCredentialsOptions(environmentID string, credentialID string) *DeleteCredentialsOptions

NewDeleteCredentialsOptions : Instantiate DeleteCredentialsOptions

func (*DiscoveryV1) NewDeleteDocumentOptions

func (discovery *DiscoveryV1) NewDeleteDocumentOptions(environmentID string, collectionID string, documentID string) *DeleteDocumentOptions

NewDeleteDocumentOptions : Instantiate DeleteDocumentOptions

func (*DiscoveryV1) NewDeleteEnvironmentOptions

func (discovery *DiscoveryV1) NewDeleteEnvironmentOptions(environmentID string) *DeleteEnvironmentOptions

NewDeleteEnvironmentOptions : Instantiate DeleteEnvironmentOptions

func (*DiscoveryV1) NewDeleteExpansionsOptions

func (discovery *DiscoveryV1) NewDeleteExpansionsOptions(environmentID string, collectionID string) *DeleteExpansionsOptions

NewDeleteExpansionsOptions : Instantiate DeleteExpansionsOptions

func (*DiscoveryV1) NewDeleteGatewayOptions

func (discovery *DiscoveryV1) NewDeleteGatewayOptions(environmentID string, gatewayID string) *DeleteGatewayOptions

NewDeleteGatewayOptions : Instantiate DeleteGatewayOptions

func (*DiscoveryV1) NewDeleteStopwordListOptions

func (discovery *DiscoveryV1) NewDeleteStopwordListOptions(environmentID string, collectionID string) *DeleteStopwordListOptions

NewDeleteStopwordListOptions : Instantiate DeleteStopwordListOptions

func (*DiscoveryV1) NewDeleteTokenizationDictionaryOptions

func (discovery *DiscoveryV1) NewDeleteTokenizationDictionaryOptions(environmentID string, collectionID string) *DeleteTokenizationDictionaryOptions

NewDeleteTokenizationDictionaryOptions : Instantiate DeleteTokenizationDictionaryOptions

func (*DiscoveryV1) NewDeleteTrainingDataOptions

func (discovery *DiscoveryV1) NewDeleteTrainingDataOptions(environmentID string, collectionID string, queryID string) *DeleteTrainingDataOptions

NewDeleteTrainingDataOptions : Instantiate DeleteTrainingDataOptions

func (*DiscoveryV1) NewDeleteTrainingExampleOptions

func (discovery *DiscoveryV1) NewDeleteTrainingExampleOptions(environmentID string, collectionID string, queryID string, exampleID string) *DeleteTrainingExampleOptions

NewDeleteTrainingExampleOptions : Instantiate DeleteTrainingExampleOptions

func (*DiscoveryV1) NewDeleteUserDataOptions

func (discovery *DiscoveryV1) NewDeleteUserDataOptions(customerID string) *DeleteUserDataOptions

NewDeleteUserDataOptions : Instantiate DeleteUserDataOptions

func (*DiscoveryV1) NewFederatedQueryNoticesOptions

func (discovery *DiscoveryV1) NewFederatedQueryNoticesOptions(environmentID string, collectionIds []string) *FederatedQueryNoticesOptions

NewFederatedQueryNoticesOptions : Instantiate FederatedQueryNoticesOptions

func (*DiscoveryV1) NewFederatedQueryOptions

func (discovery *DiscoveryV1) NewFederatedQueryOptions(environmentID string) *FederatedQueryOptions

NewFederatedQueryOptions : Instantiate FederatedQueryOptions

func (*DiscoveryV1) NewGetAutocompletionOptions

func (discovery *DiscoveryV1) NewGetAutocompletionOptions(environmentID string, collectionID string, prefix string) *GetAutocompletionOptions

NewGetAutocompletionOptions : Instantiate GetAutocompletionOptions

func (*DiscoveryV1) NewGetCollectionOptions

func (discovery *DiscoveryV1) NewGetCollectionOptions(environmentID string, collectionID string) *GetCollectionOptions

NewGetCollectionOptions : Instantiate GetCollectionOptions

func (*DiscoveryV1) NewGetConfigurationOptions

func (discovery *DiscoveryV1) NewGetConfigurationOptions(environmentID string, configurationID string) *GetConfigurationOptions

NewGetConfigurationOptions : Instantiate GetConfigurationOptions

func (*DiscoveryV1) NewGetCredentialsOptions

func (discovery *DiscoveryV1) NewGetCredentialsOptions(environmentID string, credentialID string) *GetCredentialsOptions

NewGetCredentialsOptions : Instantiate GetCredentialsOptions

func (*DiscoveryV1) NewGetDocumentStatusOptions

func (discovery *DiscoveryV1) NewGetDocumentStatusOptions(environmentID string, collectionID string, documentID string) *GetDocumentStatusOptions

NewGetDocumentStatusOptions : Instantiate GetDocumentStatusOptions

func (*DiscoveryV1) NewGetEnvironmentOptions

func (discovery *DiscoveryV1) NewGetEnvironmentOptions(environmentID string) *GetEnvironmentOptions

NewGetEnvironmentOptions : Instantiate GetEnvironmentOptions

func (*DiscoveryV1) NewGetGatewayOptions

func (discovery *DiscoveryV1) NewGetGatewayOptions(environmentID string, gatewayID string) *GetGatewayOptions

NewGetGatewayOptions : Instantiate GetGatewayOptions

func (*DiscoveryV1) NewGetMetricsEventRateOptions

func (discovery *DiscoveryV1) NewGetMetricsEventRateOptions() *GetMetricsEventRateOptions

NewGetMetricsEventRateOptions : Instantiate GetMetricsEventRateOptions

func (*DiscoveryV1) NewGetMetricsQueryEventOptions

func (discovery *DiscoveryV1) NewGetMetricsQueryEventOptions() *GetMetricsQueryEventOptions

NewGetMetricsQueryEventOptions : Instantiate GetMetricsQueryEventOptions

func (*DiscoveryV1) NewGetMetricsQueryNoResultsOptions

func (discovery *DiscoveryV1) NewGetMetricsQueryNoResultsOptions() *GetMetricsQueryNoResultsOptions

NewGetMetricsQueryNoResultsOptions : Instantiate GetMetricsQueryNoResultsOptions

func (*DiscoveryV1) NewGetMetricsQueryOptions

func (discovery *DiscoveryV1) NewGetMetricsQueryOptions() *GetMetricsQueryOptions

NewGetMetricsQueryOptions : Instantiate GetMetricsQueryOptions

func (*DiscoveryV1) NewGetMetricsQueryTokenEventOptions

func (discovery *DiscoveryV1) NewGetMetricsQueryTokenEventOptions() *GetMetricsQueryTokenEventOptions

NewGetMetricsQueryTokenEventOptions : Instantiate GetMetricsQueryTokenEventOptions

func (*DiscoveryV1) NewGetStopwordListStatusOptions

func (discovery *DiscoveryV1) NewGetStopwordListStatusOptions(environmentID string, collectionID string) *GetStopwordListStatusOptions

NewGetStopwordListStatusOptions : Instantiate GetStopwordListStatusOptions

func (*DiscoveryV1) NewGetTokenizationDictionaryStatusOptions

func (discovery *DiscoveryV1) NewGetTokenizationDictionaryStatusOptions(environmentID string, collectionID string) *GetTokenizationDictionaryStatusOptions

NewGetTokenizationDictionaryStatusOptions : Instantiate GetTokenizationDictionaryStatusOptions

func (*DiscoveryV1) NewGetTrainingDataOptions

func (discovery *DiscoveryV1) NewGetTrainingDataOptions(environmentID string, collectionID string, queryID string) *GetTrainingDataOptions

NewGetTrainingDataOptions : Instantiate GetTrainingDataOptions

func (*DiscoveryV1) NewGetTrainingExampleOptions

func (discovery *DiscoveryV1) NewGetTrainingExampleOptions(environmentID string, collectionID string, queryID string, exampleID string) *GetTrainingExampleOptions

NewGetTrainingExampleOptions : Instantiate GetTrainingExampleOptions

func (*DiscoveryV1) NewListCollectionFieldsOptions

func (discovery *DiscoveryV1) NewListCollectionFieldsOptions(environmentID string, collectionID string) *ListCollectionFieldsOptions

NewListCollectionFieldsOptions : Instantiate ListCollectionFieldsOptions

func (*DiscoveryV1) NewListCollectionsOptions

func (discovery *DiscoveryV1) NewListCollectionsOptions(environmentID string) *ListCollectionsOptions

NewListCollectionsOptions : Instantiate ListCollectionsOptions

func (*DiscoveryV1) NewListConfigurationsOptions

func (discovery *DiscoveryV1) NewListConfigurationsOptions(environmentID string) *ListConfigurationsOptions

NewListConfigurationsOptions : Instantiate ListConfigurationsOptions

func (*DiscoveryV1) NewListCredentialsOptions

func (discovery *DiscoveryV1) NewListCredentialsOptions(environmentID string) *ListCredentialsOptions

NewListCredentialsOptions : Instantiate ListCredentialsOptions

func (*DiscoveryV1) NewListEnvironmentsOptions

func (discovery *DiscoveryV1) NewListEnvironmentsOptions() *ListEnvironmentsOptions

NewListEnvironmentsOptions : Instantiate ListEnvironmentsOptions

func (*DiscoveryV1) NewListExpansionsOptions

func (discovery *DiscoveryV1) NewListExpansionsOptions(environmentID string, collectionID string) *ListExpansionsOptions

NewListExpansionsOptions : Instantiate ListExpansionsOptions

func (*DiscoveryV1) NewListFieldsOptions

func (discovery *DiscoveryV1) NewListFieldsOptions(environmentID string, collectionIds []string) *ListFieldsOptions

NewListFieldsOptions : Instantiate ListFieldsOptions

func (*DiscoveryV1) NewListGatewaysOptions

func (discovery *DiscoveryV1) NewListGatewaysOptions(environmentID string) *ListGatewaysOptions

NewListGatewaysOptions : Instantiate ListGatewaysOptions

func (*DiscoveryV1) NewListTrainingDataOptions

func (discovery *DiscoveryV1) NewListTrainingDataOptions(environmentID string, collectionID string) *ListTrainingDataOptions

NewListTrainingDataOptions : Instantiate ListTrainingDataOptions

func (*DiscoveryV1) NewListTrainingExamplesOptions

func (discovery *DiscoveryV1) NewListTrainingExamplesOptions(environmentID string, collectionID string, queryID string) *ListTrainingExamplesOptions

NewListTrainingExamplesOptions : Instantiate ListTrainingExamplesOptions

func (*DiscoveryV1) NewQueryLogOptions

func (discovery *DiscoveryV1) NewQueryLogOptions() *QueryLogOptions

NewQueryLogOptions : Instantiate QueryLogOptions

func (*DiscoveryV1) NewQueryNoticesOptions

func (discovery *DiscoveryV1) NewQueryNoticesOptions(environmentID string, collectionID string) *QueryNoticesOptions

NewQueryNoticesOptions : Instantiate QueryNoticesOptions

func (*DiscoveryV1) NewQueryOptions

func (discovery *DiscoveryV1) NewQueryOptions(environmentID string, collectionID string) *QueryOptions

NewQueryOptions : Instantiate QueryOptions

func (*DiscoveryV1) NewUpdateCollectionOptions

func (discovery *DiscoveryV1) NewUpdateCollectionOptions(environmentID string, collectionID string) *UpdateCollectionOptions

NewUpdateCollectionOptions : Instantiate UpdateCollectionOptions

func (*DiscoveryV1) NewUpdateConfigurationOptions

func (discovery *DiscoveryV1) NewUpdateConfigurationOptions(environmentID string, configurationID string, name string) *UpdateConfigurationOptions

NewUpdateConfigurationOptions : Instantiate UpdateConfigurationOptions

func (*DiscoveryV1) NewUpdateCredentialsOptions

func (discovery *DiscoveryV1) NewUpdateCredentialsOptions(environmentID string, credentialID string) *UpdateCredentialsOptions

NewUpdateCredentialsOptions : Instantiate UpdateCredentialsOptions

func (*DiscoveryV1) NewUpdateDocumentOptions

func (discovery *DiscoveryV1) NewUpdateDocumentOptions(environmentID string, collectionID string, documentID string) *UpdateDocumentOptions

NewUpdateDocumentOptions : Instantiate UpdateDocumentOptions

func (*DiscoveryV1) NewUpdateEnvironmentOptions

func (discovery *DiscoveryV1) NewUpdateEnvironmentOptions(environmentID string) *UpdateEnvironmentOptions

NewUpdateEnvironmentOptions : Instantiate UpdateEnvironmentOptions

func (*DiscoveryV1) NewUpdateTrainingExampleOptions

func (discovery *DiscoveryV1) NewUpdateTrainingExampleOptions(environmentID string, collectionID string, queryID string, exampleID string) *UpdateTrainingExampleOptions

NewUpdateTrainingExampleOptions : Instantiate UpdateTrainingExampleOptions

func (*DiscoveryV1) Query

func (discovery *DiscoveryV1) Query(queryOptions *QueryOptions) (result *QueryResponse, response *core.DetailedResponse, err error)

Query : Query a collection By using this method, you can construct long queries. For details, see the [Discovery documentation](https://cloud.ibm.com/docs/services/discovery?topic=discovery-query-concepts#query-concepts).

func (*DiscoveryV1) QueryLog

func (discovery *DiscoveryV1) QueryLog(queryLogOptions *QueryLogOptions) (result *LogQueryResponse, response *core.DetailedResponse, err error)

QueryLog : Search the query and event log Searches the query and event log to find query sessions that match the specified criteria. Searching the **logs** endpoint uses the standard Discovery query syntax for the parameters that are supported.

func (*DiscoveryV1) QueryNotices

func (discovery *DiscoveryV1) QueryNotices(queryNoticesOptions *QueryNoticesOptions) (result *QueryNoticesResponse, response *core.DetailedResponse, err error)

QueryNotices : Query system notices Queries for notices (errors or warnings) that might have been generated by the system. Notices are generated when ingesting documents and performing relevance training. See the [Discovery documentation](https://cloud.ibm.com/docs/services/discovery?topic=discovery-query-concepts#query-concepts) for more details on the query language.

func (*DiscoveryV1) SetServiceURL

func (discovery *DiscoveryV1) SetServiceURL(url string) error

SetServiceURL sets the service URL

func (*DiscoveryV1) UpdateCollection

func (discovery *DiscoveryV1) UpdateCollection(updateCollectionOptions *UpdateCollectionOptions) (result *Collection, response *core.DetailedResponse, err error)

UpdateCollection : Update a collection

func (*DiscoveryV1) UpdateConfiguration

func (discovery *DiscoveryV1) UpdateConfiguration(updateConfigurationOptions *UpdateConfigurationOptions) (result *Configuration, response *core.DetailedResponse, err error)

UpdateConfiguration : Update a configuration Replaces an existing configuration.

  • Completely replaces the original configuration.
  • The **configuration_id**, **updated**, and **created** fields are accepted in the request, but they are ignored,

and an error is not generated. It is also acceptable for users to submit an updated configuration with none of the three properties.

  • Documents are processed with a snapshot of the configuration as it was at the time the document was submitted to

be ingested. This means that already submitted documents will not see any updates made to the configuration.

func (*DiscoveryV1) UpdateCredentials

func (discovery *DiscoveryV1) UpdateCredentials(updateCredentialsOptions *UpdateCredentialsOptions) (result *Credentials, response *core.DetailedResponse, err error)

UpdateCredentials : Update credentials Updates an existing set of source credentials.

**Note:** All credentials are sent over an encrypted connection and encrypted at rest.

func (*DiscoveryV1) UpdateDocument

func (discovery *DiscoveryV1) UpdateDocument(updateDocumentOptions *UpdateDocumentOptions) (result *DocumentAccepted, response *core.DetailedResponse, err error)

UpdateDocument : Update a document Replace an existing document or add a document with a specified **document_id**. Starts ingesting a document with optional metadata.

**Note:** When uploading a new document with this method it automatically replaces any document stored with the same **document_id** if it exists.

func (*DiscoveryV1) UpdateEnvironment

func (discovery *DiscoveryV1) UpdateEnvironment(updateEnvironmentOptions *UpdateEnvironmentOptions) (result *Environment, response *core.DetailedResponse, err error)

UpdateEnvironment : Update an environment Updates an environment. The environment's **name** and **description** parameters can be changed. You must specify a **name** for the environment.

func (*DiscoveryV1) UpdateTrainingExample

func (discovery *DiscoveryV1) UpdateTrainingExample(updateTrainingExampleOptions *UpdateTrainingExampleOptions) (result *TrainingExample, response *core.DetailedResponse, err error)

UpdateTrainingExample : Change label or cross reference for example Changes the label or cross reference query for this training data example.

type DiscoveryV1Options

type DiscoveryV1Options struct {
	URL           string
	Authenticator core.Authenticator
	Version       string
}

DiscoveryV1Options : Service options

type DiskUsage

type DiskUsage struct {

	// Number of bytes within the environment's disk capacity that are currently used to store data.
	UsedBytes *int64 `json:"used_bytes,omitempty"`

	// Total number of bytes available in the environment's disk capacity.
	MaximumAllowedBytes *int64 `json:"maximum_allowed_bytes,omitempty"`
}

DiskUsage : Summary of the disk usage statistics for the environment.

type DocumentAccepted

type DocumentAccepted struct {

	// The unique identifier of the ingested document.
	DocumentID *string `json:"document_id,omitempty"`

	// Status of the document in the ingestion process. A status of `processing` is returned for documents that are
	// ingested with a *version* date before `2019-01-01`. The `pending` status is returned for all others.
	Status *string `json:"status,omitempty"`

	// Array of notices produced by the document-ingestion process.
	Notices []Notice `json:"notices,omitempty"`
}

DocumentAccepted : Information returned after an uploaded document is accepted.

type DocumentCounts

type DocumentCounts struct {

	// The total number of available documents in the collection.
	Available *int64 `json:"available,omitempty"`

	// The number of documents in the collection that are currently being processed.
	Processing *int64 `json:"processing,omitempty"`

	// The number of documents in the collection that failed to be ingested.
	Failed *int64 `json:"failed,omitempty"`

	// The number of documents that have been uploaded to the collection, but have not yet started processing.
	Pending *int64 `json:"pending,omitempty"`
}

DocumentCounts : Object containing collection document count information.

type DocumentStatus

type DocumentStatus struct {

	// The unique identifier of the document.
	DocumentID *string `json:"document_id" validate:"required"`

	// The unique identifier for the configuration.
	ConfigurationID *string `json:"configuration_id,omitempty"`

	// Status of the document in the ingestion process.
	Status *string `json:"status" validate:"required"`

	// Description of the document status.
	StatusDescription *string `json:"status_description" validate:"required"`

	// Name of the original source file (if available).
	Filename *string `json:"filename,omitempty"`

	// The type of the original source file.
	FileType *string `json:"file_type,omitempty"`

	// The SHA-1 hash of the original source file (formatted as a hexadecimal string).
	Sha1 *string `json:"sha1,omitempty"`

	// Array of notices produced by the document-ingestion process.
	Notices []Notice `json:"notices" validate:"required"`
}

DocumentStatus : Status information about a submitted document.

type Enrichment

type Enrichment struct {

	// Describes what the enrichment step does.
	Description *string `json:"description,omitempty"`

	// Field where enrichments will be stored. This field must already exist or be at most 1 level deeper than an existing
	// field. For example, if `text` is a top-level field with no sub-fields, `text.foo` is a valid destination but
	// `text.foo.bar` is not.
	DestinationField *string `json:"destination_field" validate:"required"`

	// Field to be enriched.
	//
	// Arrays can be specified as the **source_field** if the **enrichment** service for this enrichment is set to
	// `natural_language_undstanding`.
	SourceField *string `json:"source_field" validate:"required"`

	// Indicates that the enrichments will overwrite the destination_field field if it already exists.
	Overwrite *bool `json:"overwrite,omitempty"`

	// Name of the enrichment service to call. Current options are `natural_language_understanding` and `elements`.
	//
	//  When using `natual_language_understanding`, the **options** object must contain Natural Language Understanding
	// options.
	//
	//  When using `elements` the **options** object must contain Element Classification options. Additionally, when using
	// the `elements` enrichment the configuration specified and files ingested must meet all the criteria specified in
	// [the
	// documentation](https://cloud.ibm.com/docs/services/discovery?topic=discovery-element-classification#element-classification).
	Enrichment *string `json:"enrichment" validate:"required"`

	// If true, then most errors generated during the enrichment process will be treated as warnings and will not cause the
	// document to fail processing.
	IgnoreDownstreamErrors *bool `json:"ignore_downstream_errors,omitempty"`

	// Options which are specific to a particular enrichment.
	Options *EnrichmentOptions `json:"options,omitempty"`
}

Enrichment : Enrichment step to perform on the document. Each enrichment is performed on the specified field in the order that they are listed in the configuration.

type EnrichmentOptions

type EnrichmentOptions struct {

	// Object containing Natural Language Understanding features to be used.
	Features *NluEnrichmentFeatures `json:"features,omitempty"`

	// ISO 639-1 code indicating the language to use for the analysis. This code overrides the automatic language detection
	// performed by the service. Valid codes are `ar` (Arabic), `en` (English), `fr` (French), `de` (German), `it`
	// (Italian), `pt` (Portuguese), `ru` (Russian), `es` (Spanish), and `sv` (Swedish). **Note:** Not all features support
	// all languages, automatic detection is recommended.
	Language *string `json:"language,omitempty"`

	// *For use with `elements` enrichments only.* The element extraction model to use. Models available are: `contract`.
	Model *string `json:"model,omitempty"`
}

EnrichmentOptions : Options which are specific to a particular enrichment.

type Environment

type Environment struct {

	// Unique identifier for the environment.
	EnvironmentID *string `json:"environment_id,omitempty"`

	// Name that identifies the environment.
	Name *string `json:"name,omitempty"`

	// Description of the environment.
	Description *string `json:"description,omitempty"`

	// Creation date of the environment, in the format `yyyy-MM-dd'T'HH:mm:ss.SSS'Z'`.
	Created *strfmt.DateTime `json:"created,omitempty"`

	// Date of most recent environment update, in the format `yyyy-MM-dd'T'HH:mm:ss.SSS'Z'`.
	Updated *strfmt.DateTime `json:"updated,omitempty"`

	// Current status of the environment. `resizing` is displayed when a request to increase the environment size has been
	// made, but is still in the process of being completed.
	Status *string `json:"status,omitempty"`

	// If `true`, the environment contains read-only collections that are maintained by IBM.
	ReadOnly *bool `json:"read_only,omitempty"`

	// Current size of the environment.
	Size *string `json:"size,omitempty"`

	// The new size requested for this environment. Only returned when the environment *status* is `resizing`.
	//
	// *Note:* Querying and indexing can still be performed during an environment upsize.
	RequestedSize *string `json:"requested_size,omitempty"`

	// Details about the resource usage and capacity of the environment.
	IndexCapacity *IndexCapacity `json:"index_capacity,omitempty"`

	// Information about the Continuous Relevancy Training for this environment.
	SearchStatus *SearchStatus `json:"search_status,omitempty"`
}

Environment : Details about an environment.

type EnvironmentDocuments

type EnvironmentDocuments struct {

	// Number of documents indexed for the environment.
	Indexed *int64 `json:"indexed,omitempty"`

	// Total number of documents allowed in the environment's capacity.
	MaximumAllowed *int64 `json:"maximum_allowed,omitempty"`
}

EnvironmentDocuments : Summary of the document usage statistics for the environment.

type EventData

type EventData struct {

	// The **environment_id** associated with the query that the event is associated with.
	EnvironmentID *string `json:"environment_id" validate:"required"`

	// The session token that was returned as part of the query results that this event is associated with.
	SessionToken *string `json:"session_token" validate:"required"`

	// The optional timestamp for the event that was created. If not provided, the time that the event was created in the
	// log was used.
	ClientTimestamp *strfmt.DateTime `json:"client_timestamp,omitempty"`

	// The rank of the result item which the event is associated with.
	DisplayRank *int64 `json:"display_rank,omitempty"`

	// The **collection_id** of the document that this event is associated with.
	CollectionID *string `json:"collection_id" validate:"required"`

	// The **document_id** of the document that this event is associated with.
	DocumentID *string `json:"document_id" validate:"required"`

	// The query identifier stored in the log. The query and any events associated with that query are stored with the same
	// **query_id**.
	QueryID *string `json:"query_id,omitempty"`
}

EventData : Query event data object.

type Expansion

type Expansion struct {

	// A list of terms that will be expanded for this expansion. If specified, only the items in this list are expanded.
	InputTerms []string `json:"input_terms,omitempty"`

	// A list of terms that this expansion will be expanded to. If specified without **input_terms**, it also functions as
	// the input term list.
	ExpandedTerms []string `json:"expanded_terms" validate:"required"`
}

Expansion : An expansion definition. Each object respresents one set of expandable strings. For example, you could have expansions for the word `hot` in one object, and expansions for the word `cold` in another.

type Expansions

type Expansions struct {

	// An array of query expansion definitions.
	//
	//  Each object in the **expansions** array represents a term or set of terms that will be expanded into other terms.
	// Each expansion object can be configured as bidirectional or unidirectional. Bidirectional means that all terms are
	// expanded to all other terms in the object. Unidirectional means that a set list of terms can be expanded into a
	// second list of terms.
	//
	//  To create a bi-directional expansion specify an **expanded_terms** array. When found in a query, all items in the
	// **expanded_terms** array are then expanded to the other items in the same array.
	//
	//  To create a uni-directional expansion, specify both an array of **input_terms** and an array of **expanded_terms**.
	// When items in the **input_terms** array are present in a query, they are expanded using the items listed in the
	// **expanded_terms** array.
	Expansions []Expansion `json:"expansions" validate:"required"`
}

Expansions : The query expansion definitions for the specified collection.

type FederatedQueryNoticesOptions

type FederatedQueryNoticesOptions struct {

	// The ID of the environment.
	EnvironmentID *string `json:"environment_id" validate:"required"`

	// A comma-separated list of collection IDs to be queried against.
	CollectionIds []string `json:"collection_ids" validate:"required"`

	// 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.
	Filter *string `json:"filter,omitempty"`

	// A query search returns all documents in your data set with full enrichments and full text, but with the most
	// relevant documents listed first.
	Query *string `json:"query,omitempty"`

	// A natural language query that returns relevant documents by utilizing training data and natural language
	// understanding.
	NaturalLanguageQuery *string `json:"natural_language_query,omitempty"`

	// 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.
	Aggregation *string `json:"aggregation,omitempty"`

	// Number of results to return. The maximum for the **count** and **offset** values together in any one query is
	// **10000**.
	Count *int64 `json:"count,omitempty"`

	// A comma-separated list of the portion of the document hierarchy to return.
	Return []string `json:"return,omitempty"`

	// 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**.
	Offset *int64 `json:"offset,omitempty"`

	// 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.
	Sort []string `json:"sort,omitempty"`

	// 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.
	Highlight *bool `json:"highlight,omitempty"`

	// 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.
	DeduplicateField *string `json:"deduplicate.field,omitempty"`

	// When `true`, results are returned based on their similarity to the document IDs specified in the
	// **similar.document_ids** parameter.
	Similar *bool `json:"similar,omitempty"`

	// 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.
	SimilarDocumentIds []string `json:"similar.document_ids,omitempty"`

	// 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.
	SimilarFields []string `json:"similar.fields,omitempty"`

	// Allows users to set headers to be GDPR compliant
	Headers map[string]string
}

FederatedQueryNoticesOptions : The FederatedQueryNotices options.

func (*FederatedQueryNoticesOptions) SetAggregation

func (options *FederatedQueryNoticesOptions) SetAggregation(aggregation string) *FederatedQueryNoticesOptions

SetAggregation : Allow user to set Aggregation

func (*FederatedQueryNoticesOptions) SetCollectionIds

func (options *FederatedQueryNoticesOptions) SetCollectionIds(collectionIds []string) *FederatedQueryNoticesOptions

SetCollectionIds : Allow user to set CollectionIds

func (*FederatedQueryNoticesOptions) SetCount

SetCount : Allow user to set Count

func (*FederatedQueryNoticesOptions) SetDeduplicateField

func (options *FederatedQueryNoticesOptions) SetDeduplicateField(deduplicateField string) *FederatedQueryNoticesOptions

SetDeduplicateField : Allow user to set DeduplicateField

func (*FederatedQueryNoticesOptions) SetEnvironmentID

func (options *FederatedQueryNoticesOptions) SetEnvironmentID(environmentID string) *FederatedQueryNoticesOptions

SetEnvironmentID : Allow user to set EnvironmentID

func (*FederatedQueryNoticesOptions) SetFilter

SetFilter : Allow user to set Filter

func (*FederatedQueryNoticesOptions) SetHeaders

SetHeaders : Allow user to set Headers

func (*FederatedQueryNoticesOptions) SetHighlight

func (options *FederatedQueryNoticesOptions) SetHighlight(highlight bool) *FederatedQueryNoticesOptions

SetHighlight : Allow user to set Highlight

func (*FederatedQueryNoticesOptions) SetNaturalLanguageQuery

func (options *FederatedQueryNoticesOptions) SetNaturalLanguageQuery(naturalLanguageQuery string) *FederatedQueryNoticesOptions

SetNaturalLanguageQuery : Allow user to set NaturalLanguageQuery

func (*FederatedQueryNoticesOptions) SetOffset

SetOffset : Allow user to set Offset

func (*FederatedQueryNoticesOptions) SetQuery

SetQuery : Allow user to set Query

func (*FederatedQueryNoticesOptions) SetReturn

func (options *FederatedQueryNoticesOptions) SetReturn(returnVar []string) *FederatedQueryNoticesOptions

SetReturn : Allow user to set Return

func (*FederatedQueryNoticesOptions) SetSimilar

func (options *FederatedQueryNoticesOptions) SetSimilar(similar bool) *FederatedQueryNoticesOptions

SetSimilar : Allow user to set Similar

func (*FederatedQueryNoticesOptions) SetSimilarDocumentIds

func (options *FederatedQueryNoticesOptions) SetSimilarDocumentIds(similarDocumentIds []string) *FederatedQueryNoticesOptions

SetSimilarDocumentIds : Allow user to set SimilarDocumentIds

func (*FederatedQueryNoticesOptions) SetSimilarFields

func (options *FederatedQueryNoticesOptions) SetSimilarFields(similarFields []string) *FederatedQueryNoticesOptions

SetSimilarFields : Allow user to set SimilarFields

func (*FederatedQueryNoticesOptions) SetSort

SetSort : Allow user to set Sort

type FederatedQueryOptions

type FederatedQueryOptions struct {

	// The ID of the environment.
	EnvironmentID *string `json:"environment_id" validate:"required"`

	// 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.
	Filter *string `json:"filter,omitempty"`

	// A query search returns all documents in your data set with full enrichments and full text, but with the most
	// relevant documents listed first. Use a query search when you want to find the most relevant search results.
	Query *string `json:"query,omitempty"`

	// A natural language query that returns relevant documents by utilizing training data and natural language
	// understanding.
	NaturalLanguageQuery *string `json:"natural_language_query,omitempty"`

	// A passages query that returns the most relevant passages from the results.
	Passages *bool `json:"passages,omitempty"`

	// 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.
	Aggregation *string `json:"aggregation,omitempty"`

	// Number of results to return.
	Count *int64 `json:"count,omitempty"`

	// A comma-separated list of the portion of the document hierarchy to return.
	Return *string `json:"return,omitempty"`

	// 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.
	Offset *int64 `json:"offset,omitempty"`

	// 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. This parameter cannot be used in the same query as the **bias** parameter.
	Sort *string `json:"sort,omitempty"`

	// 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.
	Highlight *bool `json:"highlight,omitempty"`

	// A comma-separated list of fields that passages are drawn from. If this parameter not specified, then all top-level
	// fields are included.
	PassagesFields *string `json:"passages.fields,omitempty"`

	// The maximum number of passages to return. The search returns fewer passages if the requested total is not found. The
	// default is `10`. The maximum is `100`.
	PassagesCount *int64 `json:"passages.count,omitempty"`

	// The approximate number of characters that any one passage will have.
	PassagesCharacters *int64 `json:"passages.characters,omitempty"`

	// When `true`, and used with a Watson Discovery News collection, duplicate results (based on the contents of the
	// **title** field) are removed. Duplicate comparison is limited to the current query only; **offset** is not
	// considered. This parameter is currently Beta functionality.
	Deduplicate *bool `json:"deduplicate,omitempty"`

	// 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.
	DeduplicateField *string `json:"deduplicate.field,omitempty"`

	// When `true`, results are returned based on their similarity to the document IDs specified in the
	// **similar.document_ids** parameter.
	Similar *bool `json:"similar,omitempty"`

	// 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.
	SimilarDocumentIds *string `json:"similar.document_ids,omitempty"`

	// 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.
	SimilarFields *string `json:"similar.fields,omitempty"`

	// Field which the returned results will be biased against. The specified field must be either a **date** or **number**
	// format. When a **date** type field is specified returned results are biased towards field values closer to the
	// current date. When a **number** type field is specified, returned results are biased towards higher field values.
	// This parameter cannot be used in the same query as the **sort** parameter.
	Bias *string `json:"bias,omitempty"`

	// A comma-separated list of collection IDs to be queried against.
	CollectionIds *string `json:"collection_ids,omitempty"`

	// If `true`, queries are not stored in the Discovery **Logs** endpoint.
	XWatsonLoggingOptOut *bool `json:"X-Watson-Logging-Opt-Out,omitempty"`

	// Allows users to set headers to be GDPR compliant
	Headers map[string]string
}

FederatedQueryOptions : The FederatedQuery options.

func (*FederatedQueryOptions) SetAggregation

func (options *FederatedQueryOptions) SetAggregation(aggregation string) *FederatedQueryOptions

SetAggregation : Allow user to set Aggregation

func (*FederatedQueryOptions) SetBias

func (options *FederatedQueryOptions) SetBias(bias string) *FederatedQueryOptions

SetBias : Allow user to set Bias

func (*FederatedQueryOptions) SetCollectionIds

func (options *FederatedQueryOptions) SetCollectionIds(collectionIds string) *FederatedQueryOptions

SetCollectionIds : Allow user to set CollectionIds

func (*FederatedQueryOptions) SetCount

func (options *FederatedQueryOptions) SetCount(count int64) *FederatedQueryOptions

SetCount : Allow user to set Count

func (*FederatedQueryOptions) SetDeduplicate

func (options *FederatedQueryOptions) SetDeduplicate(deduplicate bool) *FederatedQueryOptions

SetDeduplicate : Allow user to set Deduplicate

func (*FederatedQueryOptions) SetDeduplicateField

func (options *FederatedQueryOptions) SetDeduplicateField(deduplicateField string) *FederatedQueryOptions

SetDeduplicateField : Allow user to set DeduplicateField

func (*FederatedQueryOptions) SetEnvironmentID

func (options *FederatedQueryOptions) SetEnvironmentID(environmentID string) *FederatedQueryOptions

SetEnvironmentID : Allow user to set EnvironmentID

func (*FederatedQueryOptions) SetFilter

func (options *FederatedQueryOptions) SetFilter(filter string) *FederatedQueryOptions

SetFilter : Allow user to set Filter

func (*FederatedQueryOptions) SetHeaders

func (options *FederatedQueryOptions) SetHeaders(param map[string]string) *FederatedQueryOptions

SetHeaders : Allow user to set Headers

func (*FederatedQueryOptions) SetHighlight

func (options *FederatedQueryOptions) SetHighlight(highlight bool) *FederatedQueryOptions

SetHighlight : Allow user to set Highlight

func (*FederatedQueryOptions) SetNaturalLanguageQuery

func (options *FederatedQueryOptions) SetNaturalLanguageQuery(naturalLanguageQuery string) *FederatedQueryOptions

SetNaturalLanguageQuery : Allow user to set NaturalLanguageQuery

func (*FederatedQueryOptions) SetOffset

func (options *FederatedQueryOptions) SetOffset(offset int64) *FederatedQueryOptions

SetOffset : Allow user to set Offset

func (*FederatedQueryOptions) SetPassages

func (options *FederatedQueryOptions) SetPassages(passages bool) *FederatedQueryOptions

SetPassages : Allow user to set Passages

func (*FederatedQueryOptions) SetPassagesCharacters

func (options *FederatedQueryOptions) SetPassagesCharacters(passagesCharacters int64) *FederatedQueryOptions

SetPassagesCharacters : Allow user to set PassagesCharacters

func (*FederatedQueryOptions) SetPassagesCount

func (options *FederatedQueryOptions) SetPassagesCount(passagesCount int64) *FederatedQueryOptions

SetPassagesCount : Allow user to set PassagesCount

func (*FederatedQueryOptions) SetPassagesFields

func (options *FederatedQueryOptions) SetPassagesFields(passagesFields string) *FederatedQueryOptions

SetPassagesFields : Allow user to set PassagesFields

func (*FederatedQueryOptions) SetQuery

func (options *FederatedQueryOptions) SetQuery(query string) *FederatedQueryOptions

SetQuery : Allow user to set Query

func (*FederatedQueryOptions) SetReturn

func (options *FederatedQueryOptions) SetReturn(returnVar string) *FederatedQueryOptions

SetReturn : Allow user to set Return

func (*FederatedQueryOptions) SetSimilar

func (options *FederatedQueryOptions) SetSimilar(similar bool) *FederatedQueryOptions

SetSimilar : Allow user to set Similar

func (*FederatedQueryOptions) SetSimilarDocumentIds

func (options *FederatedQueryOptions) SetSimilarDocumentIds(similarDocumentIds string) *FederatedQueryOptions

SetSimilarDocumentIds : Allow user to set SimilarDocumentIds

func (*FederatedQueryOptions) SetSimilarFields

func (options *FederatedQueryOptions) SetSimilarFields(similarFields string) *FederatedQueryOptions

SetSimilarFields : Allow user to set SimilarFields

func (*FederatedQueryOptions) SetSort

func (options *FederatedQueryOptions) SetSort(sort string) *FederatedQueryOptions

SetSort : Allow user to set Sort

func (*FederatedQueryOptions) SetXWatsonLoggingOptOut

func (options *FederatedQueryOptions) SetXWatsonLoggingOptOut(xWatsonLoggingOptOut bool) *FederatedQueryOptions

SetXWatsonLoggingOptOut : Allow user to set XWatsonLoggingOptOut

type Field

type Field struct {

	// The name of the field.
	Field *string `json:"field,omitempty"`

	// The type of the field.
	Type *string `json:"type,omitempty"`
}

Field : Object containing field details.

type Filter

type Filter struct {

	// The match the aggregated results queried for.
	Match *string `json:"match,omitempty"`
}

Filter : Filter struct

type FontSetting

type FontSetting struct {

	// The HTML heading level that any content with the matching font is converted to.
	Level *int64 `json:"level,omitempty"`

	// The minimum size of the font to match.
	MinSize *int64 `json:"min_size,omitempty"`

	// The maximum size of the font to match.
	MaxSize *int64 `json:"max_size,omitempty"`

	// When `true`, the font is matched if it is bold.
	Bold *bool `json:"bold,omitempty"`

	// When `true`, the font is matched if it is italic.
	Italic *bool `json:"italic,omitempty"`

	// The name of the font.
	Name *string `json:"name,omitempty"`
}

FontSetting : Font matching configuration.

type Gateway

type Gateway struct {

	// The gateway ID of the gateway.
	GatewayID *string `json:"gateway_id,omitempty"`

	// The user defined name of the gateway.
	Name *string `json:"name,omitempty"`

	// The current status of the gateway. `connected` means the gateway is connected to the remotly installed gateway.
	// `idle` means this gateway is not currently in use.
	Status *string `json:"status,omitempty"`

	// The generated **token** for this gateway. The value of this field is used when configuring the remotly installed
	// gateway.
	Token *string `json:"token,omitempty"`

	// The generated **token_id** for this gateway. The value of this field is used when configuring the remotly installed
	// gateway.
	TokenID *string `json:"token_id,omitempty"`
}

Gateway : Object describing a specific gateway.

type GatewayDelete

type GatewayDelete struct {

	// The gateway ID of the deleted gateway.
	GatewayID *string `json:"gateway_id,omitempty"`

	// The status of the request.
	Status *string `json:"status,omitempty"`
}

GatewayDelete : Gatway deletion confirmation.

type GatewayList

type GatewayList struct {

	// Array of configured gateway connections.
	Gateways []Gateway `json:"gateways,omitempty"`
}

GatewayList : Object containing gateways array.

type GetAutocompletionOptions

type GetAutocompletionOptions struct {

	// The ID of the environment.
	EnvironmentID *string `json:"environment_id" validate:"required"`

	// The ID of the collection.
	CollectionID *string `json:"collection_id" validate:"required"`

	// The prefix to use for autocompletion. For example, the prefix `Ho` could autocomplete to `Hot`, `Housing`, or `How
	// do I upgrade`. Possible completions are.
	Prefix *string `json:"prefix" validate:"required"`

	// The field in the result documents that autocompletion suggestions are identified from.
	Field *string `json:"field,omitempty"`

	// The number of autocompletion suggestions to return.
	Count *int64 `json:"count,omitempty"`

	// Allows users to set headers to be GDPR compliant
	Headers map[string]string
}

GetAutocompletionOptions : The GetAutocompletion options.

func (*GetAutocompletionOptions) SetCollectionID

func (options *GetAutocompletionOptions) SetCollectionID(collectionID string) *GetAutocompletionOptions

SetCollectionID : Allow user to set CollectionID

func (*GetAutocompletionOptions) SetCount

func (options *GetAutocompletionOptions) SetCount(count int64) *GetAutocompletionOptions

SetCount : Allow user to set Count

func (*GetAutocompletionOptions) SetEnvironmentID

func (options *GetAutocompletionOptions) SetEnvironmentID(environmentID string) *GetAutocompletionOptions

SetEnvironmentID : Allow user to set EnvironmentID

func (*GetAutocompletionOptions) SetField

func (options *GetAutocompletionOptions) SetField(field string) *GetAutocompletionOptions

SetField : Allow user to set Field

func (*GetAutocompletionOptions) SetHeaders

func (options *GetAutocompletionOptions) SetHeaders(param map[string]string) *GetAutocompletionOptions

SetHeaders : Allow user to set Headers

func (*GetAutocompletionOptions) SetPrefix

func (options *GetAutocompletionOptions) SetPrefix(prefix string) *GetAutocompletionOptions

SetPrefix : Allow user to set Prefix

type GetCollectionOptions

type GetCollectionOptions struct {

	// The ID of the environment.
	EnvironmentID *string `json:"environment_id" validate:"required"`

	// The ID of the collection.
	CollectionID *string `json:"collection_id" validate:"required"`

	// Allows users to set headers to be GDPR compliant
	Headers map[string]string
}

GetCollectionOptions : The GetCollection options.

func (*GetCollectionOptions) SetCollectionID

func (options *GetCollectionOptions) SetCollectionID(collectionID string) *GetCollectionOptions

SetCollectionID : Allow user to set CollectionID

func (*GetCollectionOptions) SetEnvironmentID

func (options *GetCollectionOptions) SetEnvironmentID(environmentID string) *GetCollectionOptions

SetEnvironmentID : Allow user to set EnvironmentID

func (*GetCollectionOptions) SetHeaders

func (options *GetCollectionOptions) SetHeaders(param map[string]string) *GetCollectionOptions

SetHeaders : Allow user to set Headers

type GetConfigurationOptions

type GetConfigurationOptions struct {

	// The ID of the environment.
	EnvironmentID *string `json:"environment_id" validate:"required"`

	// The ID of the configuration.
	ConfigurationID *string `json:"configuration_id" validate:"required"`

	// Allows users to set headers to be GDPR compliant
	Headers map[string]string
}

GetConfigurationOptions : The GetConfiguration options.

func (*GetConfigurationOptions) SetConfigurationID

func (options *GetConfigurationOptions) SetConfigurationID(configurationID string) *GetConfigurationOptions

SetConfigurationID : Allow user to set ConfigurationID

func (*GetConfigurationOptions) SetEnvironmentID

func (options *GetConfigurationOptions) SetEnvironmentID(environmentID string) *GetConfigurationOptions

SetEnvironmentID : Allow user to set EnvironmentID

func (*GetConfigurationOptions) SetHeaders

func (options *GetConfigurationOptions) SetHeaders(param map[string]string) *GetConfigurationOptions

SetHeaders : Allow user to set Headers

type GetCredentialsOptions

type GetCredentialsOptions struct {

	// The ID of the environment.
	EnvironmentID *string `json:"environment_id" validate:"required"`

	// The unique identifier for a set of source credentials.
	CredentialID *string `json:"credential_id" validate:"required"`

	// Allows users to set headers to be GDPR compliant
	Headers map[string]string
}

GetCredentialsOptions : The GetCredentials options.

func (*GetCredentialsOptions) SetCredentialID

func (options *GetCredentialsOptions) SetCredentialID(credentialID string) *GetCredentialsOptions

SetCredentialID : Allow user to set CredentialID

func (*GetCredentialsOptions) SetEnvironmentID

func (options *GetCredentialsOptions) SetEnvironmentID(environmentID string) *GetCredentialsOptions

SetEnvironmentID : Allow user to set EnvironmentID

func (*GetCredentialsOptions) SetHeaders

func (options *GetCredentialsOptions) SetHeaders(param map[string]string) *GetCredentialsOptions

SetHeaders : Allow user to set Headers

type GetDocumentStatusOptions

type GetDocumentStatusOptions struct {

	// The ID of the environment.
	EnvironmentID *string `json:"environment_id" validate:"required"`

	// The ID of the collection.
	CollectionID *string `json:"collection_id" validate:"required"`

	// The ID of the document.
	DocumentID *string `json:"document_id" validate:"required"`

	// Allows users to set headers to be GDPR compliant
	Headers map[string]string
}

GetDocumentStatusOptions : The GetDocumentStatus options.

func (*GetDocumentStatusOptions) SetCollectionID

func (options *GetDocumentStatusOptions) SetCollectionID(collectionID string) *GetDocumentStatusOptions

SetCollectionID : Allow user to set CollectionID

func (*GetDocumentStatusOptions) SetDocumentID

func (options *GetDocumentStatusOptions) SetDocumentID(documentID string) *GetDocumentStatusOptions

SetDocumentID : Allow user to set DocumentID

func (*GetDocumentStatusOptions) SetEnvironmentID

func (options *GetDocumentStatusOptions) SetEnvironmentID(environmentID string) *GetDocumentStatusOptions

SetEnvironmentID : Allow user to set EnvironmentID

func (*GetDocumentStatusOptions) SetHeaders

func (options *GetDocumentStatusOptions) SetHeaders(param map[string]string) *GetDocumentStatusOptions

SetHeaders : Allow user to set Headers

type GetEnvironmentOptions

type GetEnvironmentOptions struct {

	// The ID of the environment.
	EnvironmentID *string `json:"environment_id" validate:"required"`

	// Allows users to set headers to be GDPR compliant
	Headers map[string]string
}

GetEnvironmentOptions : The GetEnvironment options.

func (*GetEnvironmentOptions) SetEnvironmentID

func (options *GetEnvironmentOptions) SetEnvironmentID(environmentID string) *GetEnvironmentOptions

SetEnvironmentID : Allow user to set EnvironmentID

func (*GetEnvironmentOptions) SetHeaders

func (options *GetEnvironmentOptions) SetHeaders(param map[string]string) *GetEnvironmentOptions

SetHeaders : Allow user to set Headers

type GetGatewayOptions

type GetGatewayOptions struct {

	// The ID of the environment.
	EnvironmentID *string `json:"environment_id" validate:"required"`

	// The requested gateway ID.
	GatewayID *string `json:"gateway_id" validate:"required"`

	// Allows users to set headers to be GDPR compliant
	Headers map[string]string
}

GetGatewayOptions : The GetGateway options.

func (*GetGatewayOptions) SetEnvironmentID

func (options *GetGatewayOptions) SetEnvironmentID(environmentID string) *GetGatewayOptions

SetEnvironmentID : Allow user to set EnvironmentID

func (*GetGatewayOptions) SetGatewayID

func (options *GetGatewayOptions) SetGatewayID(gatewayID string) *GetGatewayOptions

SetGatewayID : Allow user to set GatewayID

func (*GetGatewayOptions) SetHeaders

func (options *GetGatewayOptions) SetHeaders(param map[string]string) *GetGatewayOptions

SetHeaders : Allow user to set Headers

type GetMetricsEventRateOptions

type GetMetricsEventRateOptions struct {

	// Metric is computed from data recorded after this timestamp; must be in `YYYY-MM-DDThh:mm:ssZ` format.
	StartTime *strfmt.DateTime `json:"start_time,omitempty"`

	// Metric is computed from data recorded before this timestamp; must be in `YYYY-MM-DDThh:mm:ssZ` format.
	EndTime *strfmt.DateTime `json:"end_time,omitempty"`

	// The type of result to consider when calculating the metric.
	ResultType *string `json:"result_type,omitempty"`

	// Allows users to set headers to be GDPR compliant
	Headers map[string]string
}

GetMetricsEventRateOptions : The GetMetricsEventRate options.

func (*GetMetricsEventRateOptions) SetEndTime

SetEndTime : Allow user to set EndTime

func (*GetMetricsEventRateOptions) SetHeaders

func (options *GetMetricsEventRateOptions) SetHeaders(param map[string]string) *GetMetricsEventRateOptions

SetHeaders : Allow user to set Headers

func (*GetMetricsEventRateOptions) SetResultType

func (options *GetMetricsEventRateOptions) SetResultType(resultType string) *GetMetricsEventRateOptions

SetResultType : Allow user to set ResultType

func (*GetMetricsEventRateOptions) SetStartTime

func (options *GetMetricsEventRateOptions) SetStartTime(startTime *strfmt.DateTime) *GetMetricsEventRateOptions

SetStartTime : Allow user to set StartTime

type GetMetricsQueryEventOptions

type GetMetricsQueryEventOptions struct {

	// Metric is computed from data recorded after this timestamp; must be in `YYYY-MM-DDThh:mm:ssZ` format.
	StartTime *strfmt.DateTime `json:"start_time,omitempty"`

	// Metric is computed from data recorded before this timestamp; must be in `YYYY-MM-DDThh:mm:ssZ` format.
	EndTime *strfmt.DateTime `json:"end_time,omitempty"`

	// The type of result to consider when calculating the metric.
	ResultType *string `json:"result_type,omitempty"`

	// Allows users to set headers to be GDPR compliant
	Headers map[string]string
}

GetMetricsQueryEventOptions : The GetMetricsQueryEvent options.

func (*GetMetricsQueryEventOptions) SetEndTime

SetEndTime : Allow user to set EndTime

func (*GetMetricsQueryEventOptions) SetHeaders

func (options *GetMetricsQueryEventOptions) SetHeaders(param map[string]string) *GetMetricsQueryEventOptions

SetHeaders : Allow user to set Headers

func (*GetMetricsQueryEventOptions) SetResultType

func (options *GetMetricsQueryEventOptions) SetResultType(resultType string) *GetMetricsQueryEventOptions

SetResultType : Allow user to set ResultType

func (*GetMetricsQueryEventOptions) SetStartTime

func (options *GetMetricsQueryEventOptions) SetStartTime(startTime *strfmt.DateTime) *GetMetricsQueryEventOptions

SetStartTime : Allow user to set StartTime

type GetMetricsQueryNoResultsOptions

type GetMetricsQueryNoResultsOptions struct {

	// Metric is computed from data recorded after this timestamp; must be in `YYYY-MM-DDThh:mm:ssZ` format.
	StartTime *strfmt.DateTime `json:"start_time,omitempty"`

	// Metric is computed from data recorded before this timestamp; must be in `YYYY-MM-DDThh:mm:ssZ` format.
	EndTime *strfmt.DateTime `json:"end_time,omitempty"`

	// The type of result to consider when calculating the metric.
	ResultType *string `json:"result_type,omitempty"`

	// Allows users to set headers to be GDPR compliant
	Headers map[string]string
}

GetMetricsQueryNoResultsOptions : The GetMetricsQueryNoResults options.

func (*GetMetricsQueryNoResultsOptions) SetEndTime

SetEndTime : Allow user to set EndTime

func (*GetMetricsQueryNoResultsOptions) SetHeaders

SetHeaders : Allow user to set Headers

func (*GetMetricsQueryNoResultsOptions) SetResultType

func (options *GetMetricsQueryNoResultsOptions) SetResultType(resultType string) *GetMetricsQueryNoResultsOptions

SetResultType : Allow user to set ResultType

func (*GetMetricsQueryNoResultsOptions) SetStartTime

SetStartTime : Allow user to set StartTime

type GetMetricsQueryOptions

type GetMetricsQueryOptions struct {

	// Metric is computed from data recorded after this timestamp; must be in `YYYY-MM-DDThh:mm:ssZ` format.
	StartTime *strfmt.DateTime `json:"start_time,omitempty"`

	// Metric is computed from data recorded before this timestamp; must be in `YYYY-MM-DDThh:mm:ssZ` format.
	EndTime *strfmt.DateTime `json:"end_time,omitempty"`

	// The type of result to consider when calculating the metric.
	ResultType *string `json:"result_type,omitempty"`

	// Allows users to set headers to be GDPR compliant
	Headers map[string]string
}

GetMetricsQueryOptions : The GetMetricsQuery options.

func (*GetMetricsQueryOptions) SetEndTime

func (options *GetMetricsQueryOptions) SetEndTime(endTime *strfmt.DateTime) *GetMetricsQueryOptions

SetEndTime : Allow user to set EndTime

func (*GetMetricsQueryOptions) SetHeaders

func (options *GetMetricsQueryOptions) SetHeaders(param map[string]string) *GetMetricsQueryOptions

SetHeaders : Allow user to set Headers

func (*GetMetricsQueryOptions) SetResultType

func (options *GetMetricsQueryOptions) SetResultType(resultType string) *GetMetricsQueryOptions

SetResultType : Allow user to set ResultType

func (*GetMetricsQueryOptions) SetStartTime

func (options *GetMetricsQueryOptions) SetStartTime(startTime *strfmt.DateTime) *GetMetricsQueryOptions

SetStartTime : Allow user to set StartTime

type GetMetricsQueryTokenEventOptions

type GetMetricsQueryTokenEventOptions struct {

	// Number of results to return. The maximum for the **count** and **offset** values together in any one query is
	// **10000**.
	Count *int64 `json:"count,omitempty"`

	// Allows users to set headers to be GDPR compliant
	Headers map[string]string
}

GetMetricsQueryTokenEventOptions : The GetMetricsQueryTokenEvent options.

func (*GetMetricsQueryTokenEventOptions) SetCount

SetCount : Allow user to set Count

func (*GetMetricsQueryTokenEventOptions) SetHeaders

SetHeaders : Allow user to set Headers

type GetStopwordListStatusOptions

type GetStopwordListStatusOptions struct {

	// The ID of the environment.
	EnvironmentID *string `json:"environment_id" validate:"required"`

	// The ID of the collection.
	CollectionID *string `json:"collection_id" validate:"required"`

	// Allows users to set headers to be GDPR compliant
	Headers map[string]string
}

GetStopwordListStatusOptions : The GetStopwordListStatus options.

func (*GetStopwordListStatusOptions) SetCollectionID

func (options *GetStopwordListStatusOptions) SetCollectionID(collectionID string) *GetStopwordListStatusOptions

SetCollectionID : Allow user to set CollectionID

func (*GetStopwordListStatusOptions) SetEnvironmentID

func (options *GetStopwordListStatusOptions) SetEnvironmentID(environmentID string) *GetStopwordListStatusOptions

SetEnvironmentID : Allow user to set EnvironmentID

func (*GetStopwordListStatusOptions) SetHeaders

SetHeaders : Allow user to set Headers

type GetTokenizationDictionaryStatusOptions

type GetTokenizationDictionaryStatusOptions struct {

	// The ID of the environment.
	EnvironmentID *string `json:"environment_id" validate:"required"`

	// The ID of the collection.
	CollectionID *string `json:"collection_id" validate:"required"`

	// Allows users to set headers to be GDPR compliant
	Headers map[string]string
}

GetTokenizationDictionaryStatusOptions : The GetTokenizationDictionaryStatus options.

func (*GetTokenizationDictionaryStatusOptions) SetCollectionID

SetCollectionID : Allow user to set CollectionID

func (*GetTokenizationDictionaryStatusOptions) SetEnvironmentID

SetEnvironmentID : Allow user to set EnvironmentID

func (*GetTokenizationDictionaryStatusOptions) SetHeaders

SetHeaders : Allow user to set Headers

type GetTrainingDataOptions

type GetTrainingDataOptions struct {

	// The ID of the environment.
	EnvironmentID *string `json:"environment_id" validate:"required"`

	// The ID of the collection.
	CollectionID *string `json:"collection_id" validate:"required"`

	// The ID of the query used for training.
	QueryID *string `json:"query_id" validate:"required"`

	// Allows users to set headers to be GDPR compliant
	Headers map[string]string
}

GetTrainingDataOptions : The GetTrainingData options.

func (*GetTrainingDataOptions) SetCollectionID

func (options *GetTrainingDataOptions) SetCollectionID(collectionID string) *GetTrainingDataOptions

SetCollectionID : Allow user to set CollectionID

func (*GetTrainingDataOptions) SetEnvironmentID

func (options *GetTrainingDataOptions) SetEnvironmentID(environmentID string) *GetTrainingDataOptions

SetEnvironmentID : Allow user to set EnvironmentID

func (*GetTrainingDataOptions) SetHeaders

func (options *GetTrainingDataOptions) SetHeaders(param map[string]string) *GetTrainingDataOptions

SetHeaders : Allow user to set Headers

func (*GetTrainingDataOptions) SetQueryID

func (options *GetTrainingDataOptions) SetQueryID(queryID string) *GetTrainingDataOptions

SetQueryID : Allow user to set QueryID

type GetTrainingExampleOptions

type GetTrainingExampleOptions struct {

	// The ID of the environment.
	EnvironmentID *string `json:"environment_id" validate:"required"`

	// The ID of the collection.
	CollectionID *string `json:"collection_id" validate:"required"`

	// The ID of the query used for training.
	QueryID *string `json:"query_id" validate:"required"`

	// The ID of the document as it is indexed.
	ExampleID *string `json:"example_id" validate:"required"`

	// Allows users to set headers to be GDPR compliant
	Headers map[string]string
}

GetTrainingExampleOptions : The GetTrainingExample options.

func (*GetTrainingExampleOptions) SetCollectionID

func (options *GetTrainingExampleOptions) SetCollectionID(collectionID string) *GetTrainingExampleOptions

SetCollectionID : Allow user to set CollectionID

func (*GetTrainingExampleOptions) SetEnvironmentID

func (options *GetTrainingExampleOptions) SetEnvironmentID(environmentID string) *GetTrainingExampleOptions

SetEnvironmentID : Allow user to set EnvironmentID

func (*GetTrainingExampleOptions) SetExampleID

func (options *GetTrainingExampleOptions) SetExampleID(exampleID string) *GetTrainingExampleOptions

SetExampleID : Allow user to set ExampleID

func (*GetTrainingExampleOptions) SetHeaders

func (options *GetTrainingExampleOptions) SetHeaders(param map[string]string) *GetTrainingExampleOptions

SetHeaders : Allow user to set Headers

func (*GetTrainingExampleOptions) SetQueryID

func (options *GetTrainingExampleOptions) SetQueryID(queryID string) *GetTrainingExampleOptions

SetQueryID : Allow user to set QueryID

type HTMLSettings

type HTMLSettings struct {

	// Array of HTML tags that are excluded completely.
	ExcludeTagsCompletely []string `json:"exclude_tags_completely,omitempty"`

	// Array of HTML tags which are excluded but still retain content.
	ExcludeTagsKeepContent []string `json:"exclude_tags_keep_content,omitempty"`

	// Object containing an array of XPaths.
	KeepContent *XPathPatterns `json:"keep_content,omitempty"`

	// Object containing an array of XPaths.
	ExcludeContent *XPathPatterns `json:"exclude_content,omitempty"`

	// An array of HTML tag attributes to keep in the converted document.
	KeepTagAttributes []string `json:"keep_tag_attributes,omitempty"`

	// Array of HTML tag attributes to exclude.
	ExcludeTagAttributes []string `json:"exclude_tag_attributes,omitempty"`
}

HTMLSettings : A list of HTML conversion settings.

type Histogram

type Histogram struct {

	// The field where the aggregation is located in the document.
	Field *string `json:"field,omitempty"`

	// Interval of the aggregation. (For 'histogram' type).
	Interval *int64 `json:"interval,omitempty"`
}

Histogram : Histogram struct

type IndexCapacity

type IndexCapacity struct {

	// Summary of the document usage statistics for the environment.
	Documents *EnvironmentDocuments `json:"documents,omitempty"`

	// Summary of the disk usage statistics for the environment.
	DiskUsage *DiskUsage `json:"disk_usage,omitempty"`

	// Summary of the collection usage in the environment.
	Collections *CollectionUsage `json:"collections,omitempty"`
}

IndexCapacity : Details about the resource usage and capacity of the environment.

type ListCollectionFieldsOptions

type ListCollectionFieldsOptions struct {

	// The ID of the environment.
	EnvironmentID *string `json:"environment_id" validate:"required"`

	// The ID of the collection.
	CollectionID *string `json:"collection_id" validate:"required"`

	// Allows users to set headers to be GDPR compliant
	Headers map[string]string
}

ListCollectionFieldsOptions : The ListCollectionFields options.

func (*ListCollectionFieldsOptions) SetCollectionID

func (options *ListCollectionFieldsOptions) SetCollectionID(collectionID string) *ListCollectionFieldsOptions

SetCollectionID : Allow user to set CollectionID

func (*ListCollectionFieldsOptions) SetEnvironmentID

func (options *ListCollectionFieldsOptions) SetEnvironmentID(environmentID string) *ListCollectionFieldsOptions

SetEnvironmentID : Allow user to set EnvironmentID

func (*ListCollectionFieldsOptions) SetHeaders

func (options *ListCollectionFieldsOptions) SetHeaders(param map[string]string) *ListCollectionFieldsOptions

SetHeaders : Allow user to set Headers

type ListCollectionFieldsResponse

type ListCollectionFieldsResponse struct {

	// An array containing information about each field in the collections.
	Fields []Field `json:"fields,omitempty"`
}

ListCollectionFieldsResponse : The list of fetched fields.

The fields are returned using a fully qualified name format, however, the format differs slightly from that used by the query operations.

  • Fields which contain nested JSON objects are assigned a type of "nested".

  • Fields which belong to a nested object are prefixed with `.properties` (for example,

`warnings.properties.severity` means that the `warnings` object has a property called `severity`).

  • Fields returned from the News collection are prefixed with `v{N}-fullnews-t3-{YEAR}.mappings` (for example,

`v5-fullnews-t3-2016.mappings.text.properties.author`).

type ListCollectionsOptions

type ListCollectionsOptions struct {

	// The ID of the environment.
	EnvironmentID *string `json:"environment_id" validate:"required"`

	// Find collections with the given name.
	Name *string `json:"name,omitempty"`

	// Allows users to set headers to be GDPR compliant
	Headers map[string]string
}

ListCollectionsOptions : The ListCollections options.

func (*ListCollectionsOptions) SetEnvironmentID

func (options *ListCollectionsOptions) SetEnvironmentID(environmentID string) *ListCollectionsOptions

SetEnvironmentID : Allow user to set EnvironmentID

func (*ListCollectionsOptions) SetHeaders

func (options *ListCollectionsOptions) SetHeaders(param map[string]string) *ListCollectionsOptions

SetHeaders : Allow user to set Headers

func (*ListCollectionsOptions) SetName

func (options *ListCollectionsOptions) SetName(name string) *ListCollectionsOptions

SetName : Allow user to set Name

type ListCollectionsResponse

type ListCollectionsResponse struct {

	// An array containing information about each collection in the environment.
	Collections []Collection `json:"collections,omitempty"`
}

ListCollectionsResponse : Response object containing an array of collection details.

type ListConfigurationsOptions

type ListConfigurationsOptions struct {

	// The ID of the environment.
	EnvironmentID *string `json:"environment_id" validate:"required"`

	// Find configurations with the given name.
	Name *string `json:"name,omitempty"`

	// Allows users to set headers to be GDPR compliant
	Headers map[string]string
}

ListConfigurationsOptions : The ListConfigurations options.

func (*ListConfigurationsOptions) SetEnvironmentID

func (options *ListConfigurationsOptions) SetEnvironmentID(environmentID string) *ListConfigurationsOptions

SetEnvironmentID : Allow user to set EnvironmentID

func (*ListConfigurationsOptions) SetHeaders

func (options *ListConfigurationsOptions) SetHeaders(param map[string]string) *ListConfigurationsOptions

SetHeaders : Allow user to set Headers

func (*ListConfigurationsOptions) SetName

SetName : Allow user to set Name

type ListConfigurationsResponse

type ListConfigurationsResponse struct {

	// An array of configurations that are available for the service instance.
	Configurations []Configuration `json:"configurations,omitempty"`
}

ListConfigurationsResponse : Object containing an array of available configurations.

type ListCredentialsOptions

type ListCredentialsOptions struct {

	// The ID of the environment.
	EnvironmentID *string `json:"environment_id" validate:"required"`

	// Allows users to set headers to be GDPR compliant
	Headers map[string]string
}

ListCredentialsOptions : The ListCredentials options.

func (*ListCredentialsOptions) SetEnvironmentID

func (options *ListCredentialsOptions) SetEnvironmentID(environmentID string) *ListCredentialsOptions

SetEnvironmentID : Allow user to set EnvironmentID

func (*ListCredentialsOptions) SetHeaders

func (options *ListCredentialsOptions) SetHeaders(param map[string]string) *ListCredentialsOptions

SetHeaders : Allow user to set Headers

type ListEnvironmentsOptions

type ListEnvironmentsOptions struct {

	// Show only the environment with the given name.
	Name *string `json:"name,omitempty"`

	// Allows users to set headers to be GDPR compliant
	Headers map[string]string
}

ListEnvironmentsOptions : The ListEnvironments options.

func (*ListEnvironmentsOptions) SetHeaders

func (options *ListEnvironmentsOptions) SetHeaders(param map[string]string) *ListEnvironmentsOptions

SetHeaders : Allow user to set Headers

func (*ListEnvironmentsOptions) SetName

func (options *ListEnvironmentsOptions) SetName(name string) *ListEnvironmentsOptions

SetName : Allow user to set Name

type ListEnvironmentsResponse

type ListEnvironmentsResponse struct {

	// An array of [environments] that are available for the service instance.
	Environments []Environment `json:"environments,omitempty"`
}

ListEnvironmentsResponse : Response object containing an array of configured environments.

type ListExpansionsOptions

type ListExpansionsOptions struct {

	// The ID of the environment.
	EnvironmentID *string `json:"environment_id" validate:"required"`

	// The ID of the collection.
	CollectionID *string `json:"collection_id" validate:"required"`

	// Allows users to set headers to be GDPR compliant
	Headers map[string]string
}

ListExpansionsOptions : The ListExpansions options.

func (*ListExpansionsOptions) SetCollectionID

func (options *ListExpansionsOptions) SetCollectionID(collectionID string) *ListExpansionsOptions

SetCollectionID : Allow user to set CollectionID

func (*ListExpansionsOptions) SetEnvironmentID

func (options *ListExpansionsOptions) SetEnvironmentID(environmentID string) *ListExpansionsOptions

SetEnvironmentID : Allow user to set EnvironmentID

func (*ListExpansionsOptions) SetHeaders

func (options *ListExpansionsOptions) SetHeaders(param map[string]string) *ListExpansionsOptions

SetHeaders : Allow user to set Headers

type ListFieldsOptions

type ListFieldsOptions struct {

	// The ID of the environment.
	EnvironmentID *string `json:"environment_id" validate:"required"`

	// A comma-separated list of collection IDs to be queried against.
	CollectionIds []string `json:"collection_ids" validate:"required"`

	// Allows users to set headers to be GDPR compliant
	Headers map[string]string
}

ListFieldsOptions : The ListFields options.

func (*ListFieldsOptions) SetCollectionIds

func (options *ListFieldsOptions) SetCollectionIds(collectionIds []string) *ListFieldsOptions

SetCollectionIds : Allow user to set CollectionIds

func (*ListFieldsOptions) SetEnvironmentID

func (options *ListFieldsOptions) SetEnvironmentID(environmentID string) *ListFieldsOptions

SetEnvironmentID : Allow user to set EnvironmentID

func (*ListFieldsOptions) SetHeaders

func (options *ListFieldsOptions) SetHeaders(param map[string]string) *ListFieldsOptions

SetHeaders : Allow user to set Headers

type ListGatewaysOptions

type ListGatewaysOptions struct {

	// The ID of the environment.
	EnvironmentID *string `json:"environment_id" validate:"required"`

	// Allows users to set headers to be GDPR compliant
	Headers map[string]string
}

ListGatewaysOptions : The ListGateways options.

func (*ListGatewaysOptions) SetEnvironmentID

func (options *ListGatewaysOptions) SetEnvironmentID(environmentID string) *ListGatewaysOptions

SetEnvironmentID : Allow user to set EnvironmentID

func (*ListGatewaysOptions) SetHeaders

func (options *ListGatewaysOptions) SetHeaders(param map[string]string) *ListGatewaysOptions

SetHeaders : Allow user to set Headers

type ListTrainingDataOptions

type ListTrainingDataOptions struct {

	// The ID of the environment.
	EnvironmentID *string `json:"environment_id" validate:"required"`

	// The ID of the collection.
	CollectionID *string `json:"collection_id" validate:"required"`

	// Allows users to set headers to be GDPR compliant
	Headers map[string]string
}

ListTrainingDataOptions : The ListTrainingData options.

func (*ListTrainingDataOptions) SetCollectionID

func (options *ListTrainingDataOptions) SetCollectionID(collectionID string) *ListTrainingDataOptions

SetCollectionID : Allow user to set CollectionID

func (*ListTrainingDataOptions) SetEnvironmentID

func (options *ListTrainingDataOptions) SetEnvironmentID(environmentID string) *ListTrainingDataOptions

SetEnvironmentID : Allow user to set EnvironmentID

func (*ListTrainingDataOptions) SetHeaders

func (options *ListTrainingDataOptions) SetHeaders(param map[string]string) *ListTrainingDataOptions

SetHeaders : Allow user to set Headers

type ListTrainingExamplesOptions

type ListTrainingExamplesOptions struct {

	// The ID of the environment.
	EnvironmentID *string `json:"environment_id" validate:"required"`

	// The ID of the collection.
	CollectionID *string `json:"collection_id" validate:"required"`

	// The ID of the query used for training.
	QueryID *string `json:"query_id" validate:"required"`

	// Allows users to set headers to be GDPR compliant
	Headers map[string]string
}

ListTrainingExamplesOptions : The ListTrainingExamples options.

func (*ListTrainingExamplesOptions) SetCollectionID

func (options *ListTrainingExamplesOptions) SetCollectionID(collectionID string) *ListTrainingExamplesOptions

SetCollectionID : Allow user to set CollectionID

func (*ListTrainingExamplesOptions) SetEnvironmentID

func (options *ListTrainingExamplesOptions) SetEnvironmentID(environmentID string) *ListTrainingExamplesOptions

SetEnvironmentID : Allow user to set EnvironmentID

func (*ListTrainingExamplesOptions) SetHeaders

func (options *ListTrainingExamplesOptions) SetHeaders(param map[string]string) *ListTrainingExamplesOptions

SetHeaders : Allow user to set Headers

func (*ListTrainingExamplesOptions) SetQueryID

func (options *ListTrainingExamplesOptions) SetQueryID(queryID string) *ListTrainingExamplesOptions

SetQueryID : Allow user to set QueryID

type LogQueryResponse

type LogQueryResponse struct {

	// Number of matching results.
	MatchingResults *int64 `json:"matching_results,omitempty"`

	// Array of log query response results.
	Results []LogQueryResponseResult `json:"results,omitempty"`
}

LogQueryResponse : Object containing results that match the requested **logs** query.

type LogQueryResponseResult

type LogQueryResponseResult struct {

	// The environment ID that is associated with this log entry.
	EnvironmentID *string `json:"environment_id,omitempty"`

	// The **customer_id** label that was specified in the header of the query or event API call that corresponds to this
	// log entry.
	CustomerID *string `json:"customer_id,omitempty"`

	// The type of log entry returned.
	//
	//  **query** indicates that the log represents the results of a call to the single collection **query** method.
	//
	//  **event** indicates that the log represents  a call to the **events** API.
	DocumentType *string `json:"document_type,omitempty"`

	// The value of the **natural_language_query** query parameter that was used to create these results. Only returned
	// with logs of type **query**.
	//
	// **Note:** Other query parameters (such as **filter** or **deduplicate**) might  have been used with this query, but
	// are not recorded.
	NaturalLanguageQuery *string `json:"natural_language_query,omitempty"`

	// Object containing result information that was returned by the query used to create this log entry. Only returned
	// with logs of type `query`.
	DocumentResults *LogQueryResponseResultDocuments `json:"document_results,omitempty"`

	// Date that the log result was created. Returned in `YYYY-MM-DDThh:mm:ssZ` format.
	CreatedTimestamp *strfmt.DateTime `json:"created_timestamp,omitempty"`

	// Date specified by the user when recording an event. Returned in `YYYY-MM-DDThh:mm:ssZ` format. Only returned with
	// logs of type **event**.
	ClientTimestamp *strfmt.DateTime `json:"client_timestamp,omitempty"`

	// Identifier that corresponds to the **natural_language_query** string used in the original or associated query. All
	// **event** and **query** log entries that have the same original **natural_language_query** string also have them
	// same **query_id**. This field can be used to recall all **event** and **query** log results that have the same
	// original query (**event** logs do not contain the original **natural_language_query** field).
	QueryID *string `json:"query_id,omitempty"`

	// Unique identifier (within a 24-hour period) that identifies a single `query` log and any `event` logs that were
	// created for it.
	//
	// **Note:** If the exact same query is run at the exact same time on different days, the **session_token** for those
	// queries might be identical. However, the **created_timestamp** differs.
	//
	// **Note:** Session tokens are case sensitive. To avoid matching on session tokens that are identical except for case,
	// use the exact match operator (`::`) when you query for a specific session token.
	SessionToken *string `json:"session_token,omitempty"`

	// The collection ID of the document associated with this event. Only returned with logs of type `event`.
	CollectionID *string `json:"collection_id,omitempty"`

	// The original display rank of the document associated with this event. Only returned with logs of type `event`.
	DisplayRank *int64 `json:"display_rank,omitempty"`

	// The document ID of the document associated with this event. Only returned with logs of type `event`.
	DocumentID *string `json:"document_id,omitempty"`

	// The type of event that this object respresents. Possible values are
	//
	//  -  `query` the log of a query to a collection
	//
	//  -  `click` the result of a call to the **events** endpoint.
	EventType *string `json:"event_type,omitempty"`

	// The type of result that this **event** is associated with. Only returned with logs of type `event`.
	ResultType *string `json:"result_type,omitempty"`
}

LogQueryResponseResult : Individual result object for a **logs** query. Each object represents either a query to a Discovery collection or an event that is associated with a query.

type LogQueryResponseResultDocuments

type LogQueryResponseResultDocuments struct {

	// Array of log query response results.
	Results []LogQueryResponseResultDocumentsResult `json:"results,omitempty"`

	// The number of results returned in the query associate with this log.
	Count *int64 `json:"count,omitempty"`
}

LogQueryResponseResultDocuments : Object containing result information that was returned by the query used to create this log entry. Only returned with logs of type `query`.

type LogQueryResponseResultDocumentsResult

type LogQueryResponseResultDocumentsResult struct {

	// The result rank of this document. A position of `1` indicates that it was the first returned result.
	Position *int64 `json:"position,omitempty"`

	// The **document_id** of the document that this result represents.
	DocumentID *string `json:"document_id,omitempty"`

	// The raw score of this result. A higher score indicates a greater match to the query parameters.
	Score *float64 `json:"score,omitempty"`

	// The confidence score of the result's analysis. A higher score indicating greater confidence.
	Confidence *float64 `json:"confidence,omitempty"`

	// The **collection_id** of the document represented by this result.
	CollectionID *string `json:"collection_id,omitempty"`
}

LogQueryResponseResultDocumentsResult : Each object in the **results** array corresponds to an individual document returned by the original query.

type MetricAggregation

type MetricAggregation struct {

	// The measurement interval for this metric. Metric intervals are always 1 day (`1d`).
	Interval *string `json:"interval,omitempty"`

	// The event type associated with this metric result. This field, when present, will always be `click`.
	EventType *string `json:"event_type,omitempty"`

	// Array of metric aggregation query results.
	Results []MetricAggregationResult `json:"results,omitempty"`
}

MetricAggregation : An aggregation analyzing log information for queries and events.

type MetricAggregationResult

type MetricAggregationResult struct {

	// Date in string form representing the start of this interval.
	KeyAsString *strfmt.DateTime `json:"key_as_string,omitempty"`

	// Unix epoch time equivalent of the **key_as_string**, that represents the start of this interval.
	Key *int64 `json:"key,omitempty"`

	// Number of matching results.
	MatchingResults *int64 `json:"matching_results,omitempty"`

	// The number of queries with associated events divided by the total number of queries for the interval. Only returned
	// with **event_rate** metrics.
	EventRate *float64 `json:"event_rate,omitempty"`
}

MetricAggregationResult : Aggregation result data for the requested metric.

type MetricResponse

type MetricResponse struct {

	// Array of metric aggregations.
	Aggregations []MetricAggregation `json:"aggregations,omitempty"`
}

MetricResponse : The response generated from a call to a **metrics** method.

type MetricTokenAggregation

type MetricTokenAggregation struct {

	// The event type associated with this metric result. This field, when present, will always be `click`.
	EventType *string `json:"event_type,omitempty"`

	// Array of results for the metric token aggregation.
	Results []MetricTokenAggregationResult `json:"results,omitempty"`
}

MetricTokenAggregation : An aggregation analyzing log information for queries and events.

type MetricTokenAggregationResult

type MetricTokenAggregationResult struct {

	// The content of the **natural_language_query** parameter used in the query that this result represents.
	Key *string `json:"key,omitempty"`

	// Number of matching results.
	MatchingResults *int64 `json:"matching_results,omitempty"`

	// The number of queries with associated events divided by the total number of queries currently stored (queries and
	// events are stored in the log for 30 days).
	EventRate *float64 `json:"event_rate,omitempty"`
}

MetricTokenAggregationResult : Aggregation result data for the requested metric.

type MetricTokenResponse

type MetricTokenResponse struct {

	// Array of metric token aggregations.
	Aggregations []MetricTokenAggregation `json:"aggregations,omitempty"`
}

MetricTokenResponse : The response generated from a call to a **metrics** method that evaluates tokens.

type Nested

type Nested struct {

	// The area of the results the aggregation was restricted to.
	Path *string `json:"path,omitempty"`
}

Nested : Nested struct

type NluEnrichmentCategories

type NluEnrichmentCategories map[string]interface{}

NluEnrichmentCategories : An object that indicates the Categories enrichment will be applied to the specified field.

func (*NluEnrichmentCategories) GetProperty

func (this *NluEnrichmentCategories) GetProperty(Key string) *interface{}

GetProperty : Allow user to get arbitrary property

func (*NluEnrichmentCategories) SetProperty

func (this *NluEnrichmentCategories) SetProperty(Key string, Value *interface{})

SetProperty : Allow user to set arbitrary property

type NluEnrichmentConcepts

type NluEnrichmentConcepts struct {

	// The maximum number of concepts enrichments to extact from each instance of the specified field.
	Limit *int64 `json:"limit,omitempty"`
}

NluEnrichmentConcepts : An object specifiying the concepts enrichment and related parameters.

type NluEnrichmentEmotion

type NluEnrichmentEmotion struct {

	// When `true`, emotion detection is performed on the entire field.
	Document *bool `json:"document,omitempty"`

	// A comma-separated list of target strings that will have any associated emotions detected.
	Targets []string `json:"targets,omitempty"`
}

NluEnrichmentEmotion : An object specifying the emotion detection enrichment and related parameters.

type NluEnrichmentEntities

type NluEnrichmentEntities struct {

	// When `true`, sentiment analysis of entities will be performed on the specified field.
	Sentiment *bool `json:"sentiment,omitempty"`

	// When `true`, emotion detection of entities will be performed on the specified field.
	Emotion *bool `json:"emotion,omitempty"`

	// The maximum number of entities to extract for each instance of the specified field.
	Limit *int64 `json:"limit,omitempty"`

	// When `true`, the number of mentions of each identified entity is recorded. The default is `false`.
	Mentions *bool `json:"mentions,omitempty"`

	// When `true`, the types of mentions for each idetifieid entity is recorded. The default is `false`.
	MentionTypes *bool `json:"mention_types,omitempty"`

	// When `true`, a list of sentence locations for each instance of each identified entity is recorded. The default is
	// `false`.
	SentenceLocations *bool `json:"sentence_locations,omitempty"`

	// The enrichement model to use with entity extraction. May be a custom model provided by Watson Knowledge Studio, or
	// the default public model `alchemy`.
	Model *string `json:"model,omitempty"`
}

NluEnrichmentEntities : An object speficying the Entities enrichment and related parameters.

type NluEnrichmentFeatures

type NluEnrichmentFeatures struct {

	// An object specifying the Keyword enrichment and related parameters.
	Keywords *NluEnrichmentKeywords `json:"keywords,omitempty"`

	// An object speficying the Entities enrichment and related parameters.
	Entities *NluEnrichmentEntities `json:"entities,omitempty"`

	// An object specifying the sentiment extraction enrichment and related parameters.
	Sentiment *NluEnrichmentSentiment `json:"sentiment,omitempty"`

	// An object specifying the emotion detection enrichment and related parameters.
	Emotion *NluEnrichmentEmotion `json:"emotion,omitempty"`

	// An object that indicates the Categories enrichment will be applied to the specified field.
	Categories *NluEnrichmentCategories `json:"categories,omitempty"`

	// An object specifiying the semantic roles enrichment and related parameters.
	SemanticRoles *NluEnrichmentSemanticRoles `json:"semantic_roles,omitempty"`

	// An object specifying the relations enrichment and related parameters.
	Relations *NluEnrichmentRelations `json:"relations,omitempty"`

	// An object specifiying the concepts enrichment and related parameters.
	Concepts *NluEnrichmentConcepts `json:"concepts,omitempty"`
}

NluEnrichmentFeatures : Object containing Natural Language Understanding features to be used.

type NluEnrichmentKeywords

type NluEnrichmentKeywords struct {

	// When `true`, sentiment analysis of keywords will be performed on the specified field.
	Sentiment *bool `json:"sentiment,omitempty"`

	// When `true`, emotion detection of keywords will be performed on the specified field.
	Emotion *bool `json:"emotion,omitempty"`

	// The maximum number of keywords to extract for each instance of the specified field.
	Limit *int64 `json:"limit,omitempty"`
}

NluEnrichmentKeywords : An object specifying the Keyword enrichment and related parameters.

type NluEnrichmentRelations

type NluEnrichmentRelations struct {

	// *For use with `natural_language_understanding` enrichments only.* The enrichement model to use with relationship
	// extraction. May be a custom model provided by Watson Knowledge Studio, the default public model is`en-news`.
	Model *string `json:"model,omitempty"`
}

NluEnrichmentRelations : An object specifying the relations enrichment and related parameters.

type NluEnrichmentSemanticRoles

type NluEnrichmentSemanticRoles struct {

	// When `true`, entities are extracted from the identified sentence parts.
	Entities *bool `json:"entities,omitempty"`

	// When `true`, keywords are extracted from the identified sentence parts.
	Keywords *bool `json:"keywords,omitempty"`

	// The maximum number of semantic roles enrichments to extact from each instance of the specified field.
	Limit *int64 `json:"limit,omitempty"`
}

NluEnrichmentSemanticRoles : An object specifiying the semantic roles enrichment and related parameters.

type NluEnrichmentSentiment

type NluEnrichmentSentiment struct {

	// When `true`, sentiment analysis is performed on the entire field.
	Document *bool `json:"document,omitempty"`

	// A comma-separated list of target strings that will have any associated sentiment analyzed.
	Targets []string `json:"targets,omitempty"`
}

NluEnrichmentSentiment : An object specifying the sentiment extraction enrichment and related parameters.

type NormalizationOperation

type NormalizationOperation struct {

	// Identifies what type of operation to perform.
	//
	// **copy** - Copies the value of the **source_field** to the **destination_field** field. If the **destination_field**
	// already exists, then the value of the **source_field** overwrites the original value of the **destination_field**.
	//
	// **move** - Renames (moves) the **source_field** to the **destination_field**. If the **destination_field** already
	// exists, then the value of the **source_field** overwrites the original value of the **destination_field**. Rename is
	// identical to copy, except that the **source_field** is removed after the value has been copied to the
	// **destination_field** (it is the same as a _copy_ followed by a _remove_).
	//
	// **merge** - Merges the value of the **source_field** with the value of the **destination_field**. The
	// **destination_field** is converted into an array if it is not already an array, and the value of the
	// **source_field** is appended to the array. This operation removes the **source_field** after the merge. If the
	// **source_field** does not exist in the current document, then the **destination_field** is still converted into an
	// array (if it is not an array already). This conversion ensures the type for **destination_field** is consistent
	// across all documents.
	//
	// **remove** - Deletes the **source_field** field. The **destination_field** is ignored for this operation.
	//
	// **remove_nulls** - Removes all nested null (blank) field values from the ingested document. **source_field** and
	// **destination_field** are ignored by this operation because _remove_nulls_ operates on the entire ingested document.
	// Typically, **remove_nulls** is invoked as the last normalization operation (if it is invoked at all, it can be
	// time-expensive).
	Operation *string `json:"operation,omitempty"`

	// The source field for the operation.
	SourceField *string `json:"source_field,omitempty"`

	// The destination field for the operation.
	DestinationField *string `json:"destination_field,omitempty"`
}

NormalizationOperation : Object containing normalization operations.

type Notice

type Notice struct {

	// Identifies the notice. Many notices might have the same ID. This field exists so that user applications can
	// programmatically identify a notice and take automatic corrective action. Typical notice IDs include: `index_failed`,
	// `index_failed_too_many_requests`, `index_failed_incompatible_field`, `index_failed_cluster_unavailable`,
	// `ingestion_timeout`, `ingestion_error`, `bad_request`, `internal_error`, `missing_model`, `unsupported_model`,
	// `smart_document_understanding_failed_incompatible_field`, `smart_document_understanding_failed_internal_error`,
	// `smart_document_understanding_failed_internal_error`, `smart_document_understanding_failed_warning`,
	// `smart_document_understanding_page_error`, `smart_document_understanding_page_warning`. **Note:** This is not a
	// complete list, other values might be returned.
	NoticeID *string `json:"notice_id,omitempty"`

	// The creation date of the collection in the format yyyy-MM-dd'T'HH:mm:ss.SSS'Z'.
	Created *strfmt.DateTime `json:"created,omitempty"`

	// Unique identifier of the document.
	DocumentID *string `json:"document_id,omitempty"`

	// Unique identifier of the query used for relevance training.
	QueryID *string `json:"query_id,omitempty"`

	// Severity level of the notice.
	Severity *string `json:"severity,omitempty"`

	// Ingestion or training step in which the notice occurred. Typical step values include: `classify_elements`,
	// `smartDocumentUnderstanding`, `ingestion`, `indexing`, `convert`. **Note:** This is not a complete list, other
	// values might be returned.
	Step *string `json:"step,omitempty"`

	// The description of the notice.
	Description *string `json:"description,omitempty"`
}

Notice : A notice produced for the collection.

type PdfHeadingDetection

type PdfHeadingDetection struct {

	// Array of font matching configurations.
	Fonts []FontSetting `json:"fonts,omitempty"`
}

PdfHeadingDetection : Object containing heading detection conversion settings for PDF documents.

type PdfSettings

type PdfSettings struct {

	// Object containing heading detection conversion settings for PDF documents.
	Heading *PdfHeadingDetection `json:"heading,omitempty"`
}

PdfSettings : A list of PDF conversion settings.

type QueryAggregation

type QueryAggregation struct {

	// The type of aggregation command used. For example: term, filter, max, min, etc.
	Type *string `json:"type,omitempty"`

	// Array of aggregation results.
	Results []AggregationResult `json:"results,omitempty"`

	// Number of matching results.
	MatchingResults *int64 `json:"matching_results,omitempty"`

	// Aggregations returned by Discovery.
	Aggregations []QueryAggregation `json:"aggregations,omitempty"`
}

QueryAggregation : An aggregation produced by Discovery to analyze the input provided.

type QueryLogOptions

type QueryLogOptions struct {

	// 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.
	Filter *string `json:"filter,omitempty"`

	// A query search returns all documents in your data set with full enrichments and full text, but with the most
	// relevant documents listed first.
	Query *string `json:"query,omitempty"`

	// Number of results to return. The maximum for the **count** and **offset** values together in any one query is
	// **10000**.
	Count *int64 `json:"count,omitempty"`

	// 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**.
	Offset *int64 `json:"offset,omitempty"`

	// 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.
	Sort []string `json:"sort,omitempty"`

	// Allows users to set headers to be GDPR compliant
	Headers map[string]string
}

QueryLogOptions : The QueryLog options.

func (*QueryLogOptions) SetCount

func (options *QueryLogOptions) SetCount(count int64) *QueryLogOptions

SetCount : Allow user to set Count

func (*QueryLogOptions) SetFilter

func (options *QueryLogOptions) SetFilter(filter string) *QueryLogOptions

SetFilter : Allow user to set Filter

func (*QueryLogOptions) SetHeaders

func (options *QueryLogOptions) SetHeaders(param map[string]string) *QueryLogOptions

SetHeaders : Allow user to set Headers

func (*QueryLogOptions) SetOffset

func (options *QueryLogOptions) SetOffset(offset int64) *QueryLogOptions

SetOffset : Allow user to set Offset

func (*QueryLogOptions) SetQuery

func (options *QueryLogOptions) SetQuery(query string) *QueryLogOptions

SetQuery : Allow user to set Query

func (*QueryLogOptions) SetSort

func (options *QueryLogOptions) SetSort(sort []string) *QueryLogOptions

SetSort : Allow user to set Sort

type QueryNoticesOptions

type QueryNoticesOptions struct {

	// The ID of the environment.
	EnvironmentID *string `json:"environment_id" validate:"required"`

	// The ID of the collection.
	CollectionID *string `json:"collection_id" validate:"required"`

	// 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.
	Filter *string `json:"filter,omitempty"`

	// A query search returns all documents in your data set with full enrichments and full text, but with the most
	// relevant documents listed first.
	Query *string `json:"query,omitempty"`

	// A natural language query that returns relevant documents by utilizing training data and natural language
	// understanding.
	NaturalLanguageQuery *string `json:"natural_language_query,omitempty"`

	// A passages query that returns the most relevant passages from the results.
	Passages *bool `json:"passages,omitempty"`

	// 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.
	Aggregation *string `json:"aggregation,omitempty"`

	// Number of results to return. The maximum for the **count** and **offset** values together in any one query is
	// **10000**.
	Count *int64 `json:"count,omitempty"`

	// A comma-separated list of the portion of the document hierarchy to return.
	Return []string `json:"return,omitempty"`

	// 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**.
	Offset *int64 `json:"offset,omitempty"`

	// 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.
	Sort []string `json:"sort,omitempty"`

	// 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.
	Highlight *bool `json:"highlight,omitempty"`

	// A comma-separated list of fields that passages are drawn from. If this parameter not specified, then all top-level
	// fields are included.
	PassagesFields []string `json:"passages.fields,omitempty"`

	// The maximum number of passages to return. The search returns fewer passages if the requested total is not found.
	PassagesCount *int64 `json:"passages.count,omitempty"`

	// The approximate number of characters that any one passage will have.
	PassagesCharacters *int64 `json:"passages.characters,omitempty"`

	// 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.
	DeduplicateField *string `json:"deduplicate.field,omitempty"`

	// When `true`, results are returned based on their similarity to the document IDs specified in the
	// **similar.document_ids** parameter.
	Similar *bool `json:"similar,omitempty"`

	// 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.
	SimilarDocumentIds []string `json:"similar.document_ids,omitempty"`

	// 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.
	SimilarFields []string `json:"similar.fields,omitempty"`

	// Allows users to set headers to be GDPR compliant
	Headers map[string]string
}

QueryNoticesOptions : The QueryNotices options.

func (*QueryNoticesOptions) SetAggregation

func (options *QueryNoticesOptions) SetAggregation(aggregation string) *QueryNoticesOptions

SetAggregation : Allow user to set Aggregation

func (*QueryNoticesOptions) SetCollectionID

func (options *QueryNoticesOptions) SetCollectionID(collectionID string) *QueryNoticesOptions

SetCollectionID : Allow user to set CollectionID

func (*QueryNoticesOptions) SetCount

func (options *QueryNoticesOptions) SetCount(count int64) *QueryNoticesOptions

SetCount : Allow user to set Count

func (*QueryNoticesOptions) SetDeduplicateField

func (options *QueryNoticesOptions) SetDeduplicateField(deduplicateField string) *QueryNoticesOptions

SetDeduplicateField : Allow user to set DeduplicateField

func (*QueryNoticesOptions) SetEnvironmentID

func (options *QueryNoticesOptions) SetEnvironmentID(environmentID string) *QueryNoticesOptions

SetEnvironmentID : Allow user to set EnvironmentID

func (*QueryNoticesOptions) SetFilter

func (options *QueryNoticesOptions) SetFilter(filter string) *QueryNoticesOptions

SetFilter : Allow user to set Filter

func (*QueryNoticesOptions) SetHeaders

func (options *QueryNoticesOptions) SetHeaders(param map[string]string) *QueryNoticesOptions

SetHeaders : Allow user to set Headers

func (*QueryNoticesOptions) SetHighlight

func (options *QueryNoticesOptions) SetHighlight(highlight bool) *QueryNoticesOptions

SetHighlight : Allow user to set Highlight

func (*QueryNoticesOptions) SetNaturalLanguageQuery

func (options *QueryNoticesOptions) SetNaturalLanguageQuery(naturalLanguageQuery string) *QueryNoticesOptions

SetNaturalLanguageQuery : Allow user to set NaturalLanguageQuery

func (*QueryNoticesOptions) SetOffset

func (options *QueryNoticesOptions) SetOffset(offset int64) *QueryNoticesOptions

SetOffset : Allow user to set Offset

func (*QueryNoticesOptions) SetPassages

func (options *QueryNoticesOptions) SetPassages(passages bool) *QueryNoticesOptions

SetPassages : Allow user to set Passages

func (*QueryNoticesOptions) SetPassagesCharacters

func (options *QueryNoticesOptions) SetPassagesCharacters(passagesCharacters int64) *QueryNoticesOptions

SetPassagesCharacters : Allow user to set PassagesCharacters

func (*QueryNoticesOptions) SetPassagesCount

func (options *QueryNoticesOptions) SetPassagesCount(passagesCount int64) *QueryNoticesOptions

SetPassagesCount : Allow user to set PassagesCount

func (*QueryNoticesOptions) SetPassagesFields

func (options *QueryNoticesOptions) SetPassagesFields(passagesFields []string) *QueryNoticesOptions

SetPassagesFields : Allow user to set PassagesFields

func (*QueryNoticesOptions) SetQuery

func (options *QueryNoticesOptions) SetQuery(query string) *QueryNoticesOptions

SetQuery : Allow user to set Query

func (*QueryNoticesOptions) SetReturn

func (options *QueryNoticesOptions) SetReturn(returnVar []string) *QueryNoticesOptions

SetReturn : Allow user to set Return

func (*QueryNoticesOptions) SetSimilar

func (options *QueryNoticesOptions) SetSimilar(similar bool) *QueryNoticesOptions

SetSimilar : Allow user to set Similar

func (*QueryNoticesOptions) SetSimilarDocumentIds

func (options *QueryNoticesOptions) SetSimilarDocumentIds(similarDocumentIds []string) *QueryNoticesOptions

SetSimilarDocumentIds : Allow user to set SimilarDocumentIds

func (*QueryNoticesOptions) SetSimilarFields

func (options *QueryNoticesOptions) SetSimilarFields(similarFields []string) *QueryNoticesOptions

SetSimilarFields : Allow user to set SimilarFields

func (*QueryNoticesOptions) SetSort

func (options *QueryNoticesOptions) SetSort(sort []string) *QueryNoticesOptions

SetSort : Allow user to set Sort

type QueryNoticesResponse

type QueryNoticesResponse struct {

	// The number of matching results.
	MatchingResults *int64 `json:"matching_results,omitempty"`

	// Array of document results that match the query.
	Results []QueryNoticesResult `json:"results,omitempty"`

	// Array of aggregation results that match the query.
	Aggregations []QueryAggregation `json:"aggregations,omitempty"`

	// Array of passage results that match the query.
	Passages []QueryPassages `json:"passages,omitempty"`

	// The number of duplicates removed from this notices query.
	DuplicatesRemoved *int64 `json:"duplicates_removed,omitempty"`
}

QueryNoticesResponse : Object containing notice query results.

type QueryNoticesResult

type QueryNoticesResult map[string]interface{}

QueryNoticesResult : Query result object.

func (*QueryNoticesResult) GetCode

func (this *QueryNoticesResult) GetCode() *int64

GetCode : Allow user to get Code

func (*QueryNoticesResult) GetCollectionID

func (this *QueryNoticesResult) GetCollectionID() *string

GetCollectionID : Allow user to get CollectionID

func (*QueryNoticesResult) GetFileType

func (this *QueryNoticesResult) GetFileType() *string

GetFileType : Allow user to get FileType

func (*QueryNoticesResult) GetFilename

func (this *QueryNoticesResult) GetFilename() *string

GetFilename : Allow user to get Filename

func (*QueryNoticesResult) GetID

func (this *QueryNoticesResult) GetID() *string

GetID : Allow user to get ID

func (*QueryNoticesResult) GetMetadata

func (this *QueryNoticesResult) GetMetadata() *map[string]interface{}

GetMetadata : Allow user to get Metadata

func (*QueryNoticesResult) GetNotices

func (this *QueryNoticesResult) GetNotices() *[]Notice

GetNotices : Allow user to get Notices

func (*QueryNoticesResult) GetProperty

func (this *QueryNoticesResult) GetProperty(Key string) *interface{}

GetProperty : Allow user to get arbitrary property

func (*QueryNoticesResult) GetResultMetadata

func (this *QueryNoticesResult) GetResultMetadata() *QueryResultMetadata

GetResultMetadata : Allow user to get ResultMetadata

func (*QueryNoticesResult) GetSha1

func (this *QueryNoticesResult) GetSha1() *string

GetSha1 : Allow user to get Sha1

func (*QueryNoticesResult) SetCode

func (this *QueryNoticesResult) SetCode(Code *int64)

SetCode : Allow user to set Code

func (*QueryNoticesResult) SetCollectionID

func (this *QueryNoticesResult) SetCollectionID(CollectionID *string)

SetCollectionID : Allow user to set CollectionID

func (*QueryNoticesResult) SetFileType

func (this *QueryNoticesResult) SetFileType(FileType *string)

SetFileType : Allow user to set FileType

func (*QueryNoticesResult) SetFilename

func (this *QueryNoticesResult) SetFilename(Filename *string)

SetFilename : Allow user to set Filename

func (*QueryNoticesResult) SetID

func (this *QueryNoticesResult) SetID(ID *string)

SetID : Allow user to set ID

func (*QueryNoticesResult) SetMetadata

func (this *QueryNoticesResult) SetMetadata(Metadata *map[string]interface{})

SetMetadata : Allow user to set Metadata

func (*QueryNoticesResult) SetNotices

func (this *QueryNoticesResult) SetNotices(Notices *[]Notice)

SetNotices : Allow user to set Notices

func (*QueryNoticesResult) SetProperty

func (this *QueryNoticesResult) SetProperty(Key string, Value *interface{})

SetProperty : Allow user to set arbitrary property

func (*QueryNoticesResult) SetResultMetadata

func (this *QueryNoticesResult) SetResultMetadata(ResultMetadata *QueryResultMetadata)

SetResultMetadata : Allow user to set ResultMetadata

func (*QueryNoticesResult) SetSha1

func (this *QueryNoticesResult) SetSha1(Sha1 *string)

SetSha1 : Allow user to set Sha1

type QueryOptions

type QueryOptions struct {

	// The ID of the environment.
	EnvironmentID *string `json:"environment_id" validate:"required"`

	// The ID of the collection.
	CollectionID *string `json:"collection_id" validate:"required"`

	// 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.
	Filter *string `json:"filter,omitempty"`

	// A query search returns all documents in your data set with full enrichments and full text, but with the most
	// relevant documents listed first. Use a query search when you want to find the most relevant search results.
	Query *string `json:"query,omitempty"`

	// A natural language query that returns relevant documents by utilizing training data and natural language
	// understanding.
	NaturalLanguageQuery *string `json:"natural_language_query,omitempty"`

	// A passages query that returns the most relevant passages from the results.
	Passages *bool `json:"passages,omitempty"`

	// 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.
	Aggregation *string `json:"aggregation,omitempty"`

	// Number of results to return.
	Count *int64 `json:"count,omitempty"`

	// A comma-separated list of the portion of the document hierarchy to return.
	Return *string `json:"return,omitempty"`

	// 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.
	Offset *int64 `json:"offset,omitempty"`

	// 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. This parameter cannot be used in the same query as the **bias** parameter.
	Sort *string `json:"sort,omitempty"`

	// 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.
	Highlight *bool `json:"highlight,omitempty"`

	// A comma-separated list of fields that passages are drawn from. If this parameter not specified, then all top-level
	// fields are included.
	PassagesFields *string `json:"passages.fields,omitempty"`

	// The maximum number of passages to return. The search returns fewer passages if the requested total is not found. The
	// default is `10`. The maximum is `100`.
	PassagesCount *int64 `json:"passages.count,omitempty"`

	// The approximate number of characters that any one passage will have.
	PassagesCharacters *int64 `json:"passages.characters,omitempty"`

	// When `true`, and used with a Watson Discovery News collection, duplicate results (based on the contents of the
	// **title** field) are removed. Duplicate comparison is limited to the current query only; **offset** is not
	// considered. This parameter is currently Beta functionality.
	Deduplicate *bool `json:"deduplicate,omitempty"`

	// 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.
	DeduplicateField *string `json:"deduplicate.field,omitempty"`

	// When `true`, results are returned based on their similarity to the document IDs specified in the
	// **similar.document_ids** parameter.
	Similar *bool `json:"similar,omitempty"`

	// 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.
	SimilarDocumentIds *string `json:"similar.document_ids,omitempty"`

	// 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.
	SimilarFields *string `json:"similar.fields,omitempty"`

	// Field which the returned results will be biased against. The specified field must be either a **date** or **number**
	// format. When a **date** type field is specified returned results are biased towards field values closer to the
	// current date. When a **number** type field is specified, returned results are biased towards higher field values.
	// This parameter cannot be used in the same query as the **sort** parameter.
	Bias *string `json:"bias,omitempty"`

	// When `true` and the **natural_language_query** parameter is used, the **natural_languge_query** parameter is spell
	// checked. The most likely correction is retunred in the **suggested_query** field of the response (if one exists).
	//
	// **Important:** this parameter is only valid when using the Cloud Pak version of Discovery.
	SpellingSuggestions *bool `json:"spelling_suggestions,omitempty"`

	// If `true`, queries are not stored in the Discovery **Logs** endpoint.
	XWatsonLoggingOptOut *bool `json:"X-Watson-Logging-Opt-Out,omitempty"`

	// Allows users to set headers to be GDPR compliant
	Headers map[string]string
}

QueryOptions : The Query options.

func (*QueryOptions) SetAggregation

func (options *QueryOptions) SetAggregation(aggregation string) *QueryOptions

SetAggregation : Allow user to set Aggregation

func (*QueryOptions) SetBias

func (options *QueryOptions) SetBias(bias string) *QueryOptions

SetBias : Allow user to set Bias

func (*QueryOptions) SetCollectionID

func (options *QueryOptions) SetCollectionID(collectionID string) *QueryOptions

SetCollectionID : Allow user to set CollectionID

func (*QueryOptions) SetCount

func (options *QueryOptions) SetCount(count int64) *QueryOptions

SetCount : Allow user to set Count

func (*QueryOptions) SetDeduplicate

func (options *QueryOptions) SetDeduplicate(deduplicate bool) *QueryOptions

SetDeduplicate : Allow user to set Deduplicate

func (*QueryOptions) SetDeduplicateField

func (options *QueryOptions) SetDeduplicateField(deduplicateField string) *QueryOptions

SetDeduplicateField : Allow user to set DeduplicateField

func (*QueryOptions) SetEnvironmentID

func (options *QueryOptions) SetEnvironmentID(environmentID string) *QueryOptions

SetEnvironmentID : Allow user to set EnvironmentID

func (*QueryOptions) SetFilter

func (options *QueryOptions) SetFilter(filter string) *QueryOptions

SetFilter : Allow user to set Filter

func (*QueryOptions) SetHeaders

func (options *QueryOptions) SetHeaders(param map[string]string) *QueryOptions

SetHeaders : Allow user to set Headers

func (*QueryOptions) SetHighlight

func (options *QueryOptions) SetHighlight(highlight bool) *QueryOptions

SetHighlight : Allow user to set Highlight

func (*QueryOptions) SetNaturalLanguageQuery

func (options *QueryOptions) SetNaturalLanguageQuery(naturalLanguageQuery string) *QueryOptions

SetNaturalLanguageQuery : Allow user to set NaturalLanguageQuery

func (*QueryOptions) SetOffset

func (options *QueryOptions) SetOffset(offset int64) *QueryOptions

SetOffset : Allow user to set Offset

func (*QueryOptions) SetPassages

func (options *QueryOptions) SetPassages(passages bool) *QueryOptions

SetPassages : Allow user to set Passages

func (*QueryOptions) SetPassagesCharacters

func (options *QueryOptions) SetPassagesCharacters(passagesCharacters int64) *QueryOptions

SetPassagesCharacters : Allow user to set PassagesCharacters

func (*QueryOptions) SetPassagesCount

func (options *QueryOptions) SetPassagesCount(passagesCount int64) *QueryOptions

SetPassagesCount : Allow user to set PassagesCount

func (*QueryOptions) SetPassagesFields

func (options *QueryOptions) SetPassagesFields(passagesFields string) *QueryOptions

SetPassagesFields : Allow user to set PassagesFields

func (*QueryOptions) SetQuery

func (options *QueryOptions) SetQuery(query string) *QueryOptions

SetQuery : Allow user to set Query

func (*QueryOptions) SetReturn

func (options *QueryOptions) SetReturn(returnVar string) *QueryOptions

SetReturn : Allow user to set Return

func (*QueryOptions) SetSimilar

func (options *QueryOptions) SetSimilar(similar bool) *QueryOptions

SetSimilar : Allow user to set Similar

func (*QueryOptions) SetSimilarDocumentIds

func (options *QueryOptions) SetSimilarDocumentIds(similarDocumentIds string) *QueryOptions

SetSimilarDocumentIds : Allow user to set SimilarDocumentIds

func (*QueryOptions) SetSimilarFields

func (options *QueryOptions) SetSimilarFields(similarFields string) *QueryOptions

SetSimilarFields : Allow user to set SimilarFields

func (*QueryOptions) SetSort

func (options *QueryOptions) SetSort(sort string) *QueryOptions

SetSort : Allow user to set Sort

func (*QueryOptions) SetSpellingSuggestions

func (options *QueryOptions) SetSpellingSuggestions(spellingSuggestions bool) *QueryOptions

SetSpellingSuggestions : Allow user to set SpellingSuggestions

func (*QueryOptions) SetXWatsonLoggingOptOut

func (options *QueryOptions) SetXWatsonLoggingOptOut(xWatsonLoggingOptOut bool) *QueryOptions

SetXWatsonLoggingOptOut : Allow user to set XWatsonLoggingOptOut

type QueryPassages

type QueryPassages struct {

	// The unique identifier of the document from which the passage has been extracted.
	DocumentID *string `json:"document_id,omitempty"`

	// The confidence score of the passages's analysis. A higher score indicates greater confidence.
	PassageScore *float64 `json:"passage_score,omitempty"`

	// The content of the extracted passage.
	PassageText *string `json:"passage_text,omitempty"`

	// The position of the first character of the extracted passage in the originating field.
	StartOffset *int64 `json:"start_offset,omitempty"`

	// The position of the last character of the extracted passage in the originating field.
	EndOffset *int64 `json:"end_offset,omitempty"`

	// The label of the field from which the passage has been extracted.
	Field *string `json:"field,omitempty"`
}

QueryPassages : A passage query result.

type QueryResponse

type QueryResponse struct {

	// The number of matching results for the query.
	MatchingResults *int64 `json:"matching_results,omitempty"`

	// Array of document results for the query.
	Results []QueryResult `json:"results,omitempty"`

	// Array of aggregation results for the query.
	Aggregations []QueryAggregation `json:"aggregations,omitempty"`

	// Array of passage results for the query.
	Passages []QueryPassages `json:"passages,omitempty"`

	// The number of duplicate results removed.
	DuplicatesRemoved *int64 `json:"duplicates_removed,omitempty"`

	// The session token for this query. The session token can be used to add events associated with this query to the
	// query and event log.
	//
	// **Important:** Session tokens are case sensitive.
	SessionToken *string `json:"session_token,omitempty"`

	// An object contain retrieval type information.
	RetrievalDetails *RetrievalDetails `json:"retrieval_details,omitempty"`

	// The suggestions for a misspelled natural language query.
	SuggestedQuery *string `json:"suggested_query,omitempty"`
}

QueryResponse : A response containing the documents and aggregations for the query.

type QueryResult

type QueryResult map[string]interface{}

QueryResult : Query result object.

func (*QueryResult) GetCollectionID

func (this *QueryResult) GetCollectionID() *string

GetCollectionID : Allow user to get CollectionID

func (*QueryResult) GetID

func (this *QueryResult) GetID() *string

GetID : Allow user to get ID

func (*QueryResult) GetMetadata

func (this *QueryResult) GetMetadata() *map[string]interface{}

GetMetadata : Allow user to get Metadata

func (*QueryResult) GetProperty

func (this *QueryResult) GetProperty(Key string) *interface{}

GetProperty : Allow user to get arbitrary property

func (*QueryResult) GetResultMetadata

func (this *QueryResult) GetResultMetadata() *QueryResultMetadata

GetResultMetadata : Allow user to get ResultMetadata

func (*QueryResult) SetCollectionID

func (this *QueryResult) SetCollectionID(CollectionID *string)

SetCollectionID : Allow user to set CollectionID

func (*QueryResult) SetID

func (this *QueryResult) SetID(ID *string)

SetID : Allow user to set ID

func (*QueryResult) SetMetadata

func (this *QueryResult) SetMetadata(Metadata *map[string]interface{})

SetMetadata : Allow user to set Metadata

func (*QueryResult) SetProperty

func (this *QueryResult) SetProperty(Key string, Value *interface{})

SetProperty : Allow user to set arbitrary property

func (*QueryResult) SetResultMetadata

func (this *QueryResult) SetResultMetadata(ResultMetadata *QueryResultMetadata)

SetResultMetadata : Allow user to set ResultMetadata

type QueryResultMetadata

type QueryResultMetadata struct {

	// An unbounded measure of the relevance of a particular result, dependent on the query and matching document. A higher
	// score indicates a greater match to the query parameters.
	Score *float64 `json:"score" validate:"required"`

	// The confidence score for the given result. Calculated based on how relevant the result is estimated to be.
	// confidence can range from `0.0` to `1.0`. The higher the number, the more relevant the document. The `confidence`
	// value for a result was calculated using the model specified in the `document_retrieval_strategy` field of the result
	// set.
	Confidence *float64 `json:"confidence,omitempty"`
}

QueryResultMetadata : Metadata of a query result.

type RetrievalDetails

type RetrievalDetails struct {

	// Indentifies the document retrieval strategy used for this query. `relevancy_training` indicates that the results
	// were returned using a relevancy trained model. `continuous_relevancy_training` indicates that the results were
	// returned using the continuous relevancy training model created by result feedback analysis. `untrained` means the
	// results were returned using the standard untrained model.
	//
	//  **Note**: In the event of trained collections being queried, but the trained model is not used to return results,
	// the **document_retrieval_strategy** will be listed as `untrained`.
	DocumentRetrievalStrategy *string `json:"document_retrieval_strategy,omitempty"`
}

RetrievalDetails : An object contain retrieval type information.

type SduStatus

type SduStatus struct {

	// When `true`, smart document understanding conversion is enabled for this collection. All collections created with a
	// version date after `2019-04-30` have smart document understanding enabled. If `false`, documents added to the
	// collection are converted using the **conversion** settings specified in the configuration associated with the
	// collection.
	Enabled *bool `json:"enabled,omitempty"`

	// The total number of pages annotated using smart document understanding in this collection.
	TotalAnnotatedPages *int64 `json:"total_annotated_pages,omitempty"`

	// The current number of pages that can be used for training smart document understanding. The `total_pages` number is
	// calculated as the total number of pages identified from the documents listed in the **total_documents** field.
	TotalPages *int64 `json:"total_pages,omitempty"`

	// The total number of documents in this collection that can be used to train smart document understanding. For
	// **lite** plan collections, the maximum is the first 20 uploaded documents (not including HTML or JSON documents).
	// For other plans, the maximum is the first 40 uploaded documents (not including HTML or JSON documents). When the
	// maximum is reached, additional documents uploaded to the collection are not considered for training smart document
	// understanding.
	TotalDocuments *int64 `json:"total_documents,omitempty"`

	// Information about custom smart document understanding fields that exist in this collection.
	CustomFields *SduStatusCustomFields `json:"custom_fields,omitempty"`
}

SduStatus : Object containing smart document understanding information for this collection.

type SduStatusCustomFields

type SduStatusCustomFields struct {

	// The number of custom fields defined for this collection.
	Defined *int64 `json:"defined,omitempty"`

	// The maximum number of custom fields that are allowed in this collection.
	MaximumAllowed *int64 `json:"maximum_allowed,omitempty"`
}

SduStatusCustomFields : Information about custom smart document understanding fields that exist in this collection.

type SearchStatus

type SearchStatus struct {

	// Current scope of the training. Always returned as `environment`.
	Scope *string `json:"scope,omitempty"`

	// The current status of Continuous Relevancy Training for this environment.
	Status *string `json:"status,omitempty"`

	// Long description of the current Continuous Relevancy Training status.
	StatusDescription *string `json:"status_description,omitempty"`

	// The date stamp of the most recent completed training for this environment.
	LastTrained *strfmt.Date `json:"last_trained,omitempty"`
}

SearchStatus : Information about the Continuous Relevancy Training for this environment.

type SegmentSettings

type SegmentSettings struct {

	// Enables/disables the Document Segmentation feature.
	Enabled *bool `json:"enabled,omitempty"`

	// Defines the heading level that splits into document segments. Valid values are h1, h2, h3, h4, h5, h6. The content
	// of the header field that the segmentation splits at is used as the **title** field for that segmented result. Only
	// valid if used with a collection that has **enabled** set to `false` in the **smart_document_understanding** object.
	SelectorTags []string `json:"selector_tags,omitempty"`

	// Defines the annotated smart document understanding fields that the document is split on. The content of the
	// annotated field that the segmentation splits at is used as the **title** field for that segmented result. For
	// example, if the field `sub-title` is specified, when a document is uploaded each time the smart documement
	// understanding conversion encounters a field of type `sub-title` the document is split at that point and the content
	// of the field used as the title of the remaining content. Thnis split is performed for all instances of the listed
	// fields in the uploaded document. Only valid if used with a collection that has **enabled** set to `true` in the
	// **smart_document_understanding** object.
	AnnotatedFields []string `json:"annotated_fields,omitempty"`
}

SegmentSettings : A list of Document Segmentation settings.

type Source

type Source struct {

	// The type of source to connect to.
	// -  `box` indicates the configuration is to connect an instance of Enterprise Box.
	// -  `salesforce` indicates the configuration is to connect to Salesforce.
	// -  `sharepoint` indicates the configuration is to connect to Microsoft SharePoint Online.
	// -  `web_crawl` indicates the configuration is to perform a web page crawl.
	// -  `cloud_object_storage` indicates the configuration is to connect to a cloud object store.
	Type *string `json:"type,omitempty"`

	// The **credential_id** of the credentials to use to connect to the source. Credentials are defined using the
	// **credentials** method. The **source_type** of the credentials used must match the **type** field specified in this
	// object.
	CredentialID *string `json:"credential_id,omitempty"`

	// Object containing the schedule information for the source.
	Schedule *SourceSchedule `json:"schedule,omitempty"`

	// The **options** object defines which items to crawl from the source system.
	Options *SourceOptions `json:"options,omitempty"`
}

Source : Object containing source parameters for the configuration.

type SourceOptions

type SourceOptions struct {

	// Array of folders to crawl from the Box source. Only valid, and required, when the **type** field of the **source**
	// object is set to `box`.
	Folders []SourceOptionsFolder `json:"folders,omitempty"`

	// Array of Salesforce document object types to crawl from the Salesforce source. Only valid, and required, when the
	// **type** field of the **source** object is set to `salesforce`.
	Objects []SourceOptionsObject `json:"objects,omitempty"`

	// Array of Microsoft SharePointoint Online site collections to crawl from the SharePoint source. Only valid and
	// required when the **type** field of the **source** object is set to `sharepoint`.
	SiteCollections []SourceOptionsSiteColl `json:"site_collections,omitempty"`

	// Array of Web page URLs to begin crawling the web from. Only valid and required when the **type** field of the
	// **source** object is set to `web_crawl`.
	Urls []SourceOptionsWebCrawl `json:"urls,omitempty"`

	// Array of cloud object store buckets to begin crawling. Only valid and required when the **type** field of the
	// **source** object is set to `cloud_object_store`, and the **crawl_all_buckets** field is `false` or not specified.
	Buckets []SourceOptionsBuckets `json:"buckets,omitempty"`

	// When `true`, all buckets in the specified cloud object store are crawled. If set to `true`, the **buckets** array
	// must not be specified.
	CrawlAllBuckets *bool `json:"crawl_all_buckets,omitempty"`
}

SourceOptions : The **options** object defines which items to crawl from the source system.

type SourceOptionsBuckets

type SourceOptionsBuckets struct {

	// The name of the cloud object store bucket to crawl.
	Name *string `json:"name" validate:"required"`

	// The number of documents to crawl from this cloud object store bucket. If not specified, all documents in the bucket
	// are crawled.
	Limit *int64 `json:"limit,omitempty"`
}

SourceOptionsBuckets : Object defining a cloud object store bucket to crawl.

type SourceOptionsFolder

type SourceOptionsFolder struct {

	// The Box user ID of the user who owns the folder to crawl.
	OwnerUserID *string `json:"owner_user_id" validate:"required"`

	// The Box folder ID of the folder to crawl.
	FolderID *string `json:"folder_id" validate:"required"`

	// The maximum number of documents to crawl for this folder. By default, all documents in the folder are crawled.
	Limit *int64 `json:"limit,omitempty"`
}

SourceOptionsFolder : Object that defines a box folder to crawl with this configuration.

type SourceOptionsObject

type SourceOptionsObject struct {

	// The name of the Salesforce document object to crawl. For example, `case`.
	Name *string `json:"name" validate:"required"`

	// The maximum number of documents to crawl for this document object. By default, all documents in the document object
	// are crawled.
	Limit *int64 `json:"limit,omitempty"`
}

SourceOptionsObject : Object that defines a Salesforce document object type crawl with this configuration.

type SourceOptionsSiteColl

type SourceOptionsSiteColl struct {

	// The Microsoft SharePoint Online site collection path to crawl. The path must be be relative to the
	// **organization_url** that was specified in the credentials associated with this source configuration.
	SiteCollectionPath *string `json:"site_collection_path" validate:"required"`

	// The maximum number of documents to crawl for this site collection. By default, all documents in the site collection
	// are crawled.
	Limit *int64 `json:"limit,omitempty"`
}

SourceOptionsSiteColl : Object that defines a Microsoft SharePoint site collection to crawl with this configuration.

type SourceOptionsWebCrawl

type SourceOptionsWebCrawl struct {

	// The starting URL to crawl.
	URL *string `json:"url" validate:"required"`

	// When `true`, crawls of the specified URL are limited to the host part of the **url** field.
	LimitToStartingHosts *bool `json:"limit_to_starting_hosts,omitempty"`

	// The number of concurrent URLs to fetch. `gentle` means one URL is fetched at a time with a delay between each call.
	// `normal` means as many as two URLs are fectched concurrently with a short delay between fetch calls. `aggressive`
	// means that up to ten URLs are fetched concurrently with a short delay between fetch calls.
	CrawlSpeed *string `json:"crawl_speed,omitempty"`

	// When `true`, allows the crawl to interact with HTTPS sites with SSL certificates with untrusted signers.
	AllowUntrustedCertificate *bool `json:"allow_untrusted_certificate,omitempty"`

	// The maximum number of hops to make from the initial URL. When a page is crawled each link on that page will also be
	// crawled if it is within the **maximum_hops** from the initial URL. The first page crawled is 0 hops, each link
	// crawled from the first page is 1 hop, each link crawled from those pages is 2 hops, and so on.
	MaximumHops *int64 `json:"maximum_hops,omitempty"`

	// The maximum milliseconds to wait for a response from the web server.
	RequestTimeout *int64 `json:"request_timeout,omitempty"`

	// When `true`, the crawler will ignore any `robots.txt` encountered by the crawler. This should only ever be done when
	// crawling a web site the user owns. This must be be set to `true` when a **gateway_id** is specied in the
	// **credentials**.
	OverrideRobotsTxt *bool `json:"override_robots_txt,omitempty"`

	// Array of URL's to be excluded while crawling. The crawler will not follow links which contains this string. For
	// example, listing `https://ibm.com/watson` also excludes `https://ibm.com/watson/discovery`.
	Blacklist []string `json:"blacklist,omitempty"`
}

SourceOptionsWebCrawl : Object defining which URL to crawl and how to crawl it.

type SourceSchedule

type SourceSchedule struct {

	// When `true`, the source is re-crawled based on the **frequency** field in this object. When `false` the source is
	// not re-crawled; When `false` and connecting to Salesforce the source is crawled annually.
	Enabled *bool `json:"enabled,omitempty"`

	// The time zone to base source crawl times on. Possible values correspond to the IANA (Internet Assigned Numbers
	// Authority) time zones list.
	TimeZone *string `json:"time_zone,omitempty"`

	// The crawl schedule in the specified **time_zone**.
	//
	// -  `five_minutes`: Runs every five minutes.
	// -  `hourly`: Runs every hour.
	// -  `daily`: Runs every day between 00:00 and 06:00.
	// -  `weekly`: Runs every week on Sunday between 00:00 and 06:00.
	// -  `monthly`: Runs the on the first Sunday of every month between 00:00 and 06:00.
	Frequency *string `json:"frequency,omitempty"`
}

SourceSchedule : Object containing the schedule information for the source.

type SourceStatus

type SourceStatus struct {

	// The current status of the source crawl for this collection. This field returns `not_configured` if the default
	// configuration for this source does not have a **source** object defined.
	//
	// -  `running` indicates that a crawl to fetch more documents is in progress.
	// -  `complete` indicates that the crawl has completed with no errors.
	// -  `queued` indicates that the crawl has been paused by the system and will automatically restart when possible.
	// -  `unknown` indicates that an unidentified error has occured in the service.
	Status *string `json:"status,omitempty"`

	// Date in `RFC 3339` format indicating the time of the next crawl attempt.
	NextCrawl *strfmt.DateTime `json:"next_crawl,omitempty"`
}

SourceStatus : Object containing source crawl status information.

type Term

type Term struct {

	// The field where the aggregation is located in the document.
	Field *string `json:"field,omitempty"`

	// The number of terms identified.
	Count *int64 `json:"count,omitempty"`
}

Term : Term struct

type Timeslice

type Timeslice struct {

	// The field where the aggregation is located in the document.
	Field *string `json:"field,omitempty"`

	// Interval of the aggregation. Valid date interval values are second/seconds minute/minutes, hour/hours, day/days,
	// week/weeks, month/months, and year/years.
	Interval *string `json:"interval,omitempty"`

	// Used to indicate that anomaly detection should be performed. Anomaly detection is used to locate unusual datapoints
	// within a time series.
	Anomaly *bool `json:"anomaly,omitempty"`
}

Timeslice : Timeslice struct

type TokenDictRule

type TokenDictRule struct {

	// The string to tokenize.
	Text *string `json:"text" validate:"required"`

	// Array of tokens that the `text` field is split into when found.
	Tokens []string `json:"tokens" validate:"required"`

	// Array of tokens that represent the content of the `text` field in an alternate character set.
	Readings []string `json:"readings,omitempty"`

	// The part of speech that the `text` string belongs to. For example `noun`. Custom parts of speech can be specified.
	PartOfSpeech *string `json:"part_of_speech" validate:"required"`
}

TokenDictRule : An object defining a single tokenizaion rule.

type TokenDictStatusResponse

type TokenDictStatusResponse struct {

	// Current wordlist status for the specified collection.
	Status *string `json:"status,omitempty"`

	// The type for this wordlist. Can be `tokenization_dictionary` or `stopwords`.
	Type *string `json:"type,omitempty"`
}

TokenDictStatusResponse : Object describing the current status of the wordlist.

type TopHits

type TopHits struct {

	// Number of top hits returned by the aggregation.
	Size *int64 `json:"size,omitempty"`

	Hits *TopHitsResults `json:"hits,omitempty"`
}

TopHits : TopHits struct

type TopHitsResults

type TopHitsResults struct {

	// Number of matching results.
	MatchingResults *int64 `json:"matching_results,omitempty"`

	// Top results returned by the aggregation.
	Hits []QueryResult `json:"hits,omitempty"`
}

TopHitsResults : Top hit information for this query.

type TrainingDataSet

type TrainingDataSet struct {

	// The environment id associated with this training data set.
	EnvironmentID *string `json:"environment_id,omitempty"`

	// The collection id associated with this training data set.
	CollectionID *string `json:"collection_id,omitempty"`

	// Array of training queries.
	Queries []TrainingQuery `json:"queries,omitempty"`
}

TrainingDataSet : Training information for a specific collection.

type TrainingExample

type TrainingExample struct {

	// The document ID associated with this training example.
	DocumentID *string `json:"document_id,omitempty"`

	// The cross reference associated with this training example.
	CrossReference *string `json:"cross_reference,omitempty"`

	// The relevance of the training example.
	Relevance *int64 `json:"relevance,omitempty"`
}

TrainingExample : Training example details.

type TrainingExampleList

type TrainingExampleList struct {

	// Array of training examples.
	Examples []TrainingExample `json:"examples,omitempty"`
}

TrainingExampleList : Object containing an array of training examples.

type TrainingQuery

type TrainingQuery struct {

	// The query ID associated with the training query.
	QueryID *string `json:"query_id,omitempty"`

	// The natural text query for the training query.
	NaturalLanguageQuery *string `json:"natural_language_query,omitempty"`

	// The filter used on the collection before the **natural_language_query** is applied.
	Filter *string `json:"filter,omitempty"`

	// Array of training examples.
	Examples []TrainingExample `json:"examples,omitempty"`
}

TrainingQuery : Training query details.

type TrainingStatus

type TrainingStatus struct {

	// The total number of training examples uploaded to this collection.
	TotalExamples *int64 `json:"total_examples,omitempty"`

	// When `true`, the collection has been successfully trained.
	Available *bool `json:"available,omitempty"`

	// When `true`, the collection is currently processing training.
	Processing *bool `json:"processing,omitempty"`

	// When `true`, the collection has a sufficent amount of queries added for training to occur.
	MinimumQueriesAdded *bool `json:"minimum_queries_added,omitempty"`

	// When `true`, the collection has a sufficent amount of examples added for training to occur.
	MinimumExamplesAdded *bool `json:"minimum_examples_added,omitempty"`

	// When `true`, the collection has a sufficent amount of diversity in labeled results for training to occur.
	SufficientLabelDiversity *bool `json:"sufficient_label_diversity,omitempty"`

	// The number of notices associated with this data set.
	Notices *int64 `json:"notices,omitempty"`

	// The timestamp of when the collection was successfully trained.
	SuccessfullyTrained *strfmt.DateTime `json:"successfully_trained,omitempty"`

	// The timestamp of when the data was uploaded.
	DataUpdated *strfmt.DateTime `json:"data_updated,omitempty"`
}

TrainingStatus : Training status details.

type UpdateCollectionOptions

type UpdateCollectionOptions struct {

	// The ID of the environment.
	EnvironmentID *string `json:"environment_id" validate:"required"`

	// The ID of the collection.
	CollectionID *string `json:"collection_id" validate:"required"`

	// The name of the collection.
	Name *string `json:"name,omitempty"`

	// A description of the collection.
	Description *string `json:"description,omitempty"`

	// The ID of the configuration in which the collection is to be updated.
	ConfigurationID *string `json:"configuration_id,omitempty"`

	// Allows users to set headers to be GDPR compliant
	Headers map[string]string
}

UpdateCollectionOptions : The UpdateCollection options.

func (*UpdateCollectionOptions) SetCollectionID

func (options *UpdateCollectionOptions) SetCollectionID(collectionID string) *UpdateCollectionOptions

SetCollectionID : Allow user to set CollectionID

func (*UpdateCollectionOptions) SetConfigurationID

func (options *UpdateCollectionOptions) SetConfigurationID(configurationID string) *UpdateCollectionOptions

SetConfigurationID : Allow user to set ConfigurationID

func (*UpdateCollectionOptions) SetDescription

func (options *UpdateCollectionOptions) SetDescription(description string) *UpdateCollectionOptions

SetDescription : Allow user to set Description

func (*UpdateCollectionOptions) SetEnvironmentID

func (options *UpdateCollectionOptions) SetEnvironmentID(environmentID string) *UpdateCollectionOptions

SetEnvironmentID : Allow user to set EnvironmentID

func (*UpdateCollectionOptions) SetHeaders

func (options *UpdateCollectionOptions) SetHeaders(param map[string]string) *UpdateCollectionOptions

SetHeaders : Allow user to set Headers

func (*UpdateCollectionOptions) SetName

func (options *UpdateCollectionOptions) SetName(name string) *UpdateCollectionOptions

SetName : Allow user to set Name

type UpdateConfigurationOptions

type UpdateConfigurationOptions struct {

	// The ID of the environment.
	EnvironmentID *string `json:"environment_id" validate:"required"`

	// The ID of the configuration.
	ConfigurationID *string `json:"configuration_id" validate:"required"`

	// The name of the configuration.
	Name *string `json:"name" validate:"required"`

	// The description of the configuration, if available.
	Description *string `json:"description,omitempty"`

	// Document conversion settings.
	Conversions *Conversions `json:"conversions,omitempty"`

	// An array of document enrichment settings for the configuration.
	Enrichments []Enrichment `json:"enrichments,omitempty"`

	// Defines operations that can be used to transform the final output JSON into a normalized form. Operations are
	// executed in the order that they appear in the array.
	Normalizations []NormalizationOperation `json:"normalizations,omitempty"`

	// Object containing source parameters for the configuration.
	Source *Source `json:"source,omitempty"`

	// Allows users to set headers to be GDPR compliant
	Headers map[string]string
}

UpdateConfigurationOptions : The UpdateConfiguration options.

func (*UpdateConfigurationOptions) SetConfigurationID

func (options *UpdateConfigurationOptions) SetConfigurationID(configurationID string) *UpdateConfigurationOptions

SetConfigurationID : Allow user to set ConfigurationID

func (*UpdateConfigurationOptions) SetConversions

func (options *UpdateConfigurationOptions) SetConversions(conversions *Conversions) *UpdateConfigurationOptions

SetConversions : Allow user to set Conversions

func (*UpdateConfigurationOptions) SetDescription

func (options *UpdateConfigurationOptions) SetDescription(description string) *UpdateConfigurationOptions

SetDescription : Allow user to set Description

func (*UpdateConfigurationOptions) SetEnrichments

func (options *UpdateConfigurationOptions) SetEnrichments(enrichments []Enrichment) *UpdateConfigurationOptions

SetEnrichments : Allow user to set Enrichments

func (*UpdateConfigurationOptions) SetEnvironmentID

func (options *UpdateConfigurationOptions) SetEnvironmentID(environmentID string) *UpdateConfigurationOptions

SetEnvironmentID : Allow user to set EnvironmentID

func (*UpdateConfigurationOptions) SetHeaders

func (options *UpdateConfigurationOptions) SetHeaders(param map[string]string) *UpdateConfigurationOptions

SetHeaders : Allow user to set Headers

func (*UpdateConfigurationOptions) SetName

SetName : Allow user to set Name

func (*UpdateConfigurationOptions) SetNormalizations

func (options *UpdateConfigurationOptions) SetNormalizations(normalizations []NormalizationOperation) *UpdateConfigurationOptions

SetNormalizations : Allow user to set Normalizations

func (*UpdateConfigurationOptions) SetSource

func (options *UpdateConfigurationOptions) SetSource(source *Source) *UpdateConfigurationOptions

SetSource : Allow user to set Source

type UpdateCredentialsOptions

type UpdateCredentialsOptions struct {

	// The ID of the environment.
	EnvironmentID *string `json:"environment_id" validate:"required"`

	// The unique identifier for a set of source credentials.
	CredentialID *string `json:"credential_id" validate:"required"`

	// The source that this credentials object connects to.
	// -  `box` indicates the credentials are used to connect an instance of Enterprise Box.
	// -  `salesforce` indicates the credentials are used to connect to Salesforce.
	// -  `sharepoint` indicates the credentials are used to connect to Microsoft SharePoint Online.
	// -  `web_crawl` indicates the credentials are used to perform a web crawl.
	// =  `cloud_object_storage` indicates the credentials are used to connect to an IBM Cloud Object Store.
	SourceType *string `json:"source_type,omitempty"`

	// Object containing details of the stored credentials.
	//
	// Obtain credentials for your source from the administrator of the source.
	CredentialDetails *CredentialDetails `json:"credential_details,omitempty"`

	// The current status of this set of credentials. `connected` indicates that the credentials are available to use with
	// the source configuration of a collection. `invalid` refers to the credentials (for example, the password provided
	// has expired) and must be corrected before they can be used with a collection.
	Status *string `json:"status,omitempty"`

	// Allows users to set headers to be GDPR compliant
	Headers map[string]string
}

UpdateCredentialsOptions : The UpdateCredentials options.

func (*UpdateCredentialsOptions) SetCredentialDetails

func (options *UpdateCredentialsOptions) SetCredentialDetails(credentialDetails *CredentialDetails) *UpdateCredentialsOptions

SetCredentialDetails : Allow user to set CredentialDetails

func (*UpdateCredentialsOptions) SetCredentialID

func (options *UpdateCredentialsOptions) SetCredentialID(credentialID string) *UpdateCredentialsOptions

SetCredentialID : Allow user to set CredentialID

func (*UpdateCredentialsOptions) SetEnvironmentID

func (options *UpdateCredentialsOptions) SetEnvironmentID(environmentID string) *UpdateCredentialsOptions

SetEnvironmentID : Allow user to set EnvironmentID

func (*UpdateCredentialsOptions) SetHeaders

func (options *UpdateCredentialsOptions) SetHeaders(param map[string]string) *UpdateCredentialsOptions

SetHeaders : Allow user to set Headers

func (*UpdateCredentialsOptions) SetSourceType

func (options *UpdateCredentialsOptions) SetSourceType(sourceType string) *UpdateCredentialsOptions

SetSourceType : Allow user to set SourceType

func (*UpdateCredentialsOptions) SetStatus

func (options *UpdateCredentialsOptions) SetStatus(status string) *UpdateCredentialsOptions

SetStatus : Allow user to set Status

type UpdateDocumentOptions

type UpdateDocumentOptions struct {

	// The ID of the environment.
	EnvironmentID *string `json:"environment_id" validate:"required"`

	// The ID of the collection.
	CollectionID *string `json:"collection_id" validate:"required"`

	// The ID of the document.
	DocumentID *string `json:"document_id" validate:"required"`

	// The content of the document to ingest. The maximum supported file size when adding a file to a collection is 50
	// megabytes, the maximum supported file size when testing a configuration is 1 megabyte. Files larger than the
	// supported size are rejected.
	File io.ReadCloser `json:"file,omitempty"`

	// The filename for file.
	Filename *string `json:"filename,omitempty"`

	// The content type of file.
	FileContentType *string `json:"file_content_type,omitempty"`

	// The maximum supported metadata file size is 1 MB. Metadata parts larger than 1 MB are rejected. Example:  “` {
	//   "Creator": "Johnny Appleseed",
	//   "Subject": "Apples"
	// } “`.
	Metadata *string `json:"metadata,omitempty"`

	// Allows users to set headers to be GDPR compliant
	Headers map[string]string
}

UpdateDocumentOptions : The UpdateDocument options.

func (*UpdateDocumentOptions) SetCollectionID

func (options *UpdateDocumentOptions) SetCollectionID(collectionID string) *UpdateDocumentOptions

SetCollectionID : Allow user to set CollectionID

func (*UpdateDocumentOptions) SetDocumentID

func (options *UpdateDocumentOptions) SetDocumentID(documentID string) *UpdateDocumentOptions

SetDocumentID : Allow user to set DocumentID

func (*UpdateDocumentOptions) SetEnvironmentID

func (options *UpdateDocumentOptions) SetEnvironmentID(environmentID string) *UpdateDocumentOptions

SetEnvironmentID : Allow user to set EnvironmentID

func (*UpdateDocumentOptions) SetFile

func (options *UpdateDocumentOptions) SetFile(file io.ReadCloser) *UpdateDocumentOptions

SetFile : Allow user to set File

func (*UpdateDocumentOptions) SetFileContentType

func (options *UpdateDocumentOptions) SetFileContentType(fileContentType string) *UpdateDocumentOptions

SetFileContentType : Allow user to set FileContentType

func (*UpdateDocumentOptions) SetFilename

func (options *UpdateDocumentOptions) SetFilename(filename string) *UpdateDocumentOptions

SetFilename : Allow user to set Filename

func (*UpdateDocumentOptions) SetHeaders

func (options *UpdateDocumentOptions) SetHeaders(param map[string]string) *UpdateDocumentOptions

SetHeaders : Allow user to set Headers

func (*UpdateDocumentOptions) SetMetadata

func (options *UpdateDocumentOptions) SetMetadata(metadata string) *UpdateDocumentOptions

SetMetadata : Allow user to set Metadata

type UpdateEnvironmentOptions

type UpdateEnvironmentOptions struct {

	// The ID of the environment.
	EnvironmentID *string `json:"environment_id" validate:"required"`

	// Name that identifies the environment.
	Name *string `json:"name,omitempty"`

	// Description of the environment.
	Description *string `json:"description,omitempty"`

	// Size that the environment should be increased to. Environment size cannot be modified when using a Lite plan.
	// Environment size can only increased and not decreased.
	Size *string `json:"size,omitempty"`

	// Allows users to set headers to be GDPR compliant
	Headers map[string]string
}

UpdateEnvironmentOptions : The UpdateEnvironment options.

func (*UpdateEnvironmentOptions) SetDescription

func (options *UpdateEnvironmentOptions) SetDescription(description string) *UpdateEnvironmentOptions

SetDescription : Allow user to set Description

func (*UpdateEnvironmentOptions) SetEnvironmentID

func (options *UpdateEnvironmentOptions) SetEnvironmentID(environmentID string) *UpdateEnvironmentOptions

SetEnvironmentID : Allow user to set EnvironmentID

func (*UpdateEnvironmentOptions) SetHeaders

func (options *UpdateEnvironmentOptions) SetHeaders(param map[string]string) *UpdateEnvironmentOptions

SetHeaders : Allow user to set Headers

func (*UpdateEnvironmentOptions) SetName

SetName : Allow user to set Name

func (*UpdateEnvironmentOptions) SetSize

SetSize : Allow user to set Size

type UpdateTrainingExampleOptions

type UpdateTrainingExampleOptions struct {

	// The ID of the environment.
	EnvironmentID *string `json:"environment_id" validate:"required"`

	// The ID of the collection.
	CollectionID *string `json:"collection_id" validate:"required"`

	// The ID of the query used for training.
	QueryID *string `json:"query_id" validate:"required"`

	// The ID of the document as it is indexed.
	ExampleID *string `json:"example_id" validate:"required"`

	// The example to add.
	CrossReference *string `json:"cross_reference,omitempty"`

	// The relevance value for this example.
	Relevance *int64 `json:"relevance,omitempty"`

	// Allows users to set headers to be GDPR compliant
	Headers map[string]string
}

UpdateTrainingExampleOptions : The UpdateTrainingExample options.

func (*UpdateTrainingExampleOptions) SetCollectionID

func (options *UpdateTrainingExampleOptions) SetCollectionID(collectionID string) *UpdateTrainingExampleOptions

SetCollectionID : Allow user to set CollectionID

func (*UpdateTrainingExampleOptions) SetCrossReference

func (options *UpdateTrainingExampleOptions) SetCrossReference(crossReference string) *UpdateTrainingExampleOptions

SetCrossReference : Allow user to set CrossReference

func (*UpdateTrainingExampleOptions) SetEnvironmentID

func (options *UpdateTrainingExampleOptions) SetEnvironmentID(environmentID string) *UpdateTrainingExampleOptions

SetEnvironmentID : Allow user to set EnvironmentID

func (*UpdateTrainingExampleOptions) SetExampleID

func (options *UpdateTrainingExampleOptions) SetExampleID(exampleID string) *UpdateTrainingExampleOptions

SetExampleID : Allow user to set ExampleID

func (*UpdateTrainingExampleOptions) SetHeaders

SetHeaders : Allow user to set Headers

func (*UpdateTrainingExampleOptions) SetQueryID

SetQueryID : Allow user to set QueryID

func (*UpdateTrainingExampleOptions) SetRelevance

func (options *UpdateTrainingExampleOptions) SetRelevance(relevance int64) *UpdateTrainingExampleOptions

SetRelevance : Allow user to set Relevance

type WordHeadingDetection

type WordHeadingDetection struct {

	// Array of font matching configurations.
	Fonts []FontSetting `json:"fonts,omitempty"`

	// Array of Microsoft Word styles to convert.
	Styles []WordStyle `json:"styles,omitempty"`
}

WordHeadingDetection : Object containing heading detection conversion settings for Microsoft Word documents.

type WordSettings

type WordSettings struct {

	// Object containing heading detection conversion settings for Microsoft Word documents.
	Heading *WordHeadingDetection `json:"heading,omitempty"`
}

WordSettings : A list of Word conversion settings.

type WordStyle

type WordStyle struct {

	// HTML head level that content matching this style is tagged with.
	Level *int64 `json:"level,omitempty"`

	// Array of word style names to convert.
	Names []string `json:"names,omitempty"`
}

WordStyle : Microsoft Word styles to convert into a specified HTML head level.

type XPathPatterns

type XPathPatterns struct {

	// An array to XPaths.
	Xpaths []string `json:"xpaths,omitempty"`
}

XPathPatterns : Object containing an array of XPaths.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL