> XML update. I'm serializing the doc > in .NET, and then using solsharp to > insert/update the doc to SOLR. > > The result is: > > <doc> > <str name="fieldX"/> > </doc> > > Dows this means I'm adding a whitespace on XML Update?
Yes exactly. You can remove <field name="fieldX"> </field> from your <add> <doc> ... </doc> </add> if value of fieldX.trim() is equal to "" when preparing your xml.