Class CreateAliasAPI

  • @Path("/aliases")
    public class CreateAliasAPI
    extends AdminAPIBase
    V2 API for creating an alias

    This API is analogous to the v1 /admin/collections?action=CREATEALIAS command.

    • Method Detail

      • createRemoteMessageForTraditionalAlias

        public static createRemoteMessageForTraditionalAlias​(CreateAliasAPI.CreateAliasRequestBody requestBody)
      • getHierarchicalParametersByPrefix

        public static org.apache.solr.common.params.SolrParams getHierarchicalParametersByPrefix​(org.apache.solr.common.params.SolrParams paramSource,
                                                                                                 String prefix)
        Returns a SolrParams object containing only those values whose keys match a specified prefix (with that prefix removed)

        Query-parameter based v1 APIs often mimic hierarchical parameters by using a prefix in the query-param key to group similar parameters together. This function can be used to identify all of the parameters "nested" in this way, with their prefix removed.