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)); }
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); }
public IDictionary <string, ICollection <string> > CreateDismax(string qf, string bf = "", DefTypeType defTypeType = DefTypeType.edismax) { return(SolrHelper.CreateDismax(qf, bf, defTypeType)); }