Example #1
0
        public override Query Rewrite(IndexReader reader)
        {
            BooleanQuery result = new BooleanQueryAnonymousInnerClassHelper(this);

            result.Add(match, Occur.MUST);
            result.Add(context, Occur.SHOULD);
            return(result);
        }
Example #2
0
 public BooleanWeightAnonymousInnerClassHelper(BooleanQueryAnonymousInnerClassHelper outerInstance, IndexSearcher searcher)
     : base(outerInstance, searcher, false)
 {
     this.outerInstance = outerInstance;
 }
Example #3
0
 public BooleanWeightAnonymousInnerClassHelper(BooleanQueryAnonymousInnerClassHelper outerInstance, IndexSearcher searcher)
     : base(outerInstance, searcher, false)
 {
     this.outerInstance = outerInstance;
 }
Example #4
0
 public override Query Rewrite(IndexReader reader)
 {
     BooleanQuery result = new BooleanQueryAnonymousInnerClassHelper(this);
     result.Add(match, BooleanClause.Occur.MUST);
     result.Add(context, BooleanClause.Occur.SHOULD);
     return result;
 }