Search Tag ========== In this article: - `Introduction`_ - `Use in template`_ - `Paging integration`_ Introduction ------------ ImCMS support powerful and flex search engine that integrate with well-known Apache Solr. Each document in the system index in solr. Each content item on page indexing too: ImCMS provide searching by text content, document title, document alias, document menu description. Of course searching depends on current language, that user has already been selected. Use in template --------------- For using search in template all that needed are insert search-tag in the desired place. .. code-block:: jsp Some action with ${searchItem} here Available list of tag attributes: """"""""""""""""""""""""""""""""" +--------------------+--------------+--------------------------------------------------+ | Attribute | Type | Description | +====================+==============+==================================================+ | searchRequest | String | Optional property. Set request is searching in | +--------------------+--------------+--------------------------------------------------+ | skip | Integer | Optional property. It is describing how many | | | | items in result should be skipped | +--------------------+--------------+--------------------------------------------------+ | take | Integer | Optional property. It is describing how many | | | | items in result should be taken | +--------------------+--------------+--------------------------------------------------+ Example: """""""" .. code-block:: jsp <%@taglib prefix="imcms" uri="imcms" %> Template Paging integration ------------------ By default ``search`` tag provide paging. It is mean that ``pager`` tag can be inserted in to ``search`` tag body. (see also :doc:`Pager Tag ` section). For configure ``search`` tag to using paging look at example above. Example: """""""" .. code-block:: jsp