Find data with filters

Filters are a foundational way to find data in any database. They are best for matching an exact value or range of values, such as finding a user by their user ID.

In Astra DB Serverless, you can use filters alone or with sorting.

Find data in the Astra Portal

In the Astra Portal, you can use the Data Explorer to apply simple metadata filters to collections in Serverless (Vector) databases.

For Serverless (Non-Vector) databases and tables in Serverless (Vector) databases, you can use the built-in CQL shell to execute CQL statements that use WHERE and ORDER BY clauses.

For required permissions, see Ways to find data in Astra DB Serverless.

  • Data Explorer

  • CQL shell

  1. In the Astra Portal, go to Databases, and then select a Serverless (Vector) database.

    The Data Explorer isn’t available for Serverless (Non-Vector) databases. Instead, you can use the CQL shell and drivers.

  2. Click Data Explorer.

  3. Select a Keyspace and Collection.

  4. If you selected a vector-enabled collection, click Add Filter. For non-vector collections, the first filter is automatically added.

    For vector-enabled collections, you can combine filters with vector search. For more information, see Find data with vector search.

  5. For Key, select the field to filter on.

  6. For Condition, select a filter condition, such as is or is not. Available filters depend on the Key field’s data type. For more information about filter operators, see Filter operators for collections.

  7. For Value, enter the filter value.

    Conditions like is, is not, and contains require an exact, case-sensitive match on the Value.

    Filter example: is

    For this example, assume that you have the following filter:

    • Key: character

    • Condition: is

    • Value: Lassie

    This filter returns all documents where the character field is exactly Lassie. It doesn’t return documents with values like lassie or Lassie Come Home, which are not exact, case-sensitive matches.

    Filter example: is not

    For this example, assume that you have the following filter:

    • Key: color

    • Condition: is not

    • Value: red

    This filter returns all documents where the color field isn’t exactly red. However, it can return documents containing Red and reddish, which are not exact, case-sensitive matches.

  8. To add more filters, click Add Filter.

    Additional filters are appended together with the and operator. For other operators, you must use the Data API.

    To remove a filter, click Delete.

  9. Click Apply.

    The Records section updates based on your filters. Click Table and JSON to view the documents in table format or JSON format.

For information about the built-in CQL shell and executing CQL statements, see Cassandra Query Language (CQL) for Astra DB.

Find data with the Data API

With the Data API and clients, you use filter and sort clauses to find data in collections and tables. Any Data API command that involves finding data accepts one or both of these clauses.

For more information and examples, see the following Data API documentation.

If you are new to the Data API, see Get started with the Data API.

Find data with CQL and drivers

Broadly speaking, you use the CQL WHERE and ORDER BY clauses to filter and sort data, and there are many ways to create complex CQL statements to find data quickly and efficiently.

For information about writing and executing CQL statements, see the following:

Was this helpful?

Give Feedback

How can we improve the documentation?

© 2025 DataStax | Privacy policy | Terms of use | Manage Privacy Choices

Apache, Apache Cassandra, Cassandra, Apache Tomcat, Tomcat, Apache Lucene, Apache Solr, Apache Hadoop, Hadoop, Apache Pulsar, Pulsar, Apache Spark, Spark, Apache TinkerPop, TinkerPop, Apache Kafka and Kafka are either registered trademarks or trademarks of the Apache Software Foundation or its subsidiaries in Canada, the United States and/or other countries. Kubernetes is the registered trademark of the Linux Foundation.

General Inquiries: +1 (650) 389-6000, info@datastax.com