Package org.alfresco.solr.query
Class AbstractAuthorityQueryWeight
- java.lang.Object
-
- org.apache.lucene.search.Weight
-
- org.alfresco.solr.query.AbstractAuthorityQueryWeight
-
public abstract class AbstractAuthorityQueryWeight extends org.apache.lucene.search.WeightAbstractWeightimplementation for authority related queries.- See Also:
AbstractAuthoritySetQuery
-
-
Field Summary
Fields Modifier and Type Field Description protected booleanneedsScoresprotected org.apache.lucene.search.Queryqueryprotected org.apache.solr.search.SolrIndexSearchersearcherprotected floatvalue
-
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.Explanationexplain(org.apache.lucene.index.LeafReaderContext context, int doc)floatgetValueForNormalization()voidnormalize(float queryNorm, float topLevelBoost)protected floatsumOfSquaredWeights()
-
-
-
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:
explainin classorg.apache.lucene.search.Weight
-
getValueForNormalization
public float getValueForNormalization()
- Specified by:
getValueForNormalizationin classorg.apache.lucene.search.Weight
-
normalize
public void normalize(float queryNorm, float topLevelBoost)- Specified by:
normalizein classorg.apache.lucene.search.Weight
-
sumOfSquaredWeights
protected float sumOfSquaredWeights()
-
-