Class SolrCachingPathWeight


  • public class SolrCachingPathWeight
    extends org.apache.lucene.search.Weight
    Weight implementation for the SolrCachingPathQuery.
    Author:
    Matt Ward
    • Nested Class Summary

      • Nested classes/interfaces inherited from class org.apache.lucene.search.Weight

        org.apache.lucene.search.Weight.DefaultBulkScorer
    • Field Summary

      • Fields inherited from class org.apache.lucene.search.Weight

        parentQuery
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.apache.lucene.search.Explanation explain​(org.apache.lucene.index.LeafReaderContext context, int doc)  
      void extractTerms​(java.util.Set<org.apache.lucene.index.Term> terms)  
      float getValueForNormalization()  
      void normalize​(float norm, float topLevelBoost)  
      org.apache.lucene.search.Scorer scorer​(org.apache.lucene.index.LeafReaderContext context)  
      • Methods inherited from class org.apache.lucene.search.Weight

        bulkScorer, getQuery, scorerSupplier
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SolrCachingPathWeight

        public SolrCachingPathWeight​(SolrCachingPathQuery cachingPathQuery,
                                     org.apache.solr.search.SolrIndexSearcher searcher)
                              throws java.io.IOException
        Throws:
        java.io.IOException
    • Method Detail

      • explain

        public org.apache.lucene.search.Explanation explain​(org.apache.lucene.index.LeafReaderContext context,
                                                            int doc)
                                                     throws java.io.IOException
        Specified by:
        explain in class org.apache.lucene.search.Weight
        Throws:
        java.io.IOException
      • getValueForNormalization

        public float getValueForNormalization()
                                       throws java.io.IOException
        Specified by:
        getValueForNormalization in class org.apache.lucene.search.Weight
        Throws:
        java.io.IOException
      • normalize

        public void normalize​(float norm,
                              float topLevelBoost)
        Specified by:
        normalize in class org.apache.lucene.search.Weight
      • scorer

        public org.apache.lucene.search.Scorer scorer​(org.apache.lucene.index.LeafReaderContext context)
                                               throws java.io.IOException
        Specified by:
        scorer in class org.apache.lucene.search.Weight
        Throws:
        java.io.IOException
      • extractTerms

        public void extractTerms​(java.util.Set<org.apache.lucene.index.Term> terms)
        Specified by:
        extractTerms in class org.apache.lucene.search.Weight