Willdotwhite commented on PR #1634:
URL: https://github.com/apache/solr/pull/1634#issuecomment-1613595632

   > Would love someone to confirm on windows that `bin/solr.cmd post -url 
http://localhost:8983/gettingstarted/update c:\mysolr\example\films\films.json` 
works.
   
   Looks to be doing _something_ @epugh ! It looks like it successfully posts 
data into Solr, although I don't think it's in the same format as when I paste 
the data directly into the `/update` form on 
`http://localhost:8983/solr/#/gettingstarted/documents` - going to guess that's 
user error on my part:
   
   ```
   PS C:\Users\Will\Projects\solr\solr\packaging\build\dev\bin> .\solr.cmd post 
-url http://localhost:8983/solr/gettingstarted/update 
C:\Users\Will\Projects\solr\definitely-film-data.json
   Posting files to [base] url 
http://localhost:8983/solr/gettingstarted/update...
   Entering auto mode. File endings considered are 
xml,json,jsonl,csv,pdf,doc,docx,ppt,pptx,xls,xlsx,odt,odp,ods,ott,otp,ots,rtf,htm,html,txt,log
   Entering recursive mode, max depth=1, delay=0s
   POSTing file definitely-film-data.json (application/json) to [base]/json/docs
   1 files indexed.
   Time spent: 0:00:00.137
   ```
   
   (Note that the post URL contains `/solr/`, I assume that was omitted by 
mistake?)
   
   Also, adding `, post` to 
[here](https://github.com/apache/solr/pull/1634/files#diff-49c29c8f653341f48008c38f5f2cf970fa430cdca29181c819d7bdcfcc722980R345)
 needs doing in `bin/solr.cmd` as well; everything works as above, it's just 
missing the word 'post' in the usage text.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@solr.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@solr.apache.org
For additional commands, e-mail: issues-h...@solr.apache.org

Reply via email to