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

Jan Høydahl commented on SOLR-7054:
-----------------------------------

+1 to such a transition! Also for all the Admin stuff.

{{GET /docs/<docId>}} should probably map to real-time GET {{/get?id=<docId>}} ?
{{HEAD /docs/<docId>}} could do and "exists" with HTTP 200 for exists and HTTP 
404 for not found (no body)

We should have an endpoint to support POSTing a JSON DSL as body such as ES' 
{{_search}}. Perhaps some of [~yo...@apache.org]'s great work over at 
http://heliosearch.org/heliosearch-solr-json-request-api/ could be used?

> a pure REST interface for all operations in Solr
> ------------------------------------------------
>
>                 Key: SOLR-7054
>                 URL: https://issues.apache.org/jira/browse/SOLR-7054
>             Project: Solr
>          Issue Type: Improvement
>            Reporter: Noble Paul
>
> It would be a single handler say {{/docs}}
> GET would do a query
> GET /docs is equivalent to /select/q=*:*
> GET /docs?q=a:b will be equivalent to /select?q=a:b
> GET /docs/docId will be equivalent to /select?q=id:docId
> PUT/POST /docs is equivalent to /update and the default format for json would 
> be that of /update/json/docs
> DELETE /docs/id will do a delete by id
> DELETE /docs?q=x:val is delete by query



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org

Reply via email to