Skip to content

Replace default responses from XML by JSON #348

@gforcada

Description

@gforcada

For quite a few major releases, Solr allows you to specify in which format you want to receive the results.

collective.solr always asks for XML and it has a quite involved parser.

At work we noticed that we get notifications of slow Solr requests, and actually looking into it, is not that Solr (the server) is slow on sending the response, but rather that collective.solr takes quite some time to process the received XML response, and the notification that we get is fired after the response is processed.

Getting JSON responses might be much more straightforward to process or even the python format, that returns a dictionary-like. Most probably the JSON version is faster to parse, we should get numbers... 🤷🏾

Would it be an option to either change it completely, or allow to specify/configure in which format one wants to get the responses?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions