コード例 #1
0
ファイル: SolrHelper.cs プロジェクト: wtf-boy/Framework
        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
ファイル: SolrHelper.cs プロジェクト: wtf-boy/Framework
 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));
 }