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 floatidfprotected org.apache.lucene.search.ExplanationidfExpprotected booleanneedsScoresprotected org.apache.lucene.search.Queryqueryprotected floatqueryNormprotected floatqueryWeightprotected org.apache.solr.search.SolrIndexSearchersearcherprotected org.apache.lucene.search.similarities.TFIDFSimilaritysimilarityprotected floatvalue
-
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
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()
-
-
-
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:
explainin classorg.apache.lucene.search.Weight- Throws:
IOException
-
getValueForNormalization
public float getValueForNormalization() throws IOException- Specified by:
getValueForNormalizationin classorg.apache.lucene.search.Weight- Throws:
IOException
-
normalize
public void normalize(float queryNorm, float topLevelBoost)- Specified by:
normalizein classorg.apache.lucene.search.Weight
-
sumOfSquaredWeights
protected float sumOfSquaredWeights() throws IOException- Throws:
IOException
-
-