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 float idf  
      protected org.apache.lucene.search.Explanation idfExp  
      protected boolean needsScores  
      protected org.apache.lucene.search.Query query  
      protected float queryNorm  
      protected float queryWeight  
      protected org.apache.solr.search.SolrIndexSearcher searcher  
      protected org.apache.lucene.search.similarities.TFIDFSimilarity similarity  
      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, String authTermName, String authTermText)  
    • Field Detail

      • query

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

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

        protected org.apache.lucene.search.similarities.TFIDFSimilarity similarity
      • value

        protected float value
      • idf

        protected float idf
      • queryNorm

        protected float queryNorm
      • queryWeight

        protected float queryWeight
      • idfExp

        protected org.apache.lucene.search.Explanation idfExp
      • needsScores

        protected boolean needsScores
    • Constructor Detail

      • AbstractAuthorityQueryWeight

        public AbstractAuthorityQueryWeight​(org.apache.solr.search.SolrIndexSearcher searcher,
                                            boolean needsScores,
                                            org.apache.lucene.search.Query query,
                                            String authTermName,
                                            String authTermText)
                                     throws IOException
        Throws:
        IOException
    • Method Detail

      • explain

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

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

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