Optimizing Lucene performance
问题 What are the various ways of optimizing Lucene performance? Shall I use caching API to store my lucene search query so that I save on the overhead of building the query again? 回答1: Have you looked at Lucene Optimization Tip: Reuse Searcher Advanced Text Indexing with Lucene Should an index be optimised after incremental indexes in Lucene? 回答2: Quick tips: Keep the size of the index small. Eliminate norms, Term vectors when not needed. Set Store flag for a field only if it a must. Obvious, but