From 155c99d78b372c328cbcbd0d2bd22e126b99f826 Mon Sep 17 00:00:00 2001 From: Mr Chen Date: Fri, 2 Aug 2019 17:28:44 +0800 Subject: [PATCH] =?UTF-8?q?solr=E5=9F=BA=E6=9C=ACok?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugins/solr/js/solr.js | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/plugins/solr/js/solr.js b/plugins/solr/js/solr.js index b9c7556df..9b4da09b4 100755 --- a/plugins/solr/js/solr.js +++ b/plugins/solr/js/solr.js @@ -59,7 +59,7 @@ function collectionManagement(){ con += ''+ '' + list[i]['name']+'' + '\ - 命令 \ + 命令 \ | 配置 \ | 删除 \ '; @@ -165,6 +165,20 @@ function confFileCollection(name, conf_file){ } +function cmdCollection(name){ + var cmd = '
'; + cmd += ''; + cmd += ''; + cmd += ''; + cmd += '
增量更新curl "http://127.0.0.1:8983/solr/'+name+'/dataimport?command=delta-import&wt=json&clean=false&commit=true"
权限更新curl "http://127.0.0.1:8983/solr/'+name+'/dataimport?command=full-import&wt=json&clean=false&commit=true"
默认端口:8983(可修改),默认IP为本地,可修改。
'; + + layer.open({ + type: 1, + title: '命令', + area: '750px', + content:cmd, + }); +} function pRead(){ var readme = '