[ 
https://issues.apache.org/jira/browse/SOLR-16234?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17545888#comment-17545888
 ] 

Eric Pugh commented on SOLR-16234:
----------------------------------

I find that in writing tests, I just want to send a query to Solr, get back a 
response, and check that response for something in it.  I find it super hard to 
figure out the magic of creating that query, and spend a lot of time bumbling 
around looking for some sort of test that "kind of does it", and hope that i 
can make it work:  


{{payload =}}
{{"{\n"}}
{{+ "'add-listener' : { 'event' : 'firstSearcher', 'class': 
'solr.QuerySenderListener', "}}
{{+ "'name':'f7fb2d87bea44464af2401cf33f42b69', "}}
{{{}+ "'queries':[{}}}{{{}{'q':'static firstSearcher warming in 
solrconfig.xml'}{}}}{{{}]"{}}}
{{+ "}\n"}}
{{+ "}";}}
{{runConfigCommand(writeHarness, "/config", payload);}}
{{testForResponseElement(}}
{{writeHarness,}}
{{testServerBaseUrl,}}
{{"/config",}}
{{cloudSolrClient,}}
{{asList("config", "listener[0]", "class"),}}
{{"solr.QuerySenderListener",}}
{{TIMEOUT_S);}}

> An API to make raw requests and responses to Solr 
> --------------------------------------------------
>
>                 Key: SOLR-16234
>                 URL: https://issues.apache.org/jira/browse/SOLR-16234
>             Project: Solr
>          Issue Type: Improvement
>      Security Level: Public(Default Security Level. Issues are Public) 
>          Components: clients - java
>            Reporter: Noble Paul
>            Priority: Major
>
> All Solr APIs are higher level APIs that deals with objects . We need a 
> simple raw API for users who wish to interact with Solr without these Objects



--
This message was sent by Atlassian Jira
(v8.20.7#820007)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to