Optimize API

This API is deprecated, please refer to the new RESTFul API instead.

http://{server_name}:9090/optimize

This API optimizes the index.

Parameters:

  • use (required): The name of the index.
  • login (optional): The login parameter. This becomes required once you create a user.
  • key (optional): The key parameter related to the login (api key). This becomes required once you create a user.

Examples

HTTP request:

http://localhost:9090/optimize?use=index1 

HTTP response:

<response>
    <entry key="Status">OK</entry>
</response>

Using PHP:

$index = new OssApi('http://localhost:9090', 'index1');
$result = $index -> optimize(‘index1’);

View/edit on GitHub


comments powered by Disqus