try (IndexWriter writer = new IndexWriter(index, config)) { addDoc(writer, "Day second , part one : Lucence Projects.", "3437RJ1");
addDoc(writer, "Day
在第三行,我得到了异常,比如“IOException: read past eof”和“LookaheadSuccess: Error in the application.‘”。有什么方法可以避免这种情况吗?我讨厌每次执行搜索时的中断和按两次继续键var IndexSearcher=新的查询(目录,true);var parser =新的分析器"all",分析器);var
根据的说法,特殊的字符应该被逃脱:问题是,其中一些是搜索运算符:+-\\“。例如,引号可以是英寸:10英寸(10英寸)。string searchPhrase = banking -account // no need to escape because "-" is a search operator
string searchPhrase = "banking :-\