Using the Solr HTTP API

You can use the Solr HTTP API to query data indexed in DSE Search.

Solr restrictions apply to queries.

HTTP search queries use local/internal reads and do not actuate read repair.

With only the HTTP API, define the default number of rows in the solrconfig.xml file:

<requestHandler name="search" class="solr.SearchHandler" default="true">
       <lst name="defaults">
       <int name="rows">10</int>

Solr HTTP API example

Assuming you performed the example of using a collection set to find the titles in the mykeyspace.mysolr table that begin with the letters succ in XML, use this URL:


The response is:

 <lst name="responseHeader">
   <int name="status">0</int>
   <int name="QTime">2</int>
   <lst name="params">
     <str name="fl">title</str>
     <str name="q">title:Succ*</str>
 <result name="response" numFound="2" start="0">
     <str name="title">Success</str>
     <str name="title">Success</str>

Was this helpful?

Give Feedback

How can we improve the documentation?

© 2024 DataStax | Privacy policy | Terms of use

Apache, Apache Cassandra, Cassandra, Apache Tomcat, Tomcat, Apache Lucene, Apache Solr, Apache Hadoop, Hadoop, Apache Pulsar, Pulsar, Apache Spark, Spark, Apache TinkerPop, TinkerPop, Apache Kafka and Kafka are either registered trademarks or trademarks of the Apache Software Foundation or its subsidiaries in Canada, the United States and/or other countries. Kubernetes is the registered trademark of the Linux Foundation.

General Inquiries: +1 (650) 389-6000,