Re: Solr Admin Documents tab
On 5/17/2017 10:42 AM, Rick Leir wrote: > Chris, Shawn, > I am using 5.2.1 . Neither the array (Shawn) nor the document list (Chris) > works for me in the Admin panel. However, CSV works fine. > > Clearly we are long overdue for an upgrade. I checked the PDF reference guide for 5.2 and it looks like the curl examples are the same in that version of the reference guide as they are in the current guide. Maybe 5.2.1 has a bug. If so, it would need to be demonstrated in a current version. I found this bug, but it's OLD, and fixed clear back in 3.x: https://issues.apache.org/jira/browse/SOLR-2496 What exactly happens when you try the format I pointed you to and the format that Chris suggested? Are you getting an error? If so, seeing the full error message from the solr log might be helpful. Thanks, Shawn
Re: Solr Admin Documents tab
Chris, Shawn, I am using 5.2.1 . Neither the array (Shawn) nor the document list (Chris) works for me in the Admin panel. However, CSV works fine. Clearly we are long overdue for an upgrade. Cheers -- Rick On May 17, 2017 10:22:28 AM EDT, Shawn Heisey wrote: >On 5/16/2017 12:41 PM, Rick Leir wrote: >> In the Solr Admin Documents tab, with the document type set to JSON, >I cannot get it to accept more than one document. The legend says >"Document(s)". What syntax is expected? It rejects an array of >documents. Thanks -- Rick > >See the box labeled "Adding Multiple JSON Documents" on this page for >an >example of multiple JSON documents being added in one request: > >https://cwiki.apache.org/confluence/display/solr/Uploading+Data+with+Index+Handlers#UploadingDatawithIndexHandlers-Solr-StyleJSON > >The next section, labeled "Sending JSON Update Commands" shows how to >use the command-based syntax with multiple documents and commands. > >Thanks, >Shawn -- Sorry for being brief. Alternate email is rickleir at yahoo dot com
Re: Solr Admin Documents tab
On 5/16/2017 12:41 PM, Rick Leir wrote: > In the Solr Admin Documents tab, with the document type set to JSON, I cannot > get it to accept more than one document. The legend says "Document(s)". What > syntax is expected? It rejects an array of documents. Thanks -- Rick See the box labeled "Adding Multiple JSON Documents" on this page for an example of multiple JSON documents being added in one request: https://cwiki.apache.org/confluence/display/solr/Uploading+Data+with+Index+Handlers#UploadingDatawithIndexHandlers-Solr-StyleJSON The next section, labeled "Sending JSON Update Commands" shows how to use the command-based syntax with multiple documents and commands. Thanks, Shawn
Re: Solr Admin Documents tab
If you pass the array of documents without the opening and closing square brackets it should work with the page defaults (at least in v6.3.0) { "id":"1",...},{"id":"2",...},... instead of [{ "id":"1",...},{"id":"2",...},...] Best, Chris On Tue, May 16, 2017 at 2:42 PM Rick Leir wrote: > Hi all, > In the Solr Admin Documents tab, with the document type set to JSON, I > cannot get it to accept more than one document. The legend says > "Document(s)". What syntax is expected? It rejects an array of documents. > Thanks -- Rick > -- > Sorry for being brief. Alternate email is rickleir at yahoo dot com
Solr Admin Documents tab
Hi all, In the Solr Admin Documents tab, with the document type set to JSON, I cannot get it to accept more than one document. The legend says "Document(s)". What syntax is expected? It rejects an array of documents. Thanks -- Rick -- Sorry for being brief. Alternate email is rickleir at yahoo dot com