You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@solr.apache.org by "David Smiley (Jira)" <ji...@apache.org> on 2024/10/22 03:44:00 UTC

[jira] [Commented] (SOLR-17510) CBOR, SolrJ compatible

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

David Smiley commented on SOLR-17510:
-------------------------------------

[~gerlowskija] , would the Java client code we generate from OpenAPI be something that would not only support JSON but also CBOR?  It's JSON compatible and uses Jackson so... in theory yes?  I'm aware today it doesn't work of course.  We should be using JsonMapResponseParser (which is Jackson based) not InputStreamResponseParser.  Then JsonMapResponseParser could detect CBOR vs JSON and parse accordingly.  For the writing side we currently only have XML & javabin (see RequestWriter and BinaryRequestWriter respectively).  This would be its own issue.

I suppose a way of thinking about this overall is that we wait for OpenAPI to be complete, after which much of the SolrJ code we use today (e.g. UpdateRequest) would be deemed legacy and maybe updated to call to generated Java code / POJOs that work with Jackson/CBOR.

I suppose what's needed most of all is a CborRequestWriter (particularly for update requests, limited to this maybe) to be the most useful to users today without waiting forever.

> CBOR, SolrJ compatible
> ----------------------
>
>                 Key: SOLR-17510
>                 URL: https://issues.apache.org/jira/browse/SOLR-17510
>             Project: Solr
>          Issue Type: Improvement
>      Security Level: Public(Default Security Level. Issues are Public) 
>          Components: SolrJ
>            Reporter: David Smiley
>            Priority: Major
>
> Here we propose a CBOR compatible SolrJ.  Today, SolrJ only supports javabin and XML.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For additional commands, e-mail: issues-help@solr.apache.org