public abstract class AbstractAuthorityQueryWeight
extends org.apache.lucene.search.Weight
Weight implementation for authority related queries.AbstractAuthoritySetQuery| Modifier and Type | Field and Description |
|---|---|
protected float |
idf |
protected org.apache.lucene.search.Explanation |
idfExp |
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 |
| Constructor and Description |
|---|
AbstractAuthorityQueryWeight(org.apache.solr.search.SolrIndexSearcher searcher,
org.apache.lucene.search.Query query,
String authTermName,
String authTermText) |
| Modifier and Type | Method and Description |
|---|---|
org.apache.lucene.search.Explanation |
explain(org.apache.lucene.index.AtomicReaderContext context,
int doc) |
org.apache.lucene.search.Query |
getQuery() |
float |
getValueForNormalization() |
void |
normalize(float queryNorm,
float topLevelBoost) |
protected float |
sumOfSquaredWeights() |
protected org.apache.lucene.search.Query query
protected org.apache.solr.search.SolrIndexSearcher searcher
protected org.apache.lucene.search.similarities.TFIDFSimilarity similarity
protected float value
protected float idf
protected float queryNorm
protected float queryWeight
protected org.apache.lucene.search.Explanation idfExp
public AbstractAuthorityQueryWeight(org.apache.solr.search.SolrIndexSearcher searcher,
org.apache.lucene.search.Query query,
String authTermName,
String authTermText)
throws IOException
IOExceptionpublic org.apache.lucene.search.Query getQuery()
getQuery in class org.apache.lucene.search.Weightpublic org.apache.lucene.search.Explanation explain(org.apache.lucene.index.AtomicReaderContext context,
int doc)
throws IOException
explain in class org.apache.lucene.search.WeightIOExceptionpublic float getValueForNormalization()
throws IOException
getValueForNormalization in class org.apache.lucene.search.WeightIOExceptionpublic void normalize(float queryNorm,
float topLevelBoost)
normalize in class org.apache.lucene.search.Weightprotected float sumOfSquaredWeights()
throws IOException
IOExceptionCopyright © 2005–2017 Alfresco Software. All rights reserved.