I've analyzed my index application and checked the XML before executing the 
http request and the field it's empty:

<field name="fieldX" />

It should be empty on SOLR. 

Probably something in the way between my application (.NET) and the SOLR (Jetty 
on Ubuntu) adds the whitespace.

Anyway, I'll try to remove the field but, as I validate each doc to the SOLR 
schema, I must make some adjustments and stop validate the doc. 
I don't know if that will be acceptable...

Thanks for your help.


-----Original Message-----
From: Ahmet Arslan [mailto:iori...@yahoo.com] 
Sent: quinta-feira, 4 de Fevereiro de 2010 17:22
To: solr-user@lucene.apache.org
Subject: RE: query all filled field?

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


      

Reply via email to