문제

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 multivalued 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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top