> ## Documentation Index
> Fetch the complete documentation index at: https://www.paradedb.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Filtering and Sorting

> Filter search results and sort by field values with Top K queries

ParadeDB is designed to efficiently push filters into the same index scan as
your text search, vector search, join, and aggregate queries. It also
accelerates Top K queries ordered by any scalar field.

> [card] [Indexing Scalar Fields](https://www.paradedb.com/docs/reference/indexing/field-types/scalar.md)
>
> Include columns used for filtering and ordering in the ParadeDB index.

> [card] [Filtering Overview](https://www.paradedb.com/docs/reference/filtering-and-sorting/filtering/overview.md)
>
> Choose the right filtering path for your columns and indexes.

> [card] [Top K Sorting](https://www.paradedb.com/docs/reference/filtering-and-sorting/top-k.md)
>
> Sort by field values and efficiently return a limited number of results.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.