コード例 #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);
 }
コード例 #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;
 }
コード例 #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;
            }
コード例 #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);
        }
コード例 #5
0
 internal MVInOrderScorer(TermsIncludingScoreQuery outerInstance, Weight weight, IBits acceptDocs,
                          TermsEnum termsEnum, int maxDoc, long cost)
     : base(outerInstance, weight, acceptDocs, termsEnum, maxDoc, cost)
 {
 }
コード例 #6
0
 public WeightAnonymousClass(TermsIncludingScoreQuery outerInstance, Weight originalWeight)
 {
     this.outerInstance  = outerInstance;
     this.originalWeight = originalWeight;
 }