> ## 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.

# Index Pipeline Stage Template Expression Variables

[localhost link]: http://localhost:3000/docs/4/fusion-server/reference/template-expressions/index-pipeline-variables

[mintlify link]: https://doc.lucidworks.com/docs/4/fusion-server/reference/template-expressions/index-pipeline-variables

[old doc.lw link]: https://doc.lucidworks.com/fusion-server/4.2/396

Index stages have the following variables available:
import { LwTemplate } from '/snippets/LwTemplate.jsx';

<LwTemplate />

* `ctx`. [Context](https://javadoc.lucidworks.com/fusion-pipeline-javadocs/4.2/com/lucidworks/apollo/pipeline/Context.html): used to pass variables between stages
* `doc`. [PipelineDocument](https://javadoc.lucidworks.com/fusion-pipeline-javadocs/4.2/com/lucidworks/apollo/common/pipeline/PipelineDocument.html): Fusion internal representation of a Solr Document. Please note that if you change this class in ways that affect the serialized form (adding fields, for example) you need to change the deserialization code in `GenericJSONDocumentMessageReader`.

The format required is `<request.q>`.
