> For the complete documentation index, see [llms.txt](https://docs.fact-finder.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.fact-finder.com/integration/integrating-the-navigation-module/restricting-to-a-main-category.md).

# Restricting to a main category

Restrict navigation to a top-level category by filtering simple fields or category path fields.

Because the Navigation module works with the same data as Search, navigating the product range means applying a filter or filter combination across the full product set. The field type matters here. FactFinder supports two main types:

#### Simple data field

Each simple data field stores one hierarchy level. A FactFinder setup that uses this structure has several related fields to represent the full hierarchy. These fields usually share the same base name and differ only by numbering, such as `Category0`, `Category1`, and `Category2`.

Example data:

|            |                  |
| ---------- | ---------------- |
| Field name | Database content |
| category0  | Clothing         |
| category1  | Trousers         |
| category2  | Jeans            |

#### Category path field

In this case, the full navigation hierarchy is stored in a dedicated FactFinder category path field. Note that the database content does not necessarily match the content of the export file.

|            |                             |
| ---------- | --------------------------- |
| Field name | Database content            |
| category   | \|Clothing/Trousers/Jeans\| |

### Filtering for a simple data field

The default name for this kind of field in FactFinder is `category0`. If you want to navigate to the category `Clothing`, the navigation call must pass the filter parameter `filter=category0:Clothing`. A corresponding REST call looks like this:

```language-plaintext
../rest/{apiversion}/navigation/{channel}?filter=category0:Clothing
```

### Filtering for a category path field

If you want to navigate a field that contains a category path, the navigation call must pass the filter parameter `filter=category:Clothing`.

For the example above, the corresponding REST call looks like this:

```language-plaintext
../rest/{apiversion}/navigation/{channel}?filter=category:Clothing
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.fact-finder.com/integration/integrating-the-navigation-module/restricting-to-a-main-category.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
