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
Copy file name to clipboardExpand all lines: sdk/src/Services/Kendra/Generated/Model/AttributeFilter.cs
+53-28Lines changed: 53 additions & 28 deletions
Original file line number
Diff line number
Diff line change
@@ -29,35 +29,56 @@
29
29
namespaceAmazon.Kendra.Model
30
30
{
31
31
/// <summary>
32
-
/// Provides filtering the query results based on document attributes or metadata fields.
32
+
/// Filters the search results based on document attributes or fields.
33
33
///
34
34
///
35
35
/// <para>
36
-
/// When you use the <code>AndAllFilters</code> or <code>OrAllFilters</code>, filters
37
-
/// you can use 2 layers under the first attribute filter. For example, you can use:
36
+
/// You can filter results using attributes for your particular documents. The attributes
37
+
/// must exist in your index. For example, if your documents include the custom attribute
38
+
/// "Department", you can filter documents that belong to the "HR" department. You would
39
+
/// use the <code>EqualsTo</code> operation to filter results or documents with "Department"
40
+
/// equals to "HR".
38
41
/// </para>
39
42
///
40
43
/// <para>
41
-
/// <code><AndAllFilters></code>
44
+
/// You can use <code>AndAllFilters</code> and <code>AndOrFilters</code> in combination
45
+
/// with each other or with other operations such as <code>EqualsTo</code>. For example:
42
46
/// </para>
43
-
/// <ol> <li>
47
+
///
48
+
/// <para>
49
+
/// <code>AndAllFilters</code>
50
+
/// </para>
51
+
/// <ul> <li>
44
52
/// <para>
45
-
/// <code> <OrAllFilters></code>
53
+
/// <code>EqualsTo</code>: "Department", "HR"
46
54
/// </para>
47
55
/// </li> <li>
48
56
/// <para>
49
-
/// <code> <EqualsTo></code>
57
+
/// <code>AndOrFilters</code>
58
+
/// </para>
59
+
/// <ul> <li>
60
+
/// <para>
61
+
/// <code>ContainsAny</code>: "Project Name", ["new hires", "new hiring"]
50
62
/// </para>
51
-
/// </li> </ol>
63
+
/// </li> </ul> </li> </ul>
52
64
/// <para>
53
-
/// If you use more than 2 layers, you receive a <code>ValidationException</code> exception
54
-
/// with the message "<code>AttributeFilter</code> cannot have a depth of more than 2."
65
+
/// This example filters results or documents that belong to the HR department <i>and</i>
66
+
/// belong to projects that contain "new hires" <i>or</i> "new hiring" in the project
67
+
/// name (must use <code>ContainAny</code> with <code>StringListValue</code>). This example
68
+
/// is filtering with a depth of 2.
55
69
/// </para>
56
70
///
57
71
/// <para>
58
-
/// If you use more than 10 attribute filters in a given list for <code>AndAllFilters</code>
72
+
/// You cannot filter more than a depth of 2, otherwise you receive a <code>ValidationException</code>
73
+
/// exception with the message "AttributeFilter cannot have a depth of more than 2." Also,
74
+
/// if you use more than 10 attribute filters in a given list for <code>AndAllFilters</code>
59
75
/// or <code>OrAllFilters</code>, you receive a <code>ValidationException</code> with
60
-
/// the message "<code>AttributeFilter</code> cannot have a length of more than 10".
76
+
/// the message "AttributeFilter cannot have a length of more than 10".
77
+
/// </para>
78
+
///
79
+
/// <para>
80
+
/// For examples of using <code>AttributeFilter</code>, see <a href="https://docs.aws.amazon.com/kendra/latest/dg/filtering.html#search-filtering">Using
81
+
/// document attributes to filter search results</a>.
61
82
/// </para>
62
83
/// </summary>
63
84
publicpartialclassAttributeFilter
@@ -76,7 +97,7 @@ public partial class AttributeFilter
76
97
/// <summary>
77
98
/// Gets and sets the property AndAllFilters.
78
99
/// <para>
79
-
/// Performs a logical <code>AND</code> operation on all supplied filters.
100
+
/// Performs a logical <code>AND</code> operation on all filters that you specify.
/// Returns true when a document contains all of the specified document attributes or
98
-
/// metadata fields. This filter is only applicable to <code>StringListValue</code> metadata.
118
+
/// Returns true when a document contains all of the specified document attributes/fields.
119
+
/// This filter is only applicable to <a href="https://docs.aws.amazon.com/kendra/latest/APIReference/API_DocumentAttributeValue.html">StringListValue</a>.
/// Returns true when a document contains any of the specified document attributes or
117
-
/// metadata fields. This filter is only applicable to <code>StringListValue</code> metadata.
137
+
/// Returns true when a document contains any of the specified document attributes/fields.
138
+
/// This filter is only applicable to <a href="https://docs.aws.amazon.com/kendra/latest/APIReference/API_DocumentAttributeValue.html">StringListValue</a>.
Copy file name to clipboardExpand all lines: sdk/src/Services/Kendra/Generated/Model/BatchPutDocumentResponse.cs
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -46,7 +46,7 @@ public partial class BatchPutDocumentResponse : AmazonWebServiceResponse
46
46
/// <para>
47
47
/// If there was an error adding a document to an index the error is reported in your
48
48
/// Amazon Web Services CloudWatch log. For more information, see <a href="https://docs.aws.amazon.com/kendra/latest/dg/cloudwatch-logs.html">Monitoring
49
-
/// Amazon Kendra with Amazon CloudWatch Logs</a>
49
+
/// Amazon Kendra with Amazon CloudWatch logs</a>.
0 commit comments