Using Aliases in Fusion & Solr

Use case:

Aliases are used for switching between hot and cold collections.

Alias in Solr:

Collection aliases are only available when using SolrCloud mode and are manipulated via a simple HTTP API:

  • Create/Update
    http://localhost:8983/solr/admin/collections?action=CREATEALIAS&name=AliasName&collection=ListOfCollections
  • Delete
    http://localhost:8983/solr/admin/collections?action=DELETEALIAS&name=AliasName

 

More Documentation:

https://cwiki.apache.org/confluence/display/solr/Collections+API#CollectionsAPI-api4

 

Using alias in Fusion:

curl -u user:pass -X PUT -H 'Content-type: application/json' -d '{"solrParams":{"name":"MYSOLRCOLLECTION"}}' http://localhost:8764/api/apollo/collections/myFusionCollection

You need to tell the Fusion collection to point to another Solr collection 'MYSOLRCOLLECTION' with a PUT.
This is equivalent to using the Solr collection API to update the alias.

 

 

Have more questions? Submit a request

0 Comments

Please sign in to leave a comment.
Powered by Zendesk