Git Product home page Git Product logo

solrmeter's Introduction

SolrMeter

Overview

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.

Compile from source

Requirements

  • Apache Maven 3.5.3
  • Java version: 1.8 - JRE/JDK

HOWTO Compile

  1. Clone this repository to your working directory
  2. Run mvn package
  3. This will create a .jar file under solrmeter/target directory. The jar file is named solr-meter-{version}-jar-with-dependencies.jar

Run SolrMeter

The following steps should be followed to get SolrMeter up and running.

GUI

  1. Download latest released version
  2. run it from the command line with java -jar solrmeter-{version}-jar-with-dependencies.jar
  3. create files with information of queries, fields, updates and filter queries
  4. specify the URL of Solr for updates and queries.
  5. run the executors with the "Start" button.

Headless

TBD

Configuration Files

Queries File Configuration

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.

Example Queries File

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.

Fields File Configuration

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

Example Fields File

content
category
fileExtension

Also, you can check de example file from the sorce code, this example works just fine with the solr example.

Add and Update Configuration

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.

Example Add Update File

id:1;name:dog;category:animal
id:2;name:cat;category:animal
id:3;name:lettuce;category:vegetable

Escaping characters

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.

Filter Queries File Configuration

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.

Example Filter Queries File

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.

solrmeter's People

Contributors

thomasliddledba avatar

Forkers

iamvena

solrmeter's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.