public virtual object Clone()
{
try
{
return (Query)base.MemberwiseClone();
}
catch (Exception e)
{
throw new Exception("Clone not supported: " + e.Message);
}
}
private readonly Query match; // query to match #endregion Fields #region Constructors public BoostingQuery(Query match, Query context, float boost) { this.match = match; this.context = (Query) context.Clone(); // clone before boost this.boost = boost; this.context.Boost = 0.0f; // ignore context-only matches }