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

# Update Related Document Stage

[localhost link]: http://localhost:3000/docs/5/fusion/reference/config-ref/pipeline-stages/index-stages/update-related-document-index-stage

[mintlify link]: https://doc.lucidworks.com/docs/5/fusion/reference/config-ref/pipeline-stages/index-stages/update-related-document-index-stage.md

[old doc.lw link]: https://doc.lucidworks.com/fusion/5.9/231.md

This index pipeline stage performs a Solr atomic update on an existing document using data pulled from the current document being processed by the pipeline.

> [card] Key questions to get you started
>
> Powered by Lucidworks Agent Studio

## Configuration

> [!TIP]
>
> When entering configuration values in the UI, use *unescaped* characters, such as `\t` for the tab character. When entering configuration values in the API, use *escaped* characters, such as `\\t` for the tab character.

In the **Find Related Document (RTG)** field, enter the Solr query to look up the related document to update using a real-time `GET` request. The query needs to uniquely identify the document to be updated in an `id=<value>` format. For more information, see the [Solr’s RealTime Get documentation](https://solr.apache.org/guide/solr/latest/configuration-guide/realtime-get.html).

In the **Find Related Document (Query)** field, enter the Solr query to look up the related document to update. Only the first document returned in the results is used. The query can contain any `field:<value>` and needs to uniquely identify the document to be updated. The `id:<value>` field is one example.


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