Remove the specific corrupted index (segments_3 in the above example) from file system after taking a back up. Restart the appdev component using AMX Administrator.
The index will be located in the apaRepHome under repository/index. Here is an example - CONFIG_HOME\tibcohost\Admin-AMX BPM-AMX BPM Server\data_3.2.x\nodes\BPMNode\work\cf\246f4f1f-785f-4dce-834e-74d26794e4b0\work\apaRepHome
Please note the indexes can vary depending on the environment, please look into the exception and remove the corresponding index based on it. Here the corrupted segment is 3, so mostly the index folder to be searched would be _3.
example :-
CONFIG_HOME\tibcohost\Admin-AMX BPM-AMX BPM Server\data_3.2.x\nodes\BPMNode\work\cf\246f4f1f-785f-4dce-834e-74d26794e4b0\work\apaRepHome\repository\index\_3 > dir
_0.cfs
cache.inSegmentParents
segments_1
segments_2
segments_3
segments.gen
The deleted index folder (index\_3) will be rebuilt when starting the appdev component.
Note : Each segment is a fully independent index, which could be searched separately, for more details about lucene indexing refer here :-
https://lucene.apache.org/core/3_0_3/fileformats.html. The corrupted segments thrown in the exception sometimes will not be there or it will be returned in multiple folder, in such cases the parent index folder (/index) can be deleted. The index will get recreated on a restart.