开发者

How to access multi-valued dynamic fields with SolrNet?

How would you implement multi-valued dynamic fields with SolrNet?

I know with dynamic fields I can set them up like:

[SolrField("price_")]
public IDictionary<string, decimal> Price { get; set; }

And multivalued fields like:

[SolrField("fieldname")]
public ICollection<string> MyField { get; set; }

(thanks to can i use copyfield or dynamicfield or multivalu开发者_运维问答ed field functionality in solrnet?)

So I tried:

[SolrField("fqe_")]
public IDictionary<string, ICollection<string>> EqParam { get; set; }

Which failed when I tried adding the document.

Any ideas?

Thanks.


It works on the latest master. I'm pretty sure it also works on 0.3.0b1 too. I highly recommend upgrading.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜