SearchableField#

class pyatlan.model.fields.atlan_fields.SearchableField(atlan_field_name: StrictStr, elastic_field_name: StrictStr)[source]#

Base class for any field in Atlan that can be searched.

bucket_by(size: int = 10) Aggregation[source]#
Return criteria to bucket results based on the provided field.
param size:

the number of buckets to include results across.

returns:

criteria to bucket results by the provided field, across a maximum number of buckets defined by

the provided size

*/

has_any_value() Query[source]#

Returns a query that will only match assets that have some non-null, non-empty value (no matter what actual value) for the field.

Returns:

a query that will only match assets that have some non-null, non-empty value for the field

order(order: SortOrder = SortOrder.ASCENDING) SortItem[source]#

Returns a condition to sort results by the field, in the specified order.

Parameters:

order – in which to sort the results

Returns:

sort condition for the field, in the specified order