# Поиск

Т.к. в шаблоне используются свои драйвера для поиска, после установки нужно изменить конфиг **`/modules/search/config/config.php`** более подробно о конфигурационных файлах [тут](https://www.hostcms.ru/documentation/modules/search/config/)

Поиск реализован таким способом, что ищет фразу блоками и выводи на странице поиска отдельно

* Производители
* Группы и Сео-фильтры
* Товары

<div data-full-width="true"><figure><img src="/files/QzC5EymNDwEBmEiMpVPw" alt=""><figcaption></figcaption></figure></div>

так же возможна сортировка результатов поиска по наличию

* **markethostcms** - стандартный драйвер для поиска HostCMS
* **marketsphinx** - драйвер поиска через [Sphinx](http://www.sphinxsearch.com/) (если установлен) подробнее [тут](https://www.hostcms.ru/documentation/modules/search/sphinx/)

{% code lineNumbers="true" fullWidth="true" %}

```php
<?php

return array (
	'default' => array(
		'driver' => 'markethostcms',
	),
	'markethostcms' => array(
		'driver' => 'markethostcms',
	),
	'marketsphinx' => array(
		'driver' => 'marketsphinx',
		'database' => 'sphinx',
        	'index' => 'hostcms'
	),
	'modules' => array(
		0 => 'Structure',
		1 => 'Informationsystem',
		2 => 'Forum',
		3 => 'Shop',
		4 => 'Helpdesk',
		5 => 'Siteuser',
		6 => 'Document',
		7 => 'Xsl',
		8 => 'Tpl',
		9 => 'Lib',
	)
);
```

{% endcode %}


---

# 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://support.morozovpimnev.ru/market/poisk.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.
