Search code examples
jmeterperformance-testingload-testingsolrcloud

Searching Query in solr using Jmeter


I configured the solr Search server in Tomcat server. I started tomcat server with below extra parameters.

Dcom.sun.management.jmxremote.port=9191
Dcom.sun.management.jmxremote.authenticate=false
Dcom.sun.management.jmxremote.ssl=false

Now I wants to test solr Searching request in my JMeter for load testing purpose. Will I be able to do it in Jmeter?


Solution

  • As per Solr Quick Start

    Searching

    Solr can be queried via REST clients, cURL, wget, Chrome POSTMAN, etc., as well as via the native clients available for many programming languages.

    The Solr Admin UI includes a query builder interface - see the gettingstarted query tab at http://localhost:8983/solr/#/gettingstarted/query.

    So you should be able to perform a search using HTTP Request sampler

    JMeter Solr Request

    Replace gettingstarted with your Solr core name and YOUR_QUERY_HERE with your actual query.

    You will also be able to use XPath or JSON Path Extractor in order to extract some response parts into JMeter Variables if needed