Class QueryProfilerIndexSearcher


  • public class QueryProfilerIndexSearcher
    extends IndexSearcher
    An extension of IndexSearcher that records profile information for all queries it executes.
    • Constructor Detail

      • QueryProfilerIndexSearcher

        public QueryProfilerIndexSearcher​(IndexReader reader)
    • Method Detail

      • rewrite

        public Query rewrite​(Query original)
                      throws java.io.IOException
        Description copied from class: IndexSearcher
        Expert: called to re-write queries into primitive queries.
        Overrides:
        rewrite in class IndexSearcher
        Throws:
        java.io.IOException
      • createWeight

        public Weight createWeight​(Query query,
                                   ScoreMode scoreMode,
                                   float boost)
                            throws java.io.IOException
        Description copied from class: IndexSearcher
        Creates a Weight for the given query, potentially adding caching if possible and configured.
        Overrides:
        createWeight in class IndexSearcher
        Throws:
        java.io.IOException
      • getRewriteTime

        public long getRewriteTime()
        Returns:
        total time taken to rewrite all queries in this profile
      • getProfileResult

        public java.util.List<QueryProfilerResult> getProfileResult()
        Returns:
        a hierarchical representation of the profiled tree