solr-fstats is a commandline command (Python3 program) that extracts some statistics regarding field coverage from a Solr index. It prints the output as pure CSV data (all values are quoted) to stdout.
solr-fstats
required arguments:
-core CORE Solr core to use (default: None)
optional arguments:
-h, --help show this help message and exit
-host HOST hostname or IP address of the Solr instance to use (default:localhost)
-port PORT port of the Solr instance to use (default: 8983)
- example:
solr-fstats -host [HOSTNAME OF YOUR SOLR INSTANCE] -core [YOUR SOLR CORE] > [OUTPUT STATISTICS DOCUMENT]
-
(optionally) install pip for Python 3.x:
sudo apt-get install python3-pip
-
install requirements with pip:
sudo -H pip3 install -r requirements.txt
- install requirements
- clone this git repo or just download the solr_fstats.py file
- run ./solr_fstats.py
- for a hackish way to use solr_fstats system-wide, copy to /usr/local/bin
- via pip:
(which provides you
sudo -H pip3 install --upgrade [ABSOLUTE PATH TO YOUR LOCAL GIT REPOSITORY OF SOLR-FSTATS]
solr-fstats
as a system-wide commandline command)
(of the column headers of a resulting statistic)
- the field (path) of this statistic line
- number of records that contain this field (path), i.e., field coverage
- ^ percentage of 'existing'
- (existing / Total Records * 100)
- number of records that do not contain this field (path)
- ^ percentage of 'notexisting'
- (not existing / Total Records * 100)
Erklärung der Spaltenköpfe
- Der Pfad zu den analysierten Werten
- gibt an, wieviele Felder diesen Pfades existieren.
- existing in Prozent
- existing / Total Records * 100
- gibt an, wieviele Rekords nicht über diesen Pfad verfügen
- notexisting in Prozent
- notexisting / Total Records * 100)