Example #1
0
        public static ICollection <string> CreateCollection(this string value)
        {
            ICollection <string> result;

            if (string.IsNullOrWhiteSpace(value))
            {
                result = new List <string>();
            }
            else
            {
                result = SolrHelper.CreateCollection(new string[]
                {
                    value
                });
            }
            return(result);
        }
Example #2
0
 public static IDictionary <string, ICollection <string> > AddOptions(this IDictionary <string, ICollection <string> > options, string key, params string[] values)
 {
     options.AddOptions(key, SolrHelper.CreateCollection(values));
     return(options);
 }
Example #3
0
 public IDictionary <string, ICollection <string> > CreateSpatial(string sfield, float longitude, float latitude, float d)
 {
     return(SolrHelper.CreateSpatial(sfield, longitude, latitude, d));
 }
Example #4
0
 public IDictionary <string, ICollection <string> > CreateGroup(string groupField, string groupSort, int groupLimit)
 {
     return(SolrHelper.CreateGroup(groupField, groupSort, groupLimit));
 }
Example #5
0
 public IDictionary <string, ICollection <string> > CreateHL(string hlFields, string hlSimplePre = "<em class='highlight'>", string hlSimplePost = "</em>")
 {
     return(SolrHelper.CreateHL(hlFields, hlSimplePre, hlSimplePost));
 }
Example #6
0
 public IDictionary <string, ICollection <string> > CreateDismax(string qf, string bf = "", DefTypeType defTypeType = DefTypeType.edismax)
 {
     return(SolrHelper.CreateDismax(qf, bf, defTypeType));
 }
Example #7
0
 public ICollection <string> CreateCollection(params string[] values)
 {
     return(SolrHelper.CreateCollection(values));
 }
Example #8
0
 public IDictionary <string, ICollection <string> > CreateCommon(string fl, string sort, int start, int rows, ICollection <string> fiterQuery = null)
 {
     return(SolrHelper.CreateCommon(fl, sort, start, rows, fiterQuery));
 }