Пример #1
0
        /// <summary>
        /// Removes the facet information.
        /// </summary>
        /// <param name="facetName">Name of the facet.</param>
        public void RemoveFacetInfo(string facetName)
        {
            FacetInfo info = this.GetFacetInfo(facetName);

            if (info != null)
            {
                this.Facets.Remove(info);
            }
        }
Пример #2
0
        /// <summary>
        /// Adds a new facet value.
        /// </summary>
        /// <param name="facetName">Name of the facet.</param>
        /// <param name="value">The value.</param>
        /// <returns></returns>
        public QueryInfo Where(string facetName, FacetOperation operation, string value)
        {
            FacetInfo facet = this.GetFacetInfo(facetName);

            if (facet == null)
            {
                facet = new FacetInfo(facetName);
                this.Facets.Add(facet);
            }
            facet.Values.Add(new FacetValueInfo(operation, value));
            return(this);
        }