# Supported Search Types

The most common question we get is: *What types of search does OneSearch support?* The answer is that OneSearch supports every type of search that ServiceNow can support natively, keeping all of your data safe and secure in your ServiceNow instance, and requiring no additional costs, maintenance, or external integrations. There are 3 types of search, selectable on the searcher Section. Note that you can use whichever search works best for each Section, allowing you to mix-and-match search types within the same Searcher.

1. **Simple**: Uses a simple condition builder to build a query against a target table
   1. If the condition includes a ‘Keywords are’ term in the query, then it utilizes the Zing search index managed by ServiceNow
   2. If the condition does **not** include a ‘Keywords are’ term in the query, then it’s a normal GlideRecord query
2. **AI Search**: Uses any AI Search Context built for the AI Search index managed by ServiceNow
3. **Scripted**: Provides a server-side script box – you can do whatever you want!

{% hint style="info" %}
**Simple** (w/ Zing) is generally the best option. There are myriad configurations available to tweak the quality of search results - you can learn more about these in ServiceNow's [documentation](https://docs.servicenow.com/csh?topicname=features-zing\&version=latest).
{% endhint %}

{% hint style="info" %}
**AI Search** can also be a great option, but it tends to improve as the amount of data in your ServiceNow instance grows. AI Search is more of a black box – if your results aren’t naturally great, there isn’t as much configuration available to tweak them.
{% endhint %}

{% hint style="info" %}
**Scripted** is ‘god mode’ – you can query any source, internal or external to ServiceNow, and you can manipulate your queries and results in any way you like to achieve highly customized results.
{% endhint %}


---

# Agent Instructions: Querying This Documentation

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

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.yansalabs.com/onesearch/technical-docs/supported-search-types.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
