---
title: "Query Overview"
description: "Query RavenDB documents using LINQ-style API methods, with support for filtering, projections, aggregation, and full-text search."
url: "https://docs.ravendb.net/7.2/querying/overview"
version: "7.2"
language: "python"
---

# Query Overview

> Client language: Python. Also available for [C#](https://docs.ravendb.net/7.2/querying/overview.md), [PHP](https://docs.ravendb.net/7.2/querying/overview.php.md), [Node.js](https://docs.ravendb.net/7.2/querying/overview.nodejs.md).
>
> RavenDB publishes an official agent skill for coding assistants at https://docs.ravendb.net/skills/ravendb/SKILL.md (also installable with `npx skills add ravendb/skills`). The skill describes itself as: "Read this before writing any RavenDB query, client call or /databases/ request. Covers server setup, document modelling, the Node.js, .NET and Python clients, RQL, indexes, vector search and AI agents. Code written from recall tends to run and return the wrong rows, because RQL resembles SQL and the clients take field names as plain strings."

> **Note**
>
> - Queries in RavenDB can be written with either of the following:
>   - Using a rich API via the session's `query` method
>   - Using the `document_query` method
>   - Using **RQL** -
>     - when querying via the session's `raw_query` method
>     - when querying from the Studio's [Query view](https://docs.ravendb.net/7.2/studio/database/queries/query-view.md)
>
> - Queries defined with `query` or `document_query` are **translated by the RavenDB client to [RQL](https://docs.ravendb.net/7.2/querying/rql/what-is-rql.md)** when sent to the server.
>
> - All queries in RavenDB use an **index** to provide results, even when you don't specify one.  
>   Learn more below in [Queries always provide results using an index](#queries-always-provide-results-using-an-index).
>
> - Queries that do Not specify which index to use are called **Dynamic Queries**.  
>   This article displays examples of dynamic queries only.  
>   For examples showing how to query an index see [querying an index](https://docs.ravendb.net/7.2/indexes/querying/query-index.python.md).
>
> - The entities returned by the query are 'loaded' and **tracked** by the [Session](https://docs.ravendb.net/7.2/client-api/session/what-is-a-session-and-how-does-it-work.python.md).  
>   Entities will Not be tracked when:
>   - Query returns a [projection](https://docs.ravendb.net/7.2/client-api/session/querying/how-to-project-query-results.python.md)
>   - Tracking is [disabled](https://docs.ravendb.net/7.2/client-api/session/configuration/how-to-disable-tracking.python.md#disable-tracking-query-results)
>
> - Query results are **cached** by default. To disable query caching see [NoCaching](https://docs.ravendb.net/7.2/querying/customize-query.python.md#nocaching).
>
> - Queries are timed out after a configurable time period.  See [query timeout](https://docs.ravendb.net/7.2/server/configuration/database-configuration.md#databasesquerytimeoutinsec).
>
> ---
>
> - In this article:
>   - [Queries always provide results using an index](#queries-always-provide-results-using-an-index)
>   - [session.query](#session-query)
>   - [session.advanced.document\_query](#session-advanced-document_query)
>   - [session.advanced.raw\_query](#session-advanced-raw_query)
>   - [query API](#query-api)
>   - [Syntax](#syntax)

## Queries always provide results using an index {#queries-always-provide-results-using-an-index}

- Indexes let RavenDB return query results without scanning the entire dataset each and every time.  
  Queries always use an index to provide fast results regardless of the size of your data.

- When a query reaches a RavenDB instance, the instance calls its query optimizer to analyze the query  
  and determine which index should be used to retrieve the requested data.

- Learn more about indexes, their general concept, and the different **index types** in this [indexes overview](https://docs.ravendb.net/7.2/studio/database/indexes/indexes-overview.md) article.

- You can choose the underlying **search engine** (Lucene or Corax) that RavenDB indexes use.  
  Learn more in [selecting the search engine](https://docs.ravendb.net/7.2/indexes/search-engine/corax.md#selecting-the-search-engine).

> **Info**
>
> We differentiate between the following **3 query scenarios**:
>
> 1. **[Query a specific index](#1-query-a-specific-index)** - uses the index you specify (typically a static index).
> 2. **[Query a collection - using an auto-index](#2-query-a-collection---using-an-auto-index)** - uses an existing or newly created auto-index.
> 3. **[Query a collection - query full collection | query by ID](#3-query-a-collection---query-full-collection--query-by-id)** - reads directly from collection storage.

> **Note**
>
> ### 1. Query a specific index
>
> **Query type**: Index query  
> **Index used**: The specified index (typically a static-index)
>
> - Static indexes are defined by the user, as opposed to [auto-indexes](#2-query-a-collection---using-an-auto-index),
>   which the server creates to serve dynamic queries.
>   Learn more in [Auto indexes -vs- Static indexes](https://docs.ravendb.net/7.2/studio/database/indexes/indexes-overview.md#auto-indexes--vs--static-indexes).  
>   To query a specific index, specify the index in the query.
>
> - Example RQL:   `from index "Employees/ByFirstName" where FirstName == "Laura"`  
>   See more examples in [querying an index](https://docs.ravendb.net/7.2/indexes/querying/query-index.python.md).

> **Note**
>
> ### 2. Query a collection - using an auto-index
>
> **Query type**: Dynamic Query  
> **Index used**: Auto-index
>
> ---
>
> #### When an auto-index is used
>
> - The query optimizer looks for a suitable **AUTO-index** when a dynamic query includes **one or more of the following**:
>
>   - A `where` condition on fields other than the document ID,  
>     or an ID condition not listed in [Query by document ID](#3-query-a-collection---query-full-collection--query-by-id).
>   - An `order by` clause to sort the results.
>   - A `group by` clause to group the results.
>   - A `suggest()` call in the `select` clause to request term suggestions.
>
> ---
>
> #### How RavenDB selects or creates an auto-index
>
> - If a suitable auto-index (Not a static one...) already exists, RavenDB uses it to retrieve the results.  
>   An auto-index is suitable when:
>
>   - **For queries without grouping** -  
>     it supports the fields and operations used in `where`, `order by`, and `suggest()`.
>   - **For queries with `group by`** -  
>     it is a map-reduce index that groups by exactly the fields in the query's `group by` clause  
>     and computes every aggregation the query selects (for example, `count()` or `sum(Freight)`).
>
> - Else, if no relevant auto-index is found, the query optimizer will create a new auto-index with fields that match the query criteria.
>   At this time, and only at this time, the query waits for the new auto-index to finish indexing,  
>   for up to 15 seconds (60 seconds for a streaming query), unless the query sets its own wait timeout with
>   [wait\_for\_non\_stale\_results](https://docs.ravendb.net/7.2/querying/customize-query.python.md#wait_for_non_stale_results).  
>   If indexing is not done by then, the query returns the results indexed so far, marked as [stale](https://docs.ravendb.net/7.2/indexes/stale-indexes.md).  
>   Subsequent queries that target this auto-index will be served immediately.
>
> - The query optimizer may also create a new auto-index that combines the fields of an existing auto-index with any additional fields needed by the query.  
>   Auto map-reduce indexes are merged this way only when their grouping keys are the same.
>
> - Once the newly created auto-index is done indexing the data,  
>   the old auto-index is removed in favor of the new one.
>
> - Over time, an optimal set of indexes is generated by the query optimizer to answer your queries.
>
> ---
>
> #### Query examples
>
> - **Field filtering (`where`)**  
>   Example RQL:   `from Employees where FirstName == "Laura"`  
>   See more examples in [session.query](#session-query) below.
>
> - **Sorting without a `where` condition**  
>   Sorting alone is enough to require an auto-index.  
>   A query that has an `order by` clause but no `where` condition is served by an auto-index, not by the raw collection.
>   This applies to any `order by` clause, including `order by id()` and `order by random()`.
>
>   Example RQL:   `from Employees order by FirstName`  
>   If the *Employees* collection has no auto-index yet, this query creates the `Auto/Employees/ByFirstName` auto-index.
>   See more examples in [Sort query results](https://docs.ravendb.net/7.2/querying/sorting-query-results/sort-query-results.python.md).
>
> - **Grouping (`group by`)**  
>   Grouping alone is enough to require an auto map-reduce index, even without a `where` or `order by` clause.
>
>   Example RQL:   `from Orders group by Company select count()`  
>   If no suitable auto map-reduce index already exists, this query creates the `Auto/Orders/ByCountReducedByCompany` index.
>   See [How to perform group by query](https://docs.ravendb.net/7.2/client-api/session/querying/how-to-perform-group-by-query.python.md).
>
> - **Term suggestions (`suggest()`)**  
>   Requesting term suggestions also requires an auto-index, even without a `where` or `order by` clause.
>
>   Example RQL:   `from Products select suggest(Name, "chaig")`  
>   If no suitable auto-index already exists, this query creates the `Auto/Products/BySuggest(Name)` auto-index, with suggestions enabled for `Name`.  
>   See [How to work with suggestions](https://docs.ravendb.net/7.2/client-api/session/querying/how-to-work-with-suggestions.python.md).
>
> ---
>
> #### Exceptions and special cases
>
> - **Counters and time series**  
>   Dynamic queries on counters and time series values don't create auto-indexes.  
>   However, a static-index can be defined on [Time series](https://docs.ravendb.net/7.2/document-extensions/timeseries/indexing.python.md) and [Counters](https://docs.ravendb.net/7.2/document-extensions/counters/indexing.python.md).
>
> - **The RQL `filter` clause**  
>   The RQL `filter` clause does not itself require or create an auto-index.  
>   For example, `from Employees filter FirstName == "Laura"` reads from the raw collection and filters the documents on the server.
>   Other clauses in the same query can still require an auto-index.  
>   Learn more in [Exploration queries](https://docs.ravendb.net/7.2/querying/filtering-query-results/exploration-queries.python.md).

> **Note**
>
> ### 3. Query a collection - query full collection | query by ID
>
> **Query type**: Full collection Query  
> **Index used**: The raw collection (internal storage indexes)
>
> ---
>
> #### Full collection query:
>
> - When querying a collection without specifying an index, with no `where`, `filter`, `order by`, or `group by` clause
>   and no `suggest()` call, all documents from the specified collection are returned.
>
> - RavenDB uses the raw collection documents in its **internal storage indexes** as the source for this query.  
>   No auto-index is created.
>
> - Example RQL:   `from Employees`
>
> ---
>
> #### Query by document ID:
>
> - When querying a collection without specifying an index, these simple ID lookups can be served directly from collection storage:
>
>   - `id() = ...` (or `id() == ...`) to look up one document.
>   - `id() in (...)` to look up a set of document IDs.
>   - `startsWith(id(), ...)` to look up documents whose IDs have a given prefix.
>
>   No auto-index is created when these simple ID lookups are used without sorting (`order by`),  
>   grouping (`group by`), or a `suggest()` call.
>
>   Other RQL conditions on `id()`, such as `!=`, ranges, or ID conditions combined with `and` or `or`,  
>   require an auto-index.  
>   To look up several documents by ID, use `id() in (...)` rather than `id() = ... or id() = ...`.
>
> - On the server side, this type of query opens a single read transaction and extracts the documents directly from the raw collection storage.
>   No search engine index (Lucene or Corax) is involved in this process.
>
> - Example RQL:   `from Employees where id() == "employees/1-A"`  
>   See more examples [below](#session-query).

## session.query {#session-query}

- The simplest way to issue a query is using session's `query` method.  
  Customize your query with these [API methods](#query-api).

- The following examples show **dynamic queries** that do not specify which index to use.  
  Please refer to [querying an index](https://docs.ravendb.net/7.2/indexes/querying/query-index.python.md) for other examples.

---

**Examples**:

**Query the full collection**

### Inline\_query\_execution

```python
# This is a Full Collection Query
# No auto-index is created since no conditions, sorting, or grouping are applied

all_employees = list(  # Execute the query
    # Query for all documents from 'Employees' collection
    session.query(object_type=Employee)
)
    
# All 'Employee' entities are loaded and will be tracked by the session    
```

### Step\_by\_step

```python
# This is a Full Collection Query
# No auto-index is created since no conditions, sorting, or grouping are applied

# Define a query for all documents from 'Employees' collection
query = session.query(object_type=Employee)

# Execute the query
all_employees = list(query)

# All 'Employee' entities are loaded and will be tracked by the session
```

### RQL

```sql
// This RQL is a Full Collection Query
// No auto-index is created since no conditions, sorting, or grouping are applied

from "Employees"
```

**Query a collection by ID**

### Inline\_query\_execution

```python
# Query collection by document ID
# No auto-index is created when querying only by ID

employee = (    
    session.query(object_type=Employee)
    # Query for a specific document from 'Employees' collection
    .where_equals("Id", "employees/1-A") 
    # Execute the query
    .first()
)

# The resulting 'Employee' entity is loaded and will be tracked by the session
```

### Step\_by\_step

```python
# Query collection by document ID
# No auto-index is created when querying only by ID

# Define a query for a specific document from 'Employees' collection
query = session.query(object_type=Employee).where_equals("Id", "employees/1-A")

# Execute the query
employee_result = query.first()

# The resulting 'Employee' entity is loaded and will be tracked by the session
```

### RQL

```sql
// This RQL queries the 'Employees' collection by ID
// No auto-index is created when querying only by ID

from "Employees" where id() == "employees/1-A"
```

**Query a collection by a field value (`where`)**

### Inline\_query\_execution

```python
# Query a collection by a field value

# An auto-index will be created if there isn't already an existing auto-index
# that indexes this document field

employees = list(  # Execute the query
    session.query(object_type=Employee)
    # Query for all 'Employee' documents that match this predicate
    .where_equals("first_name", "Robert") 
)

# The resulting 'Employee' entities are loaded and will be tracked by the session
```

### Step\_by\_step

```python
# Query a collection by a field value

# An auto-index will be created if there isn't already an existing auto-index
# that indexes this document field

# Define a query for all 'Employee' documents that match this predicate
query = session.query(object_type=Employee).where_equals("first_name", "Robert")

# Execute the query
employees = list(query)

# The resulting 'Employee' entities are loaded and will be tracked by the session
```

### RQL

```sql
// Query a collection by a field value

// An auto-index will be created if there isn't already an existing auto-index
// that indexes the requested field

from "Employees" where FirstName == "Robert"
```

**Query a collection with paging**

### Inline\_query\_execution

```python
# Query a collection with paging
# No auto-index is created since no conditions, sorting, or grouping are applied
    
products = list(
    session.query(object_type=Product)
    .skip(5)   # Skip first 5 results
    .take(10)  # Load up to 10 entities from 'Products' collection
)

# The resulting 'Product' entities are loaded and will be tracked by the session
```

### Step\_by\_step

```python
# Query a collection with paging
# No auto-index is created since no conditions, sorting, or grouping are applied

# Define the query 
query = (
    # Skip first 5 results
    # Load up to 10 entities from 'Products' collection
    session.query(object_type=Product).skip(5).take(10) 
)  

# Execute the query
products = list(query)

# The resulting 'Product' entities are loaded and will be tracked by the session
```

### RQL

```sql
// Query a collection with paging
// No auto-index is created since no conditions, sorting, or grouping are applied

from "Products" limit 5, 10 // skip 5, take 10
```

- By default, if the page size is not specified, all matching records will be retrieved from the database.

## session.advanced.document\_query {#session-advanced-document\_query}

- Although you can explicitly call `document_query`, in the **Python** client API, the `query` and `document_query` methods provide **identical functionality**.
  Learn more in:
  - [What is a document query](https://docs.ravendb.net/7.2/querying/document-query/what-is-document-query.python.md)
  - [query -vs- document\_query](https://docs.ravendb.net/7.2/querying/document-query/query-vs-document-query.python.md)

---

- The following example shows a simple `document_query` and its RQL statement.

### document\_query

```python
# Query with document_query - by a field value

# An auto-index will be created if there isn't already an existing auto-index
# that indexes this document field

employees = list(  # Execute the query
    session.advanced.document_query(object_type=Employee)
    .where_equals("first_name", "Robert")
)

# The resulting 'Employee' entities are loaded and will be tracked by the session
```

### RQL

```sql
// Query a collection by a field value

// An auto-index will be created if there isn't already an existing auto-index
// that indexes the requested field

from "Employees" where FirstName = "Robert"
```

## session.advanced.raw\_query {#session-advanced-raw\_query}

- Queries defined with [query](#session-query) or [document\_query](#session-advanced-document_query) are translated by the RavenDB client to [RQL](https://docs.ravendb.net/7.2/querying/rql/what-is-rql.md)  
  when sent to the server.

- The session also gives you a way to express the query directly in RQL using the `raw_query` method.

---

**Example**:

```python
# Query with RawQuery - by a field value

# An auto-index will be created if there isn't already an existing auto-index
# that indexes this document field

employees = list(  # Execute the query
    session.advanced.raw_query(
        "from 'Employees' where first_name = 'Robert'", object_type=Employee
    )  # Provide RQL to RawQuery
)
# The resulting 'Employee' entities are loaded and will be tracked by the session
```

## query API {#query-api}

Available methods for the session's [query](#session-query) method:

- add\_order
- [after\_query\_executed](https://docs.ravendb.net/7.2/querying/customize-query.python.md#afterqueryexecuted)
- [after\_stream\_executed](https://docs.ravendb.net/7.2/querying/customize-query.python.md#afterstreamexecuted)
- [aggregate\_by](https://docs.ravendb.net/7.2/client-api/session/querying/how-to-perform-a-faceted-search.python.md)
- [aggregate\_using](https://docs.ravendb.net/7.2/client-api/session/querying/how-to-perform-a-faceted-search.python.md)
- and\_also
- [before\_query\_executed](https://docs.ravendb.net/7.2/querying/customize-query.python.md#beforequeryexecuted)
- [boost](https://docs.ravendb.net/7.2/client-api/session/querying/text-search/boost-search-results.python.md)
- close\_subclause
- cmp\_xchg
- contains\_all
- contains\_any
- [count](https://docs.ravendb.net/7.2/client-api/session/querying/how-to-count-query-results.python.md)
- [count\_lazily](https://docs.ravendb.net/7.2/client-api/session/querying/how-to-perform-queries-lazily.python.md#lazy-count-query)
- [customize](https://docs.ravendb.net/7.2/querying/customize-query.python.md)
- distinct
- explain\_scores
- first
- first\_or\_default
- fuzzy
- get\_index\_query
- get\_query\_result
- [group\_by](https://docs.ravendb.net/7.2/client-api/session/querying/how-to-perform-group-by-query.python.md)
- [group\_by\_array\_values](https://docs.ravendb.net/7.2/client-api/session/querying/how-to-perform-group-by-query.python.md#by-array-values)
- [group\_by\_array\_content](https://docs.ravendb.net/7.2/client-api/session/querying/how-to-perform-group-by-query.python.md#by-array-content)
- [highlight](https://docs.ravendb.net/7.2/client-api/session/querying/text-search/highlight-query-results.python.md)
- [include](https://docs.ravendb.net/7.2/client-api/how-to/handle-document-relationships.md)
- include\_explanations
- [intersect](https://docs.ravendb.net/7.2/client-api/session/querying/how-to-use-intersect.python.md)
- invoke\_after\_query\_executed
- invoke\_after\_stream\_eExecuted
- [lazily](https://docs.ravendb.net/7.2/client-api/session/querying/how-to-perform-queries-lazily.python.md)
- [more\_like\_this](https://docs.ravendb.net/7.2/client-api/session/querying/how-to-use-morelikethis.python.md)
- negate\_next
- [not](https://docs.ravendb.net/7.2/querying/filtering-query-results/use-logical-operators.python.md#negate-a-condition-with-not)
- [no\_caching](https://docs.ravendb.net/7.2/querying/customize-query.python.md#nocaching)
- [no\_tracking](https://docs.ravendb.net/7.2/querying/customize-query.python.md#notracking)
- [of\_type](https://docs.ravendb.net/7.2/client-api/session/querying/how-to-project-query-results.python.md#oftype-\(as\)---simple-projection)
- open\_subclause
- [order\_by](https://docs.ravendb.net/7.2/querying/sorting-query-results/sort-query-results.python.md)
- [order\_by\_descending](https://docs.ravendb.net/7.2/querying/sorting-query-results/sort-query-results.python.md)
- [order\_by\_distance](https://docs.ravendb.net/7.2/client-api/session/querying/how-to-make-a-spatial-query.python.md#orderbydistance)
- [order\_by\_distance\_descending](https://docs.ravendb.net/7.2/client-api/session/querying/how-to-make-a-spatial-query.python.md#orderbydistancedesc)
- [order\_by\_score](https://docs.ravendb.net/7.2/querying/sorting-query-results/sort-query-results.python.md#order-by-score)
- [order\_by\_score\_descending](https://docs.ravendb.net/7.2/querying/sorting-query-results/sort-query-results.python.md#order-by-score)
- or\_else
- [projection](https://docs.ravendb.net/7.2/querying/customize-query.python.md#projection)
- [project\_into](https://docs.ravendb.net/7.2/client-api/session/querying/how-to-project-query-results.python.md)
- proximity
- [random\_ordering](https://docs.ravendb.net/7.2/querying/customize-query.python.md#randomordering)
- [relates\_to\_shape](https://docs.ravendb.net/7.2/client-api/session/querying/how-to-make-a-spatial-query.python.md#search-by-shape)
- [search](https://docs.ravendb.net/7.2/client-api/session/querying/text-search/full-text-search.python.md)
- select\_fields
- select\_time\_series
- single
- single\_or\_default
- skip
- [spatial](https://docs.ravendb.net/7.2/client-api/session/querying/how-to-make-a-spatial-query.python.md)
- [statistics](https://docs.ravendb.net/7.2/client-api/session/querying/how-to-get-query-statistics.python.md)
- [suggest\_using](https://docs.ravendb.net/7.2/client-api/session/querying/how-to-work-with-suggestions.python.md)
- take
- [timings](https://docs.ravendb.net/7.2/querying/customize-query.python.md#timings)
- using\_default\_operator
- [wait\_for\_non\_stale\_results](https://docs.ravendb.net/7.2/querying/customize-query.python.md#wait_for_non_stale_results)
- where
- WhereBetween
- [where\_ends\_with](https://docs.ravendb.net/7.2/client-api/session/querying/text-search/ends-with-query.python.md)
- where\_equals
- [where\_exists](https://docs.ravendb.net/7.2/querying/filtering-query-results/filter-by-field-presence.python.md)
- where\_greater\_than
- where\_greater\_than\_or\_equal
- where\_in
- where\_less\_than
- where\_less\_than\_or\_equal
- [where\_lucene](https://docs.ravendb.net/7.2/querying/filtering-query-results/filter-with-lucene-syntax.python.md)
- where\_not\_equals
- [where\_regex](https://docs.ravendb.net/7.2/client-api/session/querying/text-search/using-regex.python.md)
- [where\_starts\_with](https://docs.ravendb.net/7.2/client-api/session/querying/text-search/starts-with-query.python.md)
- within\_radius\_of

## Syntax {#syntax}

```python
# Overloads for querying a collection OR an index:
# ================================================

def query(
    self, source: Optional[Query] = None, object_type: Optional[Type[_T]] = None
) -> DocumentQuery[_T]:
    ...

def query_collection(
    self, collection_name: str, object_type: Optional[Type[_T]] = None
) -> DocumentQuery[_T]:
    ...

def query_index(self, index_name: str, object_type: Optional[Type[_T]] = None) -> DocumentQuery[_T]:
    ...

def document_query(
    self,
    index_name: str = None,
    collection_name: str = None,
    object_type: Type[_T] = None,
    is_map_reduce: bool = False,
) -> DocumentQuery[_T]:
    ...

# Overloads for querying an index:
# ================================
def query_index_type(
    self, index_type: Type[_TIndex], object_type: Optional[Type[_T]] = None
) -> DocumentQuery[_T]:
    ...

def document_query_from_index_type(
    self, index_type: Type[_TIndex], object_type: Type[_T]
) -> DocumentQuery[_T]:
    ...

# raw_query:
# ==========
def raw_query(self, query: str, object_type: Optional[Type[_T]] = None) -> RawDocumentQuery[_T]:
    ...
```

| Parameter | Type | Description |
| - | - | - |
| **object\_type** | `Type[_T]` | Queried entities type |
| **collection\_name** | `str` | Queried collection name |
| **query** | `str` | RQL query string |
| **index\_name** | `str` | Queried index name |
| **index\_type** | `Type[_TIndex]` | Queried index type |
| **is\_map\_reduce** | `bool` | Is a map-reduce index queried |

| Return Value | |
| - | - |
| `DocumentQuery[_T]`<br />`RawDocumentQuery[_T]` | Instances exposing additional query methods and [extensions](#query-api) |

## See also

- [How to Project Query Results](https://docs.ravendb.net/7.2/client-api/session/querying/how-to-project-query-results.python.md)
- [How to Stream Query Results](https://docs.ravendb.net/7.2/querying/stream-query-results.md)
- [What is a Document Query](https://docs.ravendb.net/7.2/querying/document-query/what-is-document-query.python.md)
- [Querying an Index](https://docs.ravendb.net/7.2/indexes/querying/query-index.python.md)
- [Filtering](https://docs.ravendb.net/7.2/querying/filtering-query-results/filter-query-results.python.md)
- [Paging](https://docs.ravendb.net/7.2/indexes/querying/paging.python.md)
- [Sorting](https://docs.ravendb.net/7.2/querying/sorting-query-results/sort-query-results.python.md)
- [Projections](https://docs.ravendb.net/7.2/indexes/querying/projections.python.md)
- [What are Indexes](https://docs.ravendb.net/7.2/indexes/what-are-indexes.python.md)
- [Indexing Basics](https://docs.ravendb.net/7.2/indexes/indexing-basics.md)
- [Map Indexes](https://docs.ravendb.net/7.2/indexes/map-indexes.python.md)
