27 namespace pinecone::types::filters
109 template <
typename iter>
123 template <
typename iter>
136 template <
typename... ts>
139 return {combination_operator::and_,
std::move(filters)...};
149 template <
typename... ts>
152 return {combination_operator::or_,
std::move(filters)...};
auto gt(std::string key, metadata_value value) noexcept -> binary_filter
Greater-than filter, tests if a key is > than a value.
auto in(std::string key, iter values) noexcept -> array_filter< iter >
In filter, tests if a key is in a range of values.
auto nin(std::string key, iter values) noexcept -> array_filter< iter >
Not-in filter, tests is a key is not in a range of values.
auto and_(ts... filters) noexcept -> combination_filter< ts... >
And filter, tests if all contained filters are true.
auto gte(std::string key, metadata_value value) noexcept -> binary_filter
Greater-than-or-equal filter, tests if a key is >= a value.
auto or_(ts... filters) noexcept -> combination_filter< ts... >
Or filter, tests is any contained filter is true.
auto ne(std::string key, metadata_value value) noexcept -> binary_filter
Not-equal filter, tests if a key is != to a value.
auto lte(std::string key, metadata_value value) noexcept -> binary_filter
Less-than-or-equal filter, tests if a key is <= a value.
auto eq(std::string key, metadata_value value) noexcept -> binary_filter
Equality filter, tests if a key is == to a value.
auto none() noexcept -> no_filter
No filter, always true.
auto lt(std::string key, metadata_value value) noexcept -> binary_filter
Less-than filter, tests if a key is < a value.
Array filters test a single metadata value against multiple operands.
Binary filters are simple predicates; they compare a single metadata value to a provided operand.
Combination filters apply boolean logic to the other filter types.
No filter applied; always returns true.