一直困擾于 indexSearcher 的重新 new ,query filter 的cache 沒了。
重讀solr ,發(fā)現(xiàn)非常好。也許我應(yīng)該考慮用 solr 了。Caching
- Configurable Query Result, Filter, and Document cache instances
- Pluggable Cache implementations
- Cache warming in background
- When a new searcher is opened, configurable searches are run against it in order to warm it up to avoid slow first hits. During warming, the current searcher handles live requests.
- Autowarming in background
- The most recently accessed items in the caches of the current searcher are re-populated in the new searcher, enabing high cache hit rates across index/searcher changes.
- Fast/small filter implementation
- User level caching with autowarming support
今天,我發(fā)現(xiàn),我可以用不同的方式實現(xiàn)cache ,也許在我的情況下比solr 的方式更好。
西津渡