开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜