面對慢搜索性能使用Lucene.Net(+ NHibernate.Search但沒關係)。慢Lucene.Net搜索性能
盧克工具箱概述:
- 若干領域:33
- 號文件:5607
- 條款編號:101377
- 有缺失?/Optimized ?:是(97478)/否
索引目錄是〜200Mb大。
查詢(使用org.apache.lucene.analysis.SimpleAnalyzer)
Title:lapsa~0.5 Abstract:lapsa~0.5 Content:lapsa~0.5 Location:lapsa~0.5 Author:lapsa~0.5
花費〜60000毫秒平均。
我懷疑我錯過了一些重要的東西。任何想法有什麼不對?不能這是正常的。
試圖'檢查'並'修復'它們。只好打勾Don't open IndexReader (when opening corrupted index)
,否則Check index tool
不想出現。檢查的
結果:
BAD: missingSegments
診斷輸出:
ERROR: could not read any segments file in directory java.io.FileNotFoundException: no segments* file found in [email protected]:\Temp\Index: files: at org.apache.lucene.index.SegmentInfos$FindSegmentsFile.run(SegmentInfos.java:655) at org.apache.lucene.index.SegmentInfos$FindSegmentsFile.run(SegmentInfos.java:538) at org.apache.lucene.index.SegmentInfos.read(SegmentInfos.java:306) at org.apache.lucene.index.CheckIndex.checkIndex(CheckIndex.java:340) at org.apache.lucene.index.CheckIndex.checkIndex(CheckIndex.java:319) at org.getopt.luke.Luke$6.run(Unknown Source)
試圖按Fix Index
。得到這個:
ERROR during Fix Index: java.lang.NullPointerException at org.apache.lucene.index.CheckIndex.fixIndex(CheckIndex.java:781) at org.getopt.luke.Luke$7.run(Unknown Source)
你試過優化嗎?它看起來像你有*很多待決刪除... – 2010-04-21 12:58:15
@codeka當我按'luke->工具 - >優化索引',它說'失敗:沒有索引或索引是關閉的。 「重新打開並沒有幫助 – 2010-04-21 12:59:45