iNeo

            BlogJava :: 首頁 :: 聯(lián)系 :: 聚合  :: 管理
            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(“l(fā)uc\\public\\index”);
          報錯了,因?yàn)閘ucene在FSDirectory里將我的路徑給new File(file.getCanonicalPath());
          但奇怪的是file.getCanonicalPath()出來路徑不對呀
          錯誤是
          java.io.IOException: D:\eclipse\luc\public\index not a directory
          應(yīng)該是d:\eclipse\workspace\luc\public\index 才對的
          郁悶很久了,現(xiàn)在還沒辦法解決!!!!!!!!!!!!!!!!!!!!!!!!!!
          posted on 2006-08-03 09:12 只牽這只狗 閱讀(330) 評論(0)  編輯  收藏 所屬分類: Search

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


          網(wǎng)站導(dǎo)航:
           
          主站蜘蛛池模板: 兴安盟| 新密市| 乌鲁木齐市| 罗城| 巴东县| 尼勒克县| 彩票| 嘉义县| 延边| 维西| 呈贡县| 乐陵市| 敦化市| 漠河县| 区。| 吴旗县| 盱眙县| 马龙县| 定州市| 彭阳县| 敖汉旗| 鹤峰县| 元阳县| 阳泉市| 长垣县| 洛扎县| 会宁县| 平顶山市| 古浪县| 睢宁县| 莱州市| 博兴县| 郎溪县| 遂川县| 遂宁市| 土默特左旗| 乌兰察布市| 卓资县| 海南省| 盐亭县| 宣城市|