Hi Hoss,

> Did you perhaps forget to include RunUpdateProcessorFactory at the end?

What is that? ;-)
I had copied the config from http://wiki.apache.org/solr/UpdateRequestProcessor 
but removed the lines I thought I did not need. :-(

I've changed my configuration, and this is now WORKING (4.0-ALPHA):

        <updateRequestProcessorChain name="emptyFieldChain">
                <processor class="solr.RemoveBlankFieldUpdateProcessorFactory" 
/>
                <processor class="solr.LogUpdateProcessorFactory" />
                <processor class="solr.RunUpdateProcessorFactory" />
        </updateRequestProcessorChain>

        <requestHandler name="/dataimport" 
class="org.apache.solr.handler.dataimport.DataImportHandler">
                <lst name="defaults">
                        <str name="update.chain">emptyFieldChain</str>
                        <str name="config">data-config.xml</str>
                        <str name="clean">true</str>
                        <str name="commit">true</str>
                        <str name="optimize">true</str>
                </lst>
        </requestHandler>

LogUpdateProcessorFactory and RunUpdateProcessorFactory were missing. Once 
those are in place, DIH does commit and optimize and the documents are visible 
immediately to the WebGUI and the Searchers.

It would be nice to have those two factories mentioned as required (or when you 
would want them in the config) in the example solrconfig.xml and the wiki:
https://builds.apache.org/job/Solr-trunk/ws/checkout/solr/example/solr/collection1/conf/solrconfig.xml
and http://wiki.apache.org/solr/UpdateRequestProcessor

Javadoc of RunUpdateProcessorFactory doesn't tell me so much. I can have a look 
at the source and try to write something wise on the wiki about it. :-D

Thanks Hoss!
Chantal


I'm going to update the other thread with how to handle empty number fields 
with either 3.6.1 or 4.0
http://lucene.472066.n3.nabble.com/NumberFormatException-while-indexing-TextField-with-LengthFilter-and-then-copying-to-tfloat-td3996250.html
 

Reply via email to