getState index

Returns the percent of fragmentation of the index as an XML document.


getState index [--OUTPUT_FILE=output_file][--PROPERTY_LIST=estimatedFragmentation]


getState index [-o output_file] [-l estimatedFragmentation]



Name of a file in which the exported XML document is stored. You can specify a simple file name, a relative path, or a fully qualified path. When executing on multiple instances, the getState command creates a separate file for each one and appends the host name and port number to the base name.


This example shows that the index has a current estimated fragmentation level of 52.98% and should be optimized:

SES>getState index
<?xml version="1.0" encoding="UTF-8"?>
<search:state productVersion="" xmlns:search="">