如何让 Solr 控制台输出用于执行操作的命令?
How to get Solr console to output the commands used to perform an action?
我正在学习教程并且(就像在官方教程中一样)当您使用 Solr 执行命令时,如果输出发送到 Solr 服务器和从 Solr 服务器接收的命令以执行如下操作:
$ bin/solr create_core -c films
WARNING: Using _default configset. Data driven schema functionality is enabled
by default, which is NOT RECOMMENDED for production use.
To turn it off:
curl http://localhost:8983/solr/films/config -d
'{"set-user-property": {"update.autoCreateFields":"false"}}'
Copying configuration to new core instance directory:
/home/paul/solr-7.0.0/server/solr/films
Creating new core 'films' using command:
http://localhost:8983/solr/admin/cores?action=CREATE&name=films&instanceDire=films
{
"responseHeader":{
"status":0,
"QTime:1222},
"core":"films"}
当我 运行 相同的命令时,我得到
bin/solr create_core -c films
WARNING: Using _default configset with data driven schema functionality. NOT RECOMMENDED for production use.
To turn off: bin/solr config -c films -p 8983 -action set-user-property -property update.autoCreateFields -value false
INFO - 2018-12-07 10:00:10.021; org.apache.solr.util.configuration.SSLCredentialProviderFactory; Processing SSL Credential Provider chain: env;sysprop
Created new core 'films'
如何让我的 Solr 命令输出额外的信息?
调用时附加 -V
参数 bin/solr
:
-V Enable more verbose output.
.. 使结束命令成为 bin/solr create_core -c films -V
.
我正在学习教程并且(就像在官方教程中一样)当您使用 Solr 执行命令时,如果输出发送到 Solr 服务器和从 Solr 服务器接收的命令以执行如下操作:
$ bin/solr create_core -c films
WARNING: Using _default configset. Data driven schema functionality is enabled
by default, which is NOT RECOMMENDED for production use.
To turn it off:
curl http://localhost:8983/solr/films/config -d
'{"set-user-property": {"update.autoCreateFields":"false"}}'
Copying configuration to new core instance directory:
/home/paul/solr-7.0.0/server/solr/films
Creating new core 'films' using command:
http://localhost:8983/solr/admin/cores?action=CREATE&name=films&instanceDire=films
{
"responseHeader":{
"status":0,
"QTime:1222},
"core":"films"}
当我 运行 相同的命令时,我得到
bin/solr create_core -c films
WARNING: Using _default configset with data driven schema functionality. NOT RECOMMENDED for production use.
To turn off: bin/solr config -c films -p 8983 -action set-user-property -property update.autoCreateFields -value false
INFO - 2018-12-07 10:00:10.021; org.apache.solr.util.configuration.SSLCredentialProviderFactory; Processing SSL Credential Provider chain: env;sysprop
Created new core 'films'
如何让我的 Solr 命令输出额外的信息?
调用时附加 -V
参数 bin/solr
:
-V Enable more verbose output.
.. 使结束命令成为 bin/solr create_core -c films -V
.