开发者

How to access multi-valued dynamic fields with SolrNet?

开发者 https://www.devze.com 2023-01-23 14:48 出处:网络
How would you implement multi-valued dynamic fields with SolrNet? I know with dynamic fields I can set them up like:

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

精彩评论

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