lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Hostetter <>
Subject Re: UUIDUpdateProcessorFactory causes repeated documents when uploading csv files?
Date Thu, 08 Jan 2015 01:47:08 GMT

: It's a single Solr Instance, and in my files, I used 'doc_key' everywhere,
: but I changed it to "id" in the email I sent out wanting to make it easier
: to read, sorry don't mean to confuse you :)

- what version of solr?
- how exactly are you doing the update? curl? post.jar?
- what exactly is the HTTP response from your update?
- what does your log file show during the update?
- what exactly do all of your configs look like (you said you made a 
mistake in your email by trying to make the data "easier to read" that 
could easily be masking some other mistake in your actual cnfigs

I did my best to try and reproduce what you describe, but i had no 
luck -- here's exactly what i did...

hossman@frisbee:~/lucene/lucene-4.10.3_tag$ svn diff
Index: solr/example/solr/collection1/conf/solrconfig.xml
--- solr/example/solr/collection1/conf/solrconfig.xml	(revision 1650199)
+++ solr/example/solr/collection1/conf/solrconfig.xml	(working copy)
@@ -1076,7 +1076,17 @@
          <str name="update.chain">dedupe</str>
+    <lst name="defaults">
+      <str name="update.chain">autoGenId</str>
+    </lst>
+  <updateRequestProcessorChain name="autoGenId">
+    <processor class="solr.UUIDUpdateProcessorFactory">
+      <str name="fieldName">id</str>
+    </processor>
+    <processor class="solr.LogUpdateProcessorFactory" />
+    <processor class="solr.RunUpdateProcessorFactory" />
+  </updateRequestProcessorChain>
   <!-- The following are implicitly added
   <requestHandler name="/update/json" class="solr.UpdateRequestHandler">
hossman@frisbee:~/lucene/lucene-4.10.3_tag$ curl -X POST 'http://localhost:8983/solr/collection1/update?commit=true'
-H "Content-Type: application/csv" --data-binary 'foo_s,bar_s
<?xml version="1.0" encoding="UTF-8"?>
<lst name="responseHeader"><int name="status">0</int><int 
hossman@frisbee:~/lucene/lucene-4.10.3_tag$ curl 'http://localhost:8983/solr/collection1/select?q=*:*&wt=json&indent=true'


View raw message