/// <summary>
        /// Create a boost parameter
        /// </summary>
        /// <param name="documentSearch">Document search engine</param>
        /// <param name="conditional">Conditional to add parameter</param>
        /// <param name="query">Query used to make boost</param>
        /// <param name="instance">Instance of boost ready to configure</param>
        /// <returns>Document search engine</returns>
        public static DocumentSearch <TDocument> BoostIf <TDocument>(this DocumentSearch <TDocument> documentSearch, Func <bool> conditional, Action <SearchQuery <TDocument> > query, Action <IBoostParameter <TDocument> > instance = null)
            where TDocument : Document
        {
            Checker.IsNull(conditional);

            if (conditional.Invoke())
            {
                documentSearch.Boost(query, instance);
            }

            return(documentSearch);
        }