Title: 日本語用の Solr 設定やデータの状況を確認するには

cloud-scripts ディレクトリにある zkcli コマンドを -zkhost HostName:9983 -cmd list オプション付きで実行します。

下図は実行結果の例です。「stopwords_ja.txt」や「stoptags_ja」等の日本語用の設定ファイルが読み込まれており、「1530203665671」と「1532499522911」の 2 つのジャーナルのインデックスが作成されていることがわかります。

[solr@centos6 cloud-scripts]$ ./zkcli.sh -zkhost localhost:9983 -cmd list
/ (9)
DATA:

 /configs (1)
  /configs/traction (9)
   /configs/traction/currency.xml (0)
   DATA: ...supressed...
   /configs/traction/protwords.txt (0)
   DATA: ...supressed...
   /configs/traction/solrconfig.xml (0)
   DATA: ...supressed...
   /configs/traction/synonyms.txt (0)
   DATA: ...supressed...
   /configs/traction/stopwords.txt (0)
   DATA: ...supressed...
   /configs/traction/schema.xml (0)
   DATA: ...supressed...
   /configs/traction/_rest_managed.json (0)
   DATA:
       {"initArgs":{},"managedList":[]}

   /configs/traction/lang (4)
    /configs/traction/lang/stopwords_en.txt (0)
    DATA: ...supressed...
    /configs/traction/lang/stoptags_ja.txt (0)
    DATA: ...supressed...
    /configs/traction/lang/stopwords_ja.txt (0)
    DATA: ...supressed...
    /configs/traction/lang/userdict_ja.txt (0)
    DATA: ...supressed...
   /configs/traction/mapping-FullNumber.txt (0)
   DATA: ...supressed...
 /zookeeper (1)
 DATA:

 /overseer (6)
 DATA:

  /overseer/collection-queue-work (0)
  /overseer/queue-work (0)
  /overseer/collection-map-failure (0)
  /overseer/collection-map-completed (0)
  /overseer/queue (0)
  /overseer/collection-map-running (0)
 /aliases.json (0)
 /live_nodes (1)
  /live_nodes/153.120.34.77:8983_solr (0)
 /collections (2)
  /collections/1530203665671 (3)
  DATA:
      {"configName":"traction"}
   /collections/1530203665671/leaders (1)
    /collections/1530203665671/leaders/shard1 (1)
     /collections/1530203665671/leaders/shard1/leader (0)
     DATA:
         {
           "core":"1530203665671_shard1_replica1",
           "core_node_name":"core_node1",
           "base_url":"http://153.120.34.77:8983/solr",
           "node_name":"153.120.34.77:8983_solr"}
   /collections/1530203665671/state.json (0)
   DATA:
       {"1530203665671":{
           "replicationFactor":"1",
           "router":{"name":"compositeId"},
           "maxShardsPerNode":"1",
           "autoAddReplicas":"false",
           "shards":{"shard1":{
               "range":"80000000-7fffffff",
               "state":"active",
               "replicas":{"core_node1":{
                   "core":"1530203665671_shard1_replica1",
                   "base_url":"http://192.168.1.77:8983/solr",
                   "node_name":"192.168.1.77:8983_solr",
                   "state":"active",
                   "leader":"true"}}}}}}
   /collections/1530203665671/leader_elect (1)
    /collections/1530203665671/leader_elect/shard1 (1)
     /collections/1530203665671/leader_elect/shard1/election (1)
      /collections/1530203665671/leader_elect/shard1/election/100433811937099776-core_node1-n_0000000000 (0)
  /collections/1532499522911 (3)
  DATA:
      {"configName":"traction"}
   /collections/1532499522911/leaders (1)
    /collections/1532499522911/leaders/shard1 (1)
     /collections/1532499522911/leaders/shard1/leader (0)
     DATA:
         {
           "core":"1532499522911_shard1_replica1",
           "core_node_name":"core_node1",
           "base_url":"http://153.120.34.77:8983/solr",
           "node_name":"153.120.34.77:8983_solr"}
   /collections/1532499522911/state.json (0)
   DATA:
       {"1532499522911":{
           "replicationFactor":"1",
           "router":{"name":"compositeId"},
           "maxShardsPerNode":"1",
           "autoAddReplicas":"false",
           "shards":{"shard1":{
               "range":"80000000-7fffffff",
               "state":"active",
               "replicas":{"core_node1":{
                   "core":"1532499522911_shard1_replica1",
                   "base_url":"http://153.120.34.77:8983/solr",
                   "node_name":"153.120.34.77:8983_solr",
                   "state":"active",
                   "leader":"true"}}}}}}
   /collections/1532499522911/leader_elect (1)
    /collections/1532499522911/leader_elect/shard1 (1)
     /collections/1532499522911/leader_elect/shard1/election (1)
      /collections/1532499522911/leader_elect/shard1/election/100433811937099776-core_node1-n_0000000000 (0)
 /overseer_elect (2)
  /overseer_elect/leader (0)
  DATA:
      {"id":"100433811937099776-153.120.34.77:8983_solr-n_0000000000"}
  /overseer_elect/election (1)
   /overseer_elect/election/100433811937099776-153.120.34.77:8983_solr-n_0000000000 (0)
 /security.json (0)
 DATA:
     {}
 /clusterstate.json (0)
 DATA:
     {}




関連記事
Article: DocSolr73 (permalink)
Date: 2018/07/25; 16時04分24秒 JST

Author Name: TeamPage サポート
Author ID: jpbo