Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试使用这个库(看起来非常好),但我很难理解如何为我的查询添加额外的参数,例如提升函数等。这怎么做?
您可以使用 QueryOptions 的 ExtraParams 属性将任何参数添加到 Solr 查询字符串。例子:
ISolrOperations<Document> solr = ... var results = solr.Query("myquery", new QueryOptions { ExtraParams = new Dictionary<string, string> { {"bf", "recip(rord(myfield),1,2,3)^1.5"} } });