# Search Widget

It is possible to add the search to your sites sidebar (or any widgetized area). If you open up the **Widgets** submenu under the **Appearance menu**, you should see three new widgets available.

* Ajax Search Pro
* Ajax Search Pro last searches
* Ajax Search Pro top searches

You can drag-drop each of these boxes to any available widgetized area.

![](http://i.imgur.com/l5Xs9HS.png)

## Ajax Search Pro widget

Simply displays the selected search box.

![](http://i.imgur.com/TdqsUMm.png)

## Ajax Search Pro last and top searches

Will display the latest (or top) search terms in a box from the search statistics database. Please note, that this widget requires the **Search Statistics** to be enabled (disabled by default).

Search statistics can be enabled on the **Search statistics submenu** under the Ajax Search Pro menu item.

### Parameters

Source (Select the search form) - The source of the keywords. Select a search box, or all.

Action on click - What to do when the user clicks on one of the words displayed by the widget.

Number - the number of keywords to show

Delimiter - the delimiter between each word

![](http://i.imgur.com/PY6gVIU.png)


---

# 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://documentation.ajaxsearchpro.com/getting-started/search-widget.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.
