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

# Query Pipeline Stages Reference

export const LwTemplate = ({title = "Key questions to get you started", icon = "sparkles", cta = "Powered by Agent Studio", linkHref = "https://lucidworks.com/demo/?utm_source=docs&utm_medium=referral&utm_campaign=docs_cta_ai"}) => {
  const [isLoaded, setIsLoaded] = useState(false);
  useEffect(() => {
    const timer = setTimeout(() => {
      setIsLoaded(true);
    }, 500);
    return () => clearTimeout(timer);
  }, []);
  return <div className="lw-template-container">
      <Card title={title} icon={icon}>
        {isLoaded && <span dangerouslySetInnerHTML={{
    __html: `<lw-template id="a029c1a9-28be-427e-b0e1-5d918920246a"></lw-template
            >`
  }} />}
        <Link href={linkHref} className="agent-studio-link text-left text-gray-600 gap-2 dark:text-gray-400 text-sm font-medium flex flex-row items-center hover:text-primary dark:hover:text-primary-light group-hover:text-primary group-hover:dark:text-primary-light">Powered by Lucidworks Agent Studio</Link>
      </Card>
    </div>;
};

[localhost link]: http://localhost:3000/docs/5/fusion/reference/config-ref/pipeline-stages/query-stages/overview

[mintlify link]: https://doc.lucidworks.com/docs/5/fusion/reference/config-ref/pipeline-stages/query-stages/overview

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

A query pipeline is made up of a series of query stages that process incoming search queries.

<LwTemplate />

A pipeline stage definition associates a unique ID with a set of properties.
These definitions are registered with the Fusion API service and stored in ZooKeeper for re-use across pipelines and search applications.

Fusion includes a number of specialized query stages as well as a JavaScript stage that allows advanced processing via a JavaScript program.

The detailed configuration article about each Fusion query pipeline stage is provided in this section.

Configuration details are found for each pipeline stage in this section.
To configure a query pipeline stage, sign in to Fusion and click **Querying > Query Workbench**. Then click **Add a Stage** and select the stage you want to configure. The stages are displayed under these categories:

* **Set Up.** This section displays options that let you configure stages such as Facets, Graph Security Trimming, and Query Fields.
* **Results Relevancy.** This section displays options that let you configure stages such as Block Documents, Boost Documents, Recommend Items for Item, and Recommend Items for User.
* **Fetch Data.** This section displays options that let you configure stages such as Apply Rules, JDBC Lookup, and REST Query.
* **Responses.** This section displays options that let you configure stages such as QnA Result Document Field Sorting, Response Diagnostics, and Response Document Exclusion.
* **Troubleshooting.** This section displays the option that lets you configure the Logging stage.
* **Advanced.** This section displays options that let you configure stages such as Additional Query Parameters, Managed JavaScript, and QnA Filter Stop Words.
* **Custom.** This section displays options that let you configure stages such as Custom Graph Security Trimming and JavaScript.
* **AI.** This section displays options that let you configure stages such as Hybrid Query, LWAI Prediction, and Machine Learning.
* **Other.** This section displays options that let you configure stages such as Experiment Stage, Return Query Parameters, and Text Tagger.

For information about how to configure stages in a query pipeline, see [The Query Workbench](/docs/5/fusion/intro/ui-tour/query-workbench).

For conceptual information, see [Query pipelines](/docs/5/fusion/getting-data-out/query-basics/query-pipelines/query-pipeline-stages).
