Class ModifyConfigComponentAPI


  • public class ModifyConfigComponentAPI
    extends Object
    V2 APIs for creating, updating, or deleting individual components in a collection configuration.

    This API (POST /v2/collections/collectionName/config {...}) is analogous to the commands supported by the v1 POST /collectionName/config API.

    Typically v2 "POST" API implementations separate each "command" into a different method. This is not done here because the v1 API code in SolrConfigHandler expects to consume the request body itself (meaning that nothing _before_ SolrConfigHandler can consume the request body).

    As a result the single method below handles all "commands" supported by the POST /config API: 'set-property, 'unset-property', 'add-requesthandler', 'update-requesthandler', 'delete-requesthandler', 'add-searchcomponent', 'update-searchcomponent', 'delete-searchcomponent', 'add-initparams', 'update-initparams', 'delete-initparams', 'add-queryresponsewriter', 'update-queryresponsewriter', 'delete-queryresponsewriter', 'add-queryparser', 'update-queryparser', 'delete-queryparser', 'add-valuesourceparser', 'update-valuesourceparser', 'delete-valuesourceparser', 'add-transformer', 'update-transformer', 'delete-transformer', 'add-updateprocessor', 'update-updateprocessor', 'delete-updateprocessor', 'add-queryconverter', 'update-queryconverter', 'delete-queryconverter', 'add-listener', 'update-listener', and 'delete-listener'.