iNeo

  BlogJava :: 首页 :: 联系 :: 聚合  :: 管理
  30 Posts :: 8 Stories :: 2 Comments :: 0 Trackbacks
我的tomcat工程建在:d:\eclipse\workspace\luc,索引文件是d:\eclipse\workspace\luc\public\index,建立索引的时候路径为"luc\\public\\index",但在搜索的时候,我用
searcher = new IndexSearcher(“luc\\public\\index”);
报错了,因为lucene在FSDirectory里将我的路径给new File(file.getCanonicalPath());
但奇怪的是file.getCanonicalPath()出来路径不对呀
错误是
java.io.IOException: D:\eclipse\luc\public\index not a directory
应该是d:\eclipse\workspace\luc\public\index 才对的
郁闷很久了,现在还没办法解决!!!!!!!!!!!!!!!!!!!!!!!!!!
posted on 2006-08-03 09:12 只牵这只狗 阅读(317) 评论(0)  编辑  收藏 所属分类: Search

只有注册用户登录后才能发表评论。


网站导航: