User Tools

Site Tools


solr

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
solr [2018/02/14 11:23] – [Basic Auth] adminsolr [2018/02/15 10:17] (current) admin
Line 5: Line 5:
 https://tecadmin.net/install-apache-solr-on-ubuntu/ https://tecadmin.net/install-apache-solr-on-ubuntu/
  
 +===== Useful commands =====
  
-===== Create User and set password =====+List of Commands: 
 + 
 +https://lucidworks.com/2015/08/17/securing-solr-basic-auth-permission-rules/ 
 + 
 +Indexing files using Tika: 
 + 
 +https://lucene.apache.org/solr/guide/6_6/uploading-data-with-solr-cell-using-apache-tika.html#UploadingDatawithSolrCellusingApacheTika-TryingoutTikawiththeSolrtechproductsExample 
 + 
 +==== Create User and set password ====
  
 <code bash> <code bash>
Line 12: Line 21:
 </code> </code>
  
-===== Delete User =====+==== Delete User ====
  
 <code bash> <code bash>
Line 18: Line 27:
  "delete-user": ["tom","harry"]}'  "delete-user": ["tom","harry"]}'
 </code> </code>
-===== Create Core =====+ 
 +==== Create Core ====
  
 <code bash> <code bash>
Line 24: Line 34:
 </code> </code>
  
 +==== Delete Core ====
 +
 +<code bash>
 +curl --user USERNAME -X GET http://localhost:8983/solr/admin/cores?wt=json&action=UNLOAD&core=MY_CORES_NAME -H "Content-Type: application/json"
 +</code>
 ====== Basic Auth ====== ====== Basic Auth ======
 +
 +<note>User **solr** – Password: **SolrRocks**</note>
  
 Create file /var/solr/data/security.json and add the following content: Create file /var/solr/data/security.json and add the following content:
Line 33: Line 50:
     "blockUnknown":true,     "blockUnknown":true,
     "class":"solr.BasicAuthPlugin",     "class":"solr.BasicAuthPlugin",
-    "credentials":{"solr":"DAM_SECRET_HASH_THING"},+    "credentials":{"solr":"IV0EHq1OnNrj6gvRCwvFwTrZ1+z1oBbnQdiVC3otuq0= Ndd7LKvVBAaZIF0QAVi1ekCfAJXr1GGfLtRUXhgrF8c="},
     "":{"v":0}},     "":{"v":0}},
   "authorization":{   "authorization":{
solr.1518603801.txt.gz · Last modified: 2018/02/14 11:23 by admin