提交 928e4eea authored 作者: Thomas Mueller's avatar Thomas Mueller

The Lucene fulltext search did not work well when using special file systems…

The Lucene fulltext search did not work well when using special file systems such as split or nioMapped.
上级 38b2f3a7
...@@ -285,6 +285,11 @@ public class FullTextLucene extends FullText { ...@@ -285,6 +285,11 @@ public class FullTextLucene extends FullText {
if (path == null) { if (path == null) {
throw throwException("Fulltext search for in-memory databases is not supported."); throw throwException("Fulltext search for in-memory databases is not supported.");
} }
int index = path.lastIndexOf(':');
// position 1 means a windows drive letter is used, ignore that
if (index > 1) {
path = path.substring(index + 1);
}
rs.close(); rs.close();
return path; return path;
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论