public CustomWeight(CustomScoreQuery enclosingInstance, Searcher searcher) { InitBlock(enclosingInstance); this.similarity = Enclosing_Instance.GetSimilarity(searcher); this.subQueryWeight = Enclosing_Instance.subQuery.Weight(searcher); this.valSrcWeights = new Weight[Enclosing_Instance.valSrcQueries.Length]; for (int i = 0; i < Enclosing_Instance.valSrcQueries.Length; i++) { this.valSrcWeights[i] = Enclosing_Instance.valSrcQueries[i].CreateWeight(searcher); } this.qStrict = Enclosing_Instance.strict; }
public BoostingTermWeight(BoostingTermQuery enclosingInstance, BoostingTermQuery query, Searcher searcher) : base(enclosingInstance, query, searcher) { InitBlock(enclosingInstance); }
public override Weight CreateWeight(Searcher searcher) { return(new BoostingTermWeight(this, this, searcher)); }
public override Weight CreateWeight(Searcher searcher) { return new SpanWeight(this, searcher); }
public override Weight CreateWeight(Searcher searcher) { return new PayloadNearSpanWeight(this, this, searcher); }
public PayloadNearSpanWeight(PayloadNearQuery enclosingInstance, SpanQuery query, Searcher searcher):base(query, searcher) { InitBlock(enclosingInstance); }
public BoostingTermWeight(BoostingTermQuery enclosingInstance, BoostingTermQuery query, Searcher searcher):base(enclosingInstance, query, searcher) { InitBlock(enclosingInstance); }
public override Similarity GetSimilarity(Searcher searcher) { return(maskedQuery.GetSimilarity(searcher)); }
public override Similarity GetSimilarity(Searcher searcher) { return maskedQuery.GetSimilarity(searcher); }
public override Weight CreateWeight(Searcher searcher) { return maskedQuery.CreateWeight(searcher); }
public PayloadTermWeight(PayloadTermQuery enclosingInstance, PayloadTermQuery query, Searcher searcher) : base(query, searcher) { InitBlock(enclosingInstance); }
public PayloadTermWeight(PayloadTermQuery enclosingInstance, PayloadTermQuery query, Searcher searcher):base(query, searcher) { InitBlock(enclosingInstance); }
public override Weight CreateWeight(Searcher searcher) { return(new CustomWeight(this, searcher)); }
public PayloadNearSpanWeight(PayloadNearQuery enclosingInstance, SpanQuery query, Searcher searcher) : base(query, searcher) { InitBlock(enclosingInstance); }
public override Weight CreateWeight(Searcher searcher) { return new BoostingTermWeight(this, this, searcher); }
public override Weight CreateWeight(Searcher searcher) { return(new PayloadNearSpanWeight(this, this, searcher)); }
public override Weight CreateWeight(Searcher searcher) { return(maskedQuery.CreateWeight(searcher)); }