AttributeFilter
import type { AttributeFilter } from "https://aws-api.deno.dev/v0.3/services/kendra.ts?docs=full";
Provides filtering the query results based on document attributes.
When you use the AndAllFilters
or OrAllFilters
, filters you can use 2 layers under the first attribute filter.
For example, you can use:
<AndAllFilters>
-
<OrAllFilters>
-
<EqualsTo>
If you use more than 2 layers, you receive a ValidationException
exception with the message "AttributeFilter
cannot have a depth of more than 2."
If you use more than 10 attribute filters in a given list for AndAllFilters
or OrAllFilters
, you receive a ValidationException
with the message "AttributeFilter
cannot have a length of more than 10".
§Properties
Performs a logical AND
operation on all supplied filters.
Returns true when a document contains all of the specified document attributes.
This filter is only applicable to StringListValue
metadata.
Returns true when a document contains any of the specified document attributes.
This filter is only applicable to StringListValue
metadata.
Performs an equals operation on two document attributes.
Performs a greater than operation on two document attributes.
Use with a document attribute of type Date
or Long
.
Performs a greater or equals than operation on two document attributes.
Use with a document attribute of type Date
or Long
.
Performs a less than operation on two document attributes.
Use with a document attribute of type Date
or Long
.
Performs a less than or equals operation on two document attributes.
Use with a document attribute of type Date
or Long
.
Performs a logical NOT
operation on all supplied filters.
Performs a logical OR
operation on all supplied filters.