You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* unstructured text into an index, add custom attributes to the documents, and to attach
43
43
* an access control list to the documents added to the index.</p>
44
44
* <p>The documents are indexed asynchronously. You can see the progress of the batch using
45
-
* Amazon Web Services
46
-
* CloudWatch. Any error messages related to processing the batch are sent to your
47
-
* Amazon Web Services
48
-
* CloudWatch log.</p>
45
+
* Amazon Web Services CloudWatch. Any error messages related to processing the batch
46
+
* are sent to your Amazon Web Services CloudWatch log. You can also use the
47
+
* <code>BatchGetDocumentStatus</code> API to monitor the progress of indexing your documents.</p>
49
48
* <p>For an example of ingesting inline documents using Python and Java SDKs, see <a href="https://docs.aws.amazon.com/kendra/latest/dg/in-adding-binary-doc.html">Adding files
* if index creation has completed, check the <code>Status</code> field returned from a call to
41
41
* <code>DescribeIndex</code>. The <code>Status</code> field is set to <code>ACTIVE</code> when
42
42
* the index is ready to use.</p>
43
-
* <p>Once the index is active you can index your documents using the
44
-
* <code>BatchPutDocument</code> API or using one of the supported data sources.</p>
43
+
* <p>Once the index is active, you can index your documents using the
44
+
* <code>BatchPutDocument</code> API or using one of the supported <a href="https://docs.aws.amazon.com/kendra/latest/dg/data-sources.html">data sources</a>.</p>
45
45
* <p>For an example of creating an index and data source using the Python SDK, see <a href="https://docs.aws.amazon.com/kendra/latest/dg/gs-python.html">Getting started with Python
46
46
* SDK</a>. For an example of creating an index and data source using the Java SDK, see
47
47
* <a href="https://docs.aws.amazon.com/kendra/latest/dg/gs-java.html">Getting started with Java
* data source is already being deleted. While the data source is being deleted, the
41
41
* <code>Status</code> field returned by a call to the <code>DescribeDataSource</code> API is
42
42
* set to <code>DELETING</code>. For more information, see <a href="https://docs.aws.amazon.com/kendra/latest/dg/delete-data-source.html">Deleting Data Sources</a>.</p>
43
+
* <p>Deleting an entire data source or re-syncing your index after deleting specific documents
44
+
* from a data source could take up to an hour or more, depending on the number of documents you
45
+
* want to delete.</p>
43
46
* @example
44
47
* Use a bare-bones client and the command you need to make an API call.
* <p>You can also include certain fields in the response that might provide useful
63
63
* additional information.</p>
64
+
* <p>The <code>Retrieve</code> API shares the number of <a href="https://docs.aws.amazon.com/kendra/latest/APIReference/API_CapacityUnitsConfiguration.html">query capacity
65
+
* units</a> that you set for your index. For more information on what's included in
66
+
* a single capacity unit and the default base capacity for an index, see <a href="https://docs.aws.amazon.com/kendra/latest/dg/adjusting-capacity.html">Adjusting
67
+
* capacity</a>.</p>
64
68
* @example
65
69
* Use a bare-bones client and the command you need to make an API call.
* <p>Maps a column or attribute in the data source to an index field. You must first create the
190
-
* fields in the index using the <code>UpdateIndex</code> API.</p>
189
+
* <p>Maps attributes or field names of the documents synced from the data source
190
+
* to Amazon Kendra index field names. You can set up field mappings for each
191
+
* data source when calling <a href="https://docs.aws.amazon.com/kendra/latest/APIReference/API_CreateDataSource.html">CreateDataSource</a>
192
+
* or <a href="https://docs.aws.amazon.com/kendra/latest/APIReference/API_UpdateDataSource.html">UpdateDataSource</a> API. To create custom fields, use the <code>UpdateIndex</code>
193
+
* API to first create an index field and then map to the data source field. For more
194
+
* information, see <a href="https://docs.aws.amazon.com/kendra/latest/dg/field-mapping.html">Mapping data source fields</a>.</p>
191
195
*/
192
196
exportinterfaceDataSourceToIndexFieldMapping{
193
197
/**
194
198
* @public
195
-
* <p>The name of the column or attribute in the data source.</p>
199
+
* <p>The name of the field in the data source. You must first create the index field
200
+
* using the <code>UpdateIndex</code> API.</p>
196
201
*/
197
202
DataSourceFieldName: string|undefined;
198
203
199
204
/**
200
205
* @public
201
-
* <p>The type of data stored in the column or attribute.</p>
206
+
* <p>The format for date fields in the data source. If the field specified in
207
+
* <code>DataSourceFieldName</code> is a date field, you must specify the date
208
+
* format. If the field is not a date field, an exception is thrown.</p>
202
209
*/
203
210
DateFieldFormat?: string;
204
211
205
212
/**
206
213
* @public
207
-
* <p>The name of the field in the index.</p>
214
+
* <p>The name of the index field to map to the data source field. The index field type
* validation check. Each document contains an error message that indicates why the
1761
1769
* document couldn't be added to the index.</p>
1762
1770
* <p>If there was an error adding a document to an index the error is reported in your
1763
-
* Amazon Web Services CloudWatch log. For more information, see <a href="https://docs.aws.amazon.com/kendra/latest/dg/cloudwatch-logs.html">Monitoring Amazon
1764
-
* Kendra with Amazon CloudWatch Logs</a>
1765
-
* </p>
1771
+
* Amazon Web Services CloudWatch log. For more information, see <a href="https://docs.aws.amazon.com/kendra/latest/dg/cloudwatch-logs.html">Monitoring
1772
+
* Amazon Kendra with Amazon CloudWatch logs</a>.</p>
* <p>Provides the configuration information to connect to a index. </p>
2650
+
* <p>Provides the configuration information to an <a href="https://docs.aws.amazon.com/kendra/latest/dg/data-source-database.html">Amazon Kendra supported
* <p>Provides filtering the query results based on document attributes or metadata
1061
-
* fields.</p>
1062
-
* <p>When you use the <code>AndAllFilters</code> or <code>OrAllFilters</code>, filters you
1063
-
* can use 2 layers under the first attribute filter. For example, you can use:</p>
1068
+
* <p>Filters the search results based on document attributes or fields.</p>
1069
+
* <p>You can filter results using attributes for your particular documents.
1070
+
* The attributes must exist in your index. For example, if your documents
1071
+
* include the custom attribute "Department", you can filter documents that
1072
+
* belong to the "HR" department. You would use the <code>EqualsTo</code>
1073
+
* operation to filter results or documents with "Department" equals to "HR".</p>
1074
+
* <p>You can use <code>AndAllFilters</code> and <code>AndOrFilters</code> in
1075
+
* combination with each other or with other operations such as <code>EqualsTo</code>.
1076
+
* For example:</p>
1064
1077
* <p>
1065
-
* <code><AndAllFilters></code>
1078
+
* <code>AndAllFilters</code>
1066
1079
* </p>
1067
-
* <ol>
1080
+
* <ul>
1068
1081
* <li>
1069
1082
* <p>
1070
-
* <code> <OrAllFilters></code>
1071
-
* </p>
1083
+
* <code>EqualsTo</code>: "Department", "HR"</p>
1072
1084
* </li>
1073
1085
* <li>
1074
1086
* <p>
1075
-
* <code> <EqualsTo></code>
1087
+
* <code>AndOrFilters</code>
1076
1088
* </p>
1089
+
* <ul>
1090
+
* <li>
1091
+
* <p>
1092
+
* <code>ContainsAny</code>: "Project Name", ["new hires", "new hiring"]</p>
1093
+
* </li>
1094
+
* </ul>
1077
1095
* </li>
1078
-
* </ol>
1079
-
* <p>If you use more than 2 layers, you receive a <code>ValidationException</code> exception
1080
-
* with the message "<code>AttributeFilter</code> cannot have a depth of more than 2."</p>
1081
-
* <p>If you use more than 10 attribute filters in a given list for <code>AndAllFilters</code>
1082
-
* or <code>OrAllFilters</code>, you receive a <code>ValidationException</code> with the
1083
-
* message "<code>AttributeFilter</code> cannot have a length of more than 10".</p>
1096
+
* </ul>
1097
+
* <p>This example filters results or documents that belong to the HR department
1098
+
* <i>and</i> belong to projects that contain "new hires"
1099
+
* <i>or</i> "new hiring" in the project name (must use
1100
+
* <code>ContainAny</code> with <code>StringListValue</code>). This example is
1101
+
* filtering with a depth of 2.</p>
1102
+
* <p>You cannot filter more than a depth of 2, otherwise you receive a
1103
+
* <code>ValidationException</code> exception with the message "AttributeFilter
1104
+
* cannot have a depth of more than 2." Also, if you use more than 10 attribute
1105
+
* filters in a given list for <code>AndAllFilters</code> or <code>OrAllFilters</code>,
1106
+
* you receive a <code>ValidationException</code> with the message "AttributeFilter
1107
+
* cannot have a length of more than 10".</p>
1108
+
* <p>For examples of using <code>AttributeFilter</code>, see <a href="https://docs.aws.amazon.com/kendra/latest/dg/filtering.html#search-filtering">Using
1109
+
* document attributes to filter search results</a>.</p>
1084
1110
*/
1085
1111
exportinterfaceAttributeFilter{
1086
1112
/**
1087
1113
* @public
1088
-
* <p>Performs a logical <code>AND</code> operation on all supplied filters.</p>
1114
+
* <p>Performs a logical <code>AND</code> operation on all filters that you specify.</p>
1089
1115
*/
1090
1116
AndAllFilters?: AttributeFilter[];
1091
1117
1092
1118
/**
1093
1119
* @public
1094
-
* <p>Performs a logical <code>OR</code> operation on all supplied filters.</p>
1120
+
* <p>Performs a logical <code>OR</code> operation on all filters that you specify.</p>
1095
1121
*/
1096
1122
OrAllFilters?: AttributeFilter[];
1097
1123
1098
1124
/**
1099
1125
* @public
1100
-
* <p>Performs a logical <code>NOT</code> operation on all supplied filters.</p>
1126
+
* <p>Performs a logical <code>NOT</code> operation on all filters that you specify.</p>
1101
1127
*/
1102
1128
NotFilter?: AttributeFilter;
1103
1129
1104
1130
/**
1105
1131
* @public
1106
-
* <p>Performs an equals operation on two document attributes or metadata fields.</p>
1132
+
* <p>Performs an equals operation on document attributes/fields and their values.</p>
1107
1133
*/
1108
1134
EqualsTo?: DocumentAttribute;
1109
1135
1110
1136
/**
1111
1137
* @public
1112
-
* <p>Returns true when a document contains all of the specified document attributes or
1113
-
* metadata fields. This filter is only applicable to <code>StringListValue</code>
1114
-
* metadata.</p>
1138
+
* <p>Returns true when a document contains all of the specified document attributes/fields.
1139
+
* This filter is only applicable to <a href="https://docs.aws.amazon.com/kendra/latest/APIReference/API_DocumentAttributeValue.html">StringListValue</a>.</p>
1115
1140
*/
1116
1141
ContainsAll?: DocumentAttribute;
1117
1142
1118
1143
/**
1119
1144
* @public
1120
-
* <p>Returns true when a document contains any of the specified document attributes or
1121
-
* metadata fields. This filter is only applicable to <code>StringListValue</code>
1122
-
* metadata.</p>
1145
+
* <p>Returns true when a document contains any of the specified document attributes/fields.
1146
+
* This filter is only applicable to <a href="https://docs.aws.amazon.com/kendra/latest/APIReference/API_DocumentAttributeValue.html">StringListValue</a>.</p>
1123
1147
*/
1124
1148
ContainsAny?: DocumentAttribute;
1125
1149
1126
1150
/**
1127
1151
* @public
1128
-
* <p>Performs a greater than operation on two document attributes or metadata fields. Use
1129
-
* with a document attribute of type <code>Date</code> or <code>Long</code>.</p>
1152
+
* <p>Performs a greater than operation on document attributes/fields and their
1153
+
* values. Use with the <a href="https://docs.aws.amazon.com/kendra/latest/APIReference/API_DocumentAttributeValue.html">document attribute
1154
+
* type</a>
1155
+
* <code>Date</code> or <code>Long</code>.</p>
1130
1156
*/
1131
1157
GreaterThan?: DocumentAttribute;
1132
1158
1133
1159
/**
1134
1160
* @public
1135
-
* <p>Performs a greater or equals than operation on two document attributes or metadata
1136
-
* fields. Use with a document attribute of type <code>Date</code> or
1137
-
* <code>Long</code>.</p>
1161
+
* <p>Performs a greater or equals than operation on document attributes/fields and
1162
+
* their values. Use with the <a href="https://docs.aws.amazon.com/kendra/latest/APIReference/API_DocumentAttributeValue.html">document attribute
1163
+
* type</a>
1164
+
* <code>Date</code> or <code>Long</code>.</p>
1138
1165
*/
1139
1166
GreaterThanOrEquals?: DocumentAttribute;
1140
1167
1141
1168
/**
1142
1169
* @public
1143
-
* <p>Performs a less than operation on two document attributes or metadata fields. Use with a
1144
-
* document attribute of type <code>Date</code> or <code>Long</code>.</p>
1170
+
* <p>Performs a less than operation on document attributes/fields and their values.
1171
+
* Use with the <a href="https://docs.aws.amazon.com/kendra/latest/APIReference/API_DocumentAttributeValue.html">document attribute
1172
+
* type</a>
1173
+
* <code>Date</code> or <code>Long</code>.</p>
1145
1174
*/
1146
1175
LessThan?: DocumentAttribute;
1147
1176
1148
1177
/**
1149
1178
* @public
1150
-
* <p>Performs a less than or equals operation on two document attributes or metadata fields.
1151
-
* Use with a document attribute of type <code>Date</code> or <code>Long</code>.</p>
1179
+
* <p>Performs a less than or equals operation on document attributes/fields and
1180
+
* their values. Use with the <a href="https://docs.aws.amazon.com/kendra/latest/APIReference/API_DocumentAttributeValue.html">document attribute
0 commit comments