Пример #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);
        }
Пример #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);
 }
Пример #3
0
 public IDictionary <string, ICollection <string> > CreateSpatial(string sfield, float longitude, float latitude, float d)
 {
     return(SolrHelper.CreateSpatial(sfield, longitude, latitude, d));
 }
Пример #4
0
 public IDictionary <string, ICollection <string> > CreateGroup(string groupField, string groupSort, int groupLimit)
 {
     return(SolrHelper.CreateGroup(groupField, groupSort, groupLimit));
 }
Пример #5
0
 public IDictionary <string, ICollection <string> > CreateHL(string hlFields, string hlSimplePre = "<em class='highlight'>", string hlSimplePost = "</em>")
 {
     return(SolrHelper.CreateHL(hlFields, hlSimplePre, hlSimplePost));
 }
Пример #6
0
 public IDictionary <string, ICollection <string> > CreateDismax(string qf, string bf = "", DefTypeType defTypeType = DefTypeType.edismax)
 {
     return(SolrHelper.CreateDismax(qf, bf, defTypeType));
 }
Пример #7
0
 public ICollection <string> CreateCollection(params string[] values)
 {
     return(SolrHelper.CreateCollection(values));
 }
Пример #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));
 }