> For the complete documentation index, see [llms.txt](https://documentation.ocsinventory-ng.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://documentation.ocsinventory-ng.org/quickstart-guides/for-users/using-the-multi-criteria-search.md).

# Using the Multi-criteria search

<figure><img src="https://461838061-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtjrEC8kt8LJiJYFBs5CS%2Fuploads%2FnikYcfu1ryfXPcdb07zm%2Fbasicsearch.gif?alt=media&amp;token=62c9fd76-37d7-4982-a7aa-7632eca9fdee" alt="Example of a basic multi-criteria search"><figcaption><p>Example of a basic multi-criteria search</p></figcaption></figure>

Goal: find assets where **OS Name** contains `windows` and **OS Version** starts with `10`.

### Create the first criteria

{% stepper %}
{% step %}
Navigate to **Inventory → Tools → Multi-criteria search**.
{% endstep %}

{% step %}
Define the first criteria.

* Using the first drop-down, select **Assets**.
* For the second drop-down, choose **OS Name**.
* In the third drop-down, select **contains**.
* In the value field, enter `windows`.
  {% endstep %}

{% step %}
Click **Search**.
{% endstep %}

{% step %}
Check the results.
{% endstep %}
{% endstepper %}

### Add a second criteria

{% stepper %}
{% step %}
Add a criteria line.

Click the **+** button at the end of the first criteria line.

A new line appears. You also get a logical operator (**AND** / **OR**).
{% endstep %}

{% step %}
Define the second criteria.

* Set the logical operator to **AND**.
* Use the drop-downs to construct your second criteria:
  * For the first drop-down, select **Assets**.
  * For the second drop-down, choose **OS Version**.
  * For the third drop-down, select **starts with**.
  * In the value field, enter `10`.
    {% endstep %}

{% step %}
Run the search.

Click **Search**.
{% endstep %}

{% step %}
Review the results.

Matching assets appear in the results table.
{% endstep %}
{% endstepper %}

{% hint style="info" %}
For more advanced examples, please refer to [Multi-criteria search](https://documentation.ocsinventory-ng.org/user-docs/console-tools/multi-criteria-search.md).
{% endhint %}


---

# 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://documentation.ocsinventory-ng.org/quickstart-guides/for-users/using-the-multi-criteria-search.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.
