java -jar example\exampledocs\post.jar -h

Or form Admin UI "Documents" screen

http://localhost:8983/solr/#/my_core/documents
Change to XML and paste <delete><query>*:*</query></delete> into the box

Jan


> 20. mar. 2023 kl. 14:57 skrev s...@cid.is:
> 
> Hi all,
> 
> I have to run a Solr project on a Windows 10 PC.
> Everything went fine.
> But now I have to delete an existing index, and neither the *ix command nor 
> some "googled" Windows commands work.
> 
> This works fine on *ix:
> 
> curl 'http://localhost:8983/solr/my_core/update?commit=true' -d 
> '<delete><query>*:*</query></delete>'
> 
> These 2 do not work on Windows:
> 
> 1) C:\solr-9.1.1> java -Dc=my_core -Drecursive=yes -Dauto -jar 
> example\exampledocs\post.jar '<delete><query>*:*</query></delete>'
> 
> SimplePostTool version 5.0.0
> Posting files to [base] url http://localhost:8983/solr/core_qst_2023/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=999, delay=0s
> SimplePostTool: WARNING: No files or directories matching 
> <delete><query>*:*<\query><\delete>
> 0 files indexed.
> COMMITting Solr index changes to 
> http://localhost:8983/solr/core_qst_2023/update...
> Time spent: 0:00:00.497
> 
> 2) PS C:\solr-9.1.1> java -Dc=my_core bin\post 
> '<delete><query>*:*</query></delete>'
> 
> Error: Main Class bin\post could not be found or loaded (my translation from 
> german)
> Reason: java.lang.ClassNotFoundException: bin\post
> 
> Any idea on this?
> Is there an *actual* manual / tutorial for Solr on Windows?
> 
> Thanks
> Walter Claassen
> 

Reply via email to