Beispiel #1
0
 internal MVInnerScorer(TermsIncludingScoreQuery outerInstance, /* Weight weight, // LUCENENET: Never read */
                        IBits acceptDocs, TermsEnum termsEnum, int maxDoc /*, long cost // LUCENENET: Never read */)
     : base(outerInstance,                                      /*weight, // LUCENENET: Never read */
            acceptDocs, termsEnum /*, cost // LUCENENET: Never read */)
 {
     alreadyEmittedDocs = new FixedBitSet(maxDoc);
 }
Beispiel #2
0
 internal SVInnerScorer(TermsIncludingScoreQuery outerInstance, /* Weight weight, // LUCENENET: Never read */
                        IBits acceptDocs, TermsEnum termsEnum /*, long cost // LUCENENET: Never read */)
 {
     this.outerInstance = outerInstance;
     _acceptDocs        = acceptDocs;
     _termsEnum         = termsEnum;
     //_cost = cost; // LUCENENET: Never read
     _doc = -1;
 }
Beispiel #3
0
            internal SVInOrderScorer(TermsIncludingScoreQuery outerInstance, Weight weight, IBits acceptDocs,
                                     TermsEnum termsEnum, int maxDoc, long cost)
                : base(weight)
            {
                this.m_outerInstance = outerInstance;
                FixedBitSet matchingDocs = new FixedBitSet(maxDoc);

                scores = new float[maxDoc];
                FillDocsAndScores(matchingDocs, acceptDocs, termsEnum);
                matchingDocsIterator = matchingDocs.GetIterator();
                this.cost            = cost;
            }
Beispiel #4
0
        public override Query Rewrite(IndexReader reader)
        {
            Query originalQueryRewrite = _originalQuery.Rewrite(reader);

            if (originalQueryRewrite != _originalQuery)
            {
                Query rewritten = new TermsIncludingScoreQuery(_field, _multipleValuesPerDocument, _terms, _scores,
                                                               _ords, originalQueryRewrite, _originalQuery);
                rewritten.Boost = Boost;
                return(rewritten);
            }

            return(this);
        }
Beispiel #5
0
 internal MVInOrderScorer(TermsIncludingScoreQuery outerInstance, Weight weight, IBits acceptDocs,
                          TermsEnum termsEnum, int maxDoc, long cost)
     : base(outerInstance, weight, acceptDocs, termsEnum, maxDoc, cost)
 {
 }
Beispiel #6
0
 public WeightAnonymousClass(TermsIncludingScoreQuery outerInstance, Weight originalWeight)
 {
     this.outerInstance  = outerInstance;
     this.originalWeight = originalWeight;
 }