Question

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.

Was it helpful?

Solution

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

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top