> For the complete documentation index, see [llms.txt](https://documentation.ajaxsearchpro.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://documentation.ajaxsearchpro.com/layout-settings/auto-populate-automatic-search-results-on-initial-page-load.md).

# Auto Populate - Automatic search results on initial page load

`Layout Options -> Search box Layout -> Auto Populate`

From version 4.8 (22. feb. 2016) the plugin supports automatic search results.

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

By default this options is disabled.

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

## Auto populate modes to choose from the list

* **Disabled** (default)
* **Enabled - Results for a search phrase** - You will be prompted to enter a search phrase you want to display the results for.
* **Enabled - Latest results** - Will display the latest results for an empty search phrase. The search configuration will not be ignored!

### Auto populate for an empty search phrase

This configuration will trigger the search with an empty search phrase, thus the results will be following the default [primary and secondary ordering](/general-settings/result-ordering.md).

![](/files/-LbbWMz6Xl5a9aCDf8oq)

## Results count

There is an additional field for results count, which is different from the non-automatic results count. It's useful if you want to display more or less results than the regular live search.

*Please keep this count **below 50**. A high results count can cause the browser to freeze or the ajax request to fail.*


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://documentation.ajaxsearchpro.com/layout-settings/auto-populate-automatic-search-results-on-initial-page-load.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
