Dharmik Bhandari
Dharmik Bhandari

Reputation: 1702

How to remove whitespaces from field name in SolrNet 3.6?

We are working on ASP.NET MVC3 C# with SolrNet 3.6. We have used dynamic fields. There are whitespaces in dynamic fields names: e.g Filter_SIM Slots:Single SIM.

How can I remove whitespaces from dynamic field names? (Here Filter_SIM Slots)

Upvotes: 0

Views: 129

Answers (1)

Paige Cook
Paige Cook

Reputation: 22555

The whitespace in the field names is because the keys in your Dictionary Object that you have mapped to your dynamic field in your mapping class have spaces in them. If you scrub/parse the key values to remove the whitespaces, your dynamic fields should be corrected as well.

Upvotes: 2

Related Questions