In my Solr schema.xml, I have an integer field and text\_general field

```
<field name="popularity" type="int" indexed="true" stored="true" />
<field name="priority" type="text_general" indexed="true" stored="true" />

```

When I try to index following data onto Solr, I get "400" Status: Bad Request

```
    <add>
        <doc>
            <field name="popularity"></field>
            <field name="id">id_001</field>
            <field name="priority">10</field>
        </doc>
    </add>

```

While it works well when I index following data:

```
    <add>
        <doc>
            <field name="popularity">5</field>
            <field name="id">id_002</field>
            <field name="priority"></field>
        </doc>
    </add>

```

So does that mean integer field can not be empty, while text\_general can be?

I am using SolrPHPClient to index data. <http://code.google.com/p/solr-php-client/>