Package org.alfresco.solr.query
Class SolrContainerScorer
- java.lang.Object
-
- org.apache.lucene.search.Scorer
-
- org.alfresco.solr.query.SolrContainerScorer
-
public class SolrContainerScorer extends org.apache.lucene.search.ScorerThe scorer for structured field queries. A document either matches or it does not, there for the frequency is reported as 0.0f or 1.0.- Author:
- andyh
-
-
Constructor Summary
Constructors Constructor Description SolrContainerScorer(org.apache.lucene.search.Weight weight, org.apache.lucene.index.PostingsEnum root, StructuredFieldPosition[] positions)The arguments here follow the same pattern as used by the PhraseQuery.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intdocID()intfreq()org.apache.lucene.search.DocIdSetIteratoriterator()floatscore()
-
-
-
Constructor Detail
-
SolrContainerScorer
public SolrContainerScorer(org.apache.lucene.search.Weight weight, org.apache.lucene.index.PostingsEnum root, StructuredFieldPosition[] positions)The arguments here follow the same pattern as used by the PhraseQuery. (It has the same unused arguments)- Parameters:
weight- - curently unsuedroot- - the term positions for documents with multiple entries - this may be null, or contain no matches - it specifies those things that appear under multiple categories etc.positions- - the structured field positions - where terms should appear
-
-
Method Detail
-
score
public float score() throws java.io.IOException- Specified by:
scorein classorg.apache.lucene.search.Scorer- Throws:
java.io.IOException
-
freq
public int freq() throws java.io.IOException- Specified by:
freqin classorg.apache.lucene.search.Scorer- Throws:
java.io.IOException
-
docID
public int docID()
- Specified by:
docIDin classorg.apache.lucene.search.Scorer
-
iterator
public org.apache.lucene.search.DocIdSetIterator iterator()
- Specified by:
iteratorin classorg.apache.lucene.search.Scorer
-
-