> ## Documentation Index
> Fetch the complete documentation index at: https://doc.lucidworks.com/llms.txt
> Use this file to discover all available pages before exploring further.

# search:results-per-page

[localhost link]: http://localhost:3000/docs/5/app-studio/reference/tags/lightning.directive.searchResultsPerPage

[mintlify link]: https://doc.lucidworks.com/docs/5/app-studio/reference/tags/lightning.directive.searchResultsPerPage

[old doc.lw link]: https://doc.lucidworks.com/app-studio/4.2/1091.md

> [card] Key questions to get you started
>
> Powered by Lucidworks Agent Studio

## Description

The Results Per Page Directive allows you to change the number of
documents that are returned from the platform. The results per page tag
should be wrapped in a [Layout Controls Tag](https://doc.lucidworks.com/docs/4/app-studio/reference/tags/lightning.directive.layoutControls.md).

## Usage

as element:

```xml wrap  theme={"dark"}
<search:results-per-page
       response="{object}"
       [title="{string}"]
       [options="{string}"]>
</search:results-per-page>
```

### Directive info

* This directive creates new scope.

#### Parameters

| Param | Type | Details |
| - | - | - |
| response | **object** | A response object |
| title  *(optional)* | **string** | The title to display before the result count options. |
| options  *(optional)* | **string** | Which options to provide the user. Should be a comma-separated list of integers. |

## Example

#### Source

```xml wrap  theme={"dark"}
<layout:controls>
  <search:results-per-page response="response" options="10,20,25,50"></search:results-per-page>
</layout:controls>
```

```js wrap  theme={"dark"}
angular.module('lightning')
.controller('ExampleController', ['$scope', function($scope) {
          $scope.response = {

          }
        }]);
```

#### Result

![Result](https://mintcdn.com/lucidworks/ENcE8K39c0iEpL8J/assets/images/app-studio/as-examples/tags/searchResultsPerPage.png?fit=max\&auto=format\&n=ENcE8K39c0iEpL8J\&q=85\&s=13c3bfd09e4c1368a187a86bcf01bc38)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.