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

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


          網站導航:
           
          主站蜘蛛池模板: 延安市| 东乡县| 合肥市| 千阳县| 惠东县| 郸城县| 新晃| 潢川县| 蓝田县| 翼城县| 磴口县| 沭阳县| 闻喜县| 化德县| 呼图壁县| 商水县| 太和县| 唐山市| 河间市| 崇礼县| 宁陕县| 博兴县| 万年县| 丹东市| 泾川县| 万宁市| 巴马| 延吉市| 宣威市| 鹤峰县| 昌吉市| 顺平县| 石门县| 揭西县| 镇巴县| 六盘水市| 凤山市| 闻喜县| 晋中市| 友谊县| 保德县|