Using the Solr HTTP API

Using the Solr HTTP API to query data indexed in DSE Search/Solr.

You can use the Solr HTTP API to query data indexed in DSE Search/Solr just as you would search for data indexed in OSS. HTTP Solr queries do local/internal reads and do not actuate read repairs. In contrast, the row retrieval phase of CQL Solr queries uses LOCAL_ONE consistency level for reads and can actuate read repair.

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:
http://localhost:8983/solr/mykeyspace.mysolr/select?q=%20title%3ASucc*&fl=title
The response is:
<response>
 <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>
   </lst>
 </lst>
 <result name="response" numFound="2" start="0">
   <doc>
     <str name="title">Success</str>
   </doc>
   <doc>
     <str name="title">Success</str>
   </doc>
 </result>
</response>