문제

I'm trying to use this library (which looks very nice) but I'm having difficulty understanding how to add extra params to my queries such as boost functions etc. How can this be done?

도움이 되었습니까?

해결책

You can use the ExtraParams property of QueryOptions to add any parameter to the Solr querystring. Example:

ISolrOperations<Document> solr = ...
var results = solr.Query("myquery", new QueryOptions {
  ExtraParams = new Dictionary<string, string> {
    {"bf", "recip(rord(myfield),1,2,3)^1.5"}
  }
});
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top