Class AbstractAuthorityQueryWeight

java.lang.Object
org.apache.lucene.search.Weight
org.alfresco.solr.query.AbstractAuthorityQueryWeight

public abstract class AbstractAuthorityQueryWeight extends org.apache.lucene.search.Weight
Abstract Weight implementation for authority related queries.
See Also:
  • 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
     
    protected org.apache.lucene.search.Query
     
    protected org.apache.solr.search.SolrIndexSearcher
     
    protected float
     

    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)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.apache.lucene.search.Explanation
    explain(org.apache.lucene.index.LeafReaderContext context, int doc)
     
    float
     
    void
    normalize(float queryNorm, float topLevelBoost)
     
    protected float
     

    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 Details

    • 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 Details

    • 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 Details

    • 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()