public class ContainerScorer
extends org.apache.lucene.search.Scorer
| Constructor and Description |
|---|
ContainerScorer(org.apache.lucene.search.Weight weight,
org.apache.lucene.index.TermPositions root,
StructuredFieldPosition[] positions,
org.apache.lucene.index.TermPositions containers,
org.apache.lucene.search.Similarity similarity,
byte[] norms)
The arguments here follow the same pattern as used by the PhraseQuery.
|
public ContainerScorer(org.apache.lucene.search.Weight weight,
org.apache.lucene.index.TermPositions root,
StructuredFieldPosition[] positions,
org.apache.lucene.index.TermPositions containers,
org.apache.lucene.search.Similarity similarity,
byte[] norms)
weight - -
curently unsuedtps - -
the term positions for the terms we are trying to findroot - -
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 appearsimilarity - -
used in the abstract scorer implementationnorms - -
unusedpublic boolean next()
throws java.io.IOException
next in class org.apache.lucene.search.DocIdSetIteratorjava.io.IOExceptionpublic int doc()
doc in class org.apache.lucene.search.DocIdSetIteratorpublic float score()
throws java.io.IOException
score in class org.apache.lucene.search.Scorerjava.io.IOExceptionpublic boolean skipTo(int target)
throws java.io.IOException
skipTo in class org.apache.lucene.search.DocIdSetIteratorjava.io.IOExceptionpublic org.apache.lucene.search.Explanation explain(int doc)
throws java.io.IOException
explain in class org.apache.lucene.search.Scorerjava.io.IOExceptionCopyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.