Bryan Bende wrote
> Ok so sounds like the incoming JSON is valid, a couple of more questions
> then...
> 
> What version of Solr are you using?

We are using Solr 5.2.1.


Bryan Bende wrote
> Can you insert the same JSON document outside of NiFi with success?
> 
> In one of the more recent versions (5.2 or 5.3 maybe), the Solr admin
> console added a page to the UI where you can insert documents:
> https://cwiki.apache.org/confluence/display/solr/Documents+Screen

I can confirm that I have successfully uploaded a document using the UI by
supplying only the necessary fields.


Bryan Bende wrote
> If you don't have that screen in the UI then maybe curl:
> https://cwiki.apache.org/confluence/display/solr/Uploading+Data+with+Index+Handlers
> 
> Example:
> curl -X POST -H 'Content-Type: application/json' '
> http://localhost:8983/solr/my_collection/update/json/docs' --data-binary '
> {
>   "id": "1",
>   "title": "Doc 1"
> }'

Using this:


Http Request wrote
> curl -X POST -H 'Content-Type: application/json'
> 'http://olscbr13ncm:8983/solr/cobra/update/json/docs' --data-binary
> '{"docid":"a1602677-fc7c-43ea-adba-c1ed945ede3d_1832","guid":"doj_civ_fraud_ws1_a1602677-fc7c-43ea-adba-c1ed945ede3d_1832"}'

I got this as a response


Http Response wrote
> {
>      "responseHeader":{
>           "status":400,
>           "QTime":6
>      },
>      "error":{
>           "msg":"Bad Request\n\n\n\nrequest:
> http://localhost.SlaveNode2:8983/solr/cobra_shard2_replica3/update?update.distrib=TOLEADER&distrib.from=http%3A%2F%2FlocalhostNCM%3A8983%2Fsolr%2Fcobra_shard2_replica2%2F&wt=javabin&version=2";,
>           "code":400
>      }
> }

Our collection in Solr is called cobra and it has 2 shards and 3 replicas.
The replica1 is on our NCM, replica2 on node1, and replica3 on node2



--
View this message in context: 
http://apache-nifi-developer-list.39713.n7.nabble.com/PutSolrContentStream-Doc-and-DocID-confusion-tp9400p9419.html
Sent from the Apache NiFi Developer List mailing list archive at Nabble.com.

Reply via email to