This is a standalone Java Tool to test SOLR instances. This project was maintained here, however, it is no longer in development.
The main goal of this open source project is bring to the solr user community a generic tool to interact specifically with solr, firing queries and adding documents to make sure that your Solr implementation will support the real use. With SolrMeter you can simulate your work load over solr index and retrieve statistics graphically.
- Apache Maven 3.5.3
- Java version: 1.8 - JRE/JDK
- Clone this repository to your working directory
- Run
mvn package
- This will create a
.jar
file undersolrmeter/target
directory. The jar file is namedsolr-meter-{version}-jar-with-dependencies.jar
The following steps should be followed to get SolrMeter up and running.
- Download latest released version
- run it from the command line with
java -jar solrmeter-{version}-jar-with-dependencies.jar
- create files with information of queries, fields, updates and filter queries
- specify the URL of Solr for updates and queries.
- run the executors with the "Start" button.
TBD
A simple text file, each line should be the extact text you want to put on the "q" parameter. This file is used by the FileQueryExtractor class.
car
pig
red
dog category:animal
"solr roks"
category:(animal OR vegetable)
Before creating this file you have to think on the search handler you are going to use.
This file is going to be referenced from the "settings" window of the UI.
Also, you can check de example file from the sorce code, this example works just fine with the solr example.
A simple text file, each line should be the a declared field of the schema. This fields are going to be used for faceting. (Only fields that you want to be used for faceting should be added to this file).
This file is going to be used by the FileQueryExtractor class
content
category
fileExtension
Also, you can check de example file from the sorce code, this example works just fine with the solr example.
A simple text file, each line representing a document that is going to be added to solr. The format is:
fieldName:fieldValue;
All required fields must be on the file.
id:1;name:dog;category:animal
id:2;name:cat;category:animal
id:3;name:lettuce;category:vegetable
if you want to escape a semicolon, use a slash and then a semicolon ";". If you want to add a slash, add two slashes "\".
Also, you can check de example file from the sorce code, this example works just fine with the solr example.
A simple text file, each line should be the extact text you want to put on the "fq" parameter. This file is used by the FileQueryExtractor class. You can put multiple filter queries on the same line if you want them all to be used as one (on the same query). You can also use blank lines if you want the query to execute some queries with no filter queries.
category:animal
category:vegetable
categoty:vegetable price:[0 TO 10]
categoty:vegetable price:[10 TO *]
Also, you can check de example file from the sorce code, this example works just fine with the solr example.