Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Solr-5.3.0 Learning Notes (2) Solr Admin UI

2025-03-12 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/03 Report--

Lu Chunli's work notes are not as good as bad notes.

1. View help

At the bottom of Admin UI, you can connect to the appropriate website to view help information about Solr.

2 、 Dashboard

The default page of Admin UI, which mainly includes:

Instance information (such as solr service startup time)

Version information (solr and lucene version information)

JVM configuration parameters such as

-DSTOP.KEY=solrrocks

-DSTOP.PORT=7983

-Djetty.home=/lucl/solr-5.3.0/server

-Djetty.port=8983

-Dsolr.install.dir=/lucl/solr-5.3.0

And host system information (such as memory, swap space, file descriptor and JVM memory usage).

3 、 Logging

Log files are created in units of Core (index library), and log levels can be set.

Note: the log level of Solr is quite fine, and you can configure a class separately.

4 、 Core Admin

The Core (index library) used to manage Solr, and the CoreAdminHandler class encapsulates its functional implementation.

5 、 Java Properties

The Solr operation is the configuration parameter, and the default parameter can be overridden by-D parameter name = parameter value.

6 、 Thread Dump

The Thread Dump screen lets you inspect the currently active threads on your server.

7 、 Manage Core

Always prompts an error when executing Add Core through Admin UI:

Error CREATEing SolrCore 'my_core': Unable to create core [new_core] Caused by: Can't find resource' solrconfig.xml' in classpath or'/ lucl/solr-5.3.0/server/solr/my_core/conf'

So create it through command script execution:

[hadoop@nnode solr-5.3.0] $bin/solr create-c test_coreSetup new core instance directory:/lucl/solr-5.3.0/server/solr/test_coreCreating new core' test_core' using command: http://localhost:8983/solr/admin/cores?action=CREATE&name=test_core&instanceDir=test_core{ "responseHeader": {"status": 0, "QTime": 3876}, "core": "test_core"} [hadoop@nnode solr-5.3.0] $

Note: if the creation fails, you can delete it using the name of the bin/solr delete-c index library.

View the directory structure of the index library

[hadoop@nnode server] $pwd/lucl/solr-5.3.0/server [hadoop@nnode server] $cd solr [hadoop@nnode solr] $ll Total usage 20drwxr-xr-x 5 hadoop hadoop 4096 August 12 17:16 configsets-rw-r--r-- 1 hadoop hadoop 3037 August 12 17:16 README.txt-rw-r--r-- 1 hadoop hadoop 1887 August 12 17:16 solr.xmldrwxrwxr-x 4 hadoop hadoop 4096 January 25 20:24 test_core- Rw-r--r-- 1 hadoop hadoop 501 August 12 17:16 zoo.cfg [hadoop@nnode solr] $cd test_core/ [Hadoop @ nnode test_core] $ll Total usage 12drwxrwxr-x 3 hadoop hadoop 4096 January 21 12:28 conf-rw-rw-r-- 1 hadoop hadoop 79 January 25 20:24 core.propertiesdrwxrwxr-x 4 hadoop hadoop 4096 January 25 20:24 data [hadoop@nnode test_core] $cd conf/ [hadoop@nnode conf] $ll Total Amount: 148hadoop hadoop managed-schema-rw-rw-r---1 hadoop hadoop 3974 August 12 17:16 currency.xml-rw-rw-r-- 1 hadoop hadoop 1348 August 12 17:16 elevate.xmldrwxrwxr-x 2 hadoop hadoop 4096 January 21 12:28 lang-rw-rw-r-- 1 hadoop hadoop 55614 August 12 17:16 managed-schema-rw-rw-r-- 1 hadoop hadoop 308 August 12 17:16 params.json-rw-rw-r-- 1 hadoop hadoop 873 8 Monthly 12 17:16 protwords.txt-rw-rw-r-- 1 hadoop hadoop 61532 August 12 17:16 solrconfig.xml-rw-rw-r-- 1 hadoop hadoop 781 August 12 17:16 stopwords.txt-rw-rw-r-- 1 hadoop hadoop 1119 August 12 17:16 synonyms.txt [hadoop@nnode conf] $cd.. / data/ [hadoop@nnode data] $ll Total usage 8drwxrwxr-x 2 hadoop hadoop 4096 January 25 20:24 indexdrwxrwxr-x 2 hadoop hadoop 4096 January 25 20:24 tlog [hadoop@nnode data] $

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report