如何使Solr控制台输出用于执行操作的命令?

时间:2018-12-07 11:18:59

标签: solr lucene

我正在关注一个教程,并且(就像在官方教程中一样)当您使用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命令以输出额外的信息?

1 个答案:

答案 0 :(得分:2)

在调用-V时附加bin/solr参数:

-V            Enable more verbose output.

..将结束命令设为bin/solr create_core -c films -V