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 只牽這只狗 閱讀(336) 評論(0)  編輯  收藏 所屬分類: Search

          只有注冊用戶登錄后才能發表評論。


          網站導航:
           
          主站蜘蛛池模板: 余江县| 金溪县| 子洲县| 汝州市| 长武县| 黄山市| 静宁县| 合肥市| 区。| 塔河县| 曲阜市| 犍为县| 五常市| 合肥市| 盘山县| 沙河市| 沭阳县| 芜湖市| 铁岭县| 新平| 柏乡县| 隆德县| 天全县| 靖安县| 外汇| 庆城县| 仙桃市| 浦县| 鹤峰县| 孝义市| 延津县| 凤阳县| 道孚县| 高阳县| 青神县| 石林| 福海县| 浑源县| 广元市| 子长县| 隆德县|