Exemplo n.º 1
0
        public static IDictionary <string, ICollection <string> > CreateDismax(string qf, string bf = "", DefTypeType defTypeType = DefTypeType.edismax)
        {
            IDictionary <string, ICollection <string> > options = new Dictionary <string, ICollection <string> >();

            return(options.AddDismax(qf, bf, defTypeType));
        }
Exemplo n.º 2
0
 public static IDictionary <string, ICollection <string> > AddDismax(this IDictionary <string, ICollection <string> > options, string qf, string bf = "", DefTypeType defTypeType = DefTypeType.edismax)
 {
     options.AddOptions("q.alt", new string[]
     {
         "*:*"
     });
     options.AddOptions("defType", new string[]
     {
         defTypeType.ToString()
     });
     options.AddOptions("qf", new string[]
     {
         qf
     });
     options.AddOptions("bf", new string[]
     {
         bf
     });
     if (defTypeType == DefTypeType.edismax)
     {
         options.AddOptions("stopwords", new string[]
         {
             "true"
         });
         options.AddOptions("lowercaseOperators", new string[]
         {
             "true"
         });
     }
     return(options);
 }
Exemplo n.º 3
0
 public IDictionary <string, ICollection <string> > CreateDismax(string qf, string bf = "", DefTypeType defTypeType = DefTypeType.edismax)
 {
     return(SolrHelper.CreateDismax(qf, bf, defTypeType));
 }