> For the complete documentation index, see [llms.txt](https://ispectra.gitbook.io/mutamad/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ispectra.gitbook.io/mutamad/reference/projects/mutamad_search.md). Agents can also search and read this documentation through its [MCP server](https://ispectra.gitbook.io/mutamad/~gitbook/mcp).

# Mutamad Search

Site search in Arabic and English on the site's own database, with Arabic written one way however it is spelled.

{% hint style="info" %}
**Machine name:** `mutamad_search` · **Type:** Module · **In Mutamad:** Applied on every Mutamad site
{% endhint %}

Site search in Arabic and English, on the site's own database: nothing leaves the site. One project: a module and its recipe.

The module makes Search API understand Arabic. It writes alef forms, alef maqsura and yaa, taa marbuta and haa, hamza seats, diacritics, tatweel and Arabic-Indic digits one way in what is indexed and what is searched, and highlights the words found however they were spelled.

The recipe sets up Drupal CMS's search with words of two letters, results in the page's language and a filter by content type; pages kept out of search engines are kept out of it too.

<figure><img src="https://171036656-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FQSekKpxOCXC1q6G2NRy9%2Fuploads%2Fgit-blob-0d6554cd8f6aa347f4f44685db9495dc0264627d%2Fsearch-ar.jpg?alt=media" alt="Arabic search: a search spelled with haa finds the word spelled with taa marbuta, highlighted."><figcaption><p>Arabic search: a search spelled with haa finds the word spelled with taa marbuta, highlighted.</p></figcaption></figure>

## Requirements

* Drupal 11.4
* [Drupal CMS Search](https://www.drupal.org/project/drupal_cms_search)
* [Search API](https://www.drupal.org/project/search_api)

## Installation

Mutamad is in alpha. A site started from the [Mutamad project template](https://www.drupal.org/project/mutamad_project) is ready for it; on any other Drupal 11.4 site, allow alpha releases first:

```bash
composer config minimum-stability alpha
composer config prefer-stable true
```

```bash
composer require drupal/mutamad_search
drush recipe modules/contrib/mutamad_search/recipe
```

## Links

* [Project page on drupal.org](https://www.drupal.org/project/mutamad_search)
* [README](https://git.drupalcode.org/project/mutamad_search/-/blob/1.0.x/README.md): every setting, and why
* [Changelog](https://git.drupalcode.org/project/mutamad_search/-/blob/1.0.x/CHANGELOG.md)
* [Issue queue](https://www.drupal.org/project/issues/mutamad_search)
