Lucene と Compass を使用していますが、問題があります。
try {
CompassHits hits = compassQuery.hits();
for (CompassHit compassHit : hits) {
if (results.size() >= maxResults) {
Log.info(this, "Number of results exceeded %,d for query %s", maxResults, query);
break;
} else {
results.add((T) compassHit.getData());
}
}
}
順調にデータがcompassHit.getData());
100件ヒットしている場合再度検索を行うのですが、200件以上に変更する可能性はありますか?
編集:
wiki apache org から:
「すべてのヒットを反復処理すると、2 つの理由で時間がかかります。まず、Hits オブジェクトを返す search() メソッドは、100 を超えるヒットが必要な場合に内部で検索を再実行します」.
そして私の質問は、この値を「100」から「200」に変更する機会はありますか? しかし重要なのは、コンパスも生の Lucene も使用しないことです。