// search/request/sort.asciidoc:134

[source, php]
----
$params = [
    'index' => 'index_long',
    'body' => [
        'mappings' => [
            'properties' => [
                'field' => [
                    'type' => 'long',
                ],
            ],
        ],
    ],
];
$response = $client->indices()->create($params);
----
