Class AbstractAuthorityQueryWeight


  • public abstract class AbstractAuthorityQueryWeight
    extends org.apache.lucene.search.Weight
    Abstract Weight implementation for authority related queries.
    See Also:
    AbstractAuthoritySetQuery
    • Nested Class Summary

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

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

      Fields 
      Modifier and Type Field Description
      protected boolean needsScores  
      protected org.apache.lucene.search.Query query  
      protected org.apache.solr.search.SolrIndexSearcher searcher  
      protected float value  
      • Fields inherited from class org.apache.lucene.search.Weight

        parentQuery
    • Constructor Summary

      Constructors 
      Constructor Description
      AbstractAuthorityQueryWeight​(org.apache.solr.search.SolrIndexSearcher searcher, boolean needsScores, org.apache.lucene.search.Query query, java.lang.String authTermName, java.lang.String authTermText)  
    • 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)  
      float getValueForNormalization()  
      void normalize​(float queryNorm, float topLevelBoost)  
      protected float sumOfSquaredWeights()  
      • Methods inherited from class org.apache.lucene.search.Weight

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

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

      • query

        protected org.apache.lucene.search.Query query
      • searcher

        protected org.apache.solr.search.SolrIndexSearcher searcher
      • value

        protected float value
      • needsScores

        protected boolean needsScores
    • Constructor Detail

      • AbstractAuthorityQueryWeight

        public AbstractAuthorityQueryWeight​(org.apache.solr.search.SolrIndexSearcher searcher,
                                            boolean needsScores,
                                            org.apache.lucene.search.Query query,
                                            java.lang.String authTermName,
                                            java.lang.String authTermText)
                                     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)
        Specified by:
        explain in class org.apache.lucene.search.Weight
      • getValueForNormalization

        public float getValueForNormalization()
        Specified by:
        getValueForNormalization in class org.apache.lucene.search.Weight
      • normalize

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

        protected float sumOfSquaredWeights()