问题描述
- 如何解决文本分类问题。
-
Usage: java org.apache.lucene.index.CheckIndex pathToIndex [-fix]-fix: actually write a new segments_N file, removing any problematic segments
WARNING: -fix should only be used on an emergency basis as it will cause
documents (perhaps many) to be permanently removed from the index. Always make
a backup copy of your index before running this! Do not run this tool on an index
that is actively being written to. You have been warned!Run without -fix, this tool will open the index, report version information
and report any exceptions it hits and what action it would take if -fix were
specified. With -fix, this tool will remove any segments that have issues and
write a new segments_N file. This means all documents contained in the affected
segments will be removed.This tool exits with exit code 1 if the index cannot be opened or has has any
corruption, else 0.运行项目时候,没有出现编译错误,但不能运行,而是弹出以上提示。
解决方案
没问题,就是你运行的时候要加上参数