开发者

How can I add an "ex" LocalParams to a Facet Field Query in SolrNet?

开发者 https://www.devze.com 2023-02-11 16:33 出处:网络
If I use a SolrFacetFieldQuery to build a facet query, I can\'t add the LocalParams in the constructor because when it parses the other facet parameters such as Limit and开发者_运维技巧 Sort, it will

If I use a SolrFacetFieldQuery to build a facet query, I can't add the LocalParams in the constructor because when it parses the other facet parameters such as Limit and开发者_运维技巧 Sort, it will add the LocalParams to the name of the field, which generates an invalid query for example:

var fq = new SolrFacetFieldQuery(new LocalParams{{"ex", "c"}} + "category") { Limit = 10 };

I would like to generate:

facet.field={!ex=c}category&facet.category.limit=10&fq={!tag=c}category:1


This was fixed a couple of weeks ago.

0

精彩评论

暂无评论...
验证码 换一张
取 消