Inheritance: Lucene.Net.Search.Query
Exemple #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);
 }
Exemple #2
0
 internal MVInnerScorer(TermsIncludingScoreQuery outerInstance, Weight weight, IBits acceptDocs,
                        TermsEnum termsEnum, int maxDoc, long cost)
     : base(outerInstance, weight, acceptDocs, termsEnum, cost)
 {
     this.outerInstance = outerInstance;
     alreadyEmittedDocs = new FixedBitSet(maxDoc);
 }
 internal SVInnerScorer(TermsIncludingScoreQuery outerInstance, Weight weight, Bits acceptDocs, TermsEnum termsEnum, long cost)
 {
     this.outerInstance = outerInstance;
     _acceptDocs        = acceptDocs;
     _termsEnum         = termsEnum;
     _cost = cost;
     _doc  = -1;
 }
Exemple #4
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;
 }
            internal SVInOrderScorer(TermsIncludingScoreQuery outerInstance, Weight weight, Bits acceptDocs,
                                     TermsEnum termsEnum, int maxDoc, long cost) : base(weight)
            {
                this.outerInstance = outerInstance;
                FixedBitSet matchingDocs = new FixedBitSet(maxDoc);

                scores = new float[maxDoc];
                FillDocsAndScores(matchingDocs, acceptDocs, termsEnum);
                matchingDocsIterator = matchingDocs.GetIterator();
                cost_Renamed         = cost;
            }
        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;
        }
Exemple #7
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);
        }
Exemple #8
0
 internal MVInOrderScorer(TermsIncludingScoreQuery outerInstance, Weight weight, IBits acceptDocs,
                          TermsEnum termsEnum, int maxDoc, long cost)
     : base(outerInstance, weight, acceptDocs, termsEnum, maxDoc, cost)
 {
 }
Exemple #9
0
 public WeightAnonymousInnerClassHelper(TermsIncludingScoreQuery outerInstance, Weight originalWeight)
 {
     this.outerInstance  = outerInstance;
     this.originalWeight = originalWeight;
 }
 protected bool Equals(TermsIncludingScoreQuery other)
 {
     return(base.Equals(other) && string.Equals(_field, other._field) &&
            Equals(_unwrittenOriginalQuery, other._unwrittenOriginalQuery));
 }
 public WeightAnonymousInnerClassHelper(TermsIncludingScoreQuery outerInstance, Weight originalWeight)
 {
     this.outerInstance = outerInstance;
     this.originalWeight = originalWeight;
 }
 internal SVInOrderScorer(TermsIncludingScoreQuery outerInstance, Weight weight, Bits acceptDocs,
     TermsEnum termsEnum, int maxDoc, long cost)
     : base(weight)
 {
     this.outerInstance = outerInstance;
     FixedBitSet matchingDocs = new FixedBitSet(maxDoc);
     scores = new float[maxDoc];
     FillDocsAndScores(matchingDocs, acceptDocs, termsEnum);
     matchingDocsIterator = matchingDocs.GetIterator();
     cost_Renamed = cost;
 }
 internal SVInnerScorer(TermsIncludingScoreQuery outerInstance, Weight weight, Bits acceptDocs, TermsEnum termsEnum, long cost)
 {
     this.outerInstance = outerInstance;
     _acceptDocs = acceptDocs;
     _termsEnum = termsEnum;
     _cost = cost;
     _doc = -1;
 }
 internal MVInOrderScorer(TermsIncludingScoreQuery outerInstance, Weight weight, Bits acceptDocs,
     TermsEnum termsEnum, int maxDoc, long cost)
     : base(outerInstance, weight, acceptDocs, termsEnum, maxDoc, cost)
 {
     this.outerInstance = outerInstance;
 }
 internal MVInnerScorer(TermsIncludingScoreQuery outerInstance, Weight weight, Bits acceptDocs,
     TermsEnum termsEnum, int maxDoc, long cost)
     : base(outerInstance, weight, acceptDocs, termsEnum, cost)
 {
     this.outerInstance = outerInstance;
     alreadyEmittedDocs = new FixedBitSet(maxDoc);
 }
 protected bool Equals(TermsIncludingScoreQuery other)
 {
     return base.Equals(other) && string.Equals(_field, other._field) &&
            Equals(_unwrittenOriginalQuery, other._unwrittenOriginalQuery);
 }