inveniosoftware / invenio-records-rest

Invenio records REST API module.
https://invenio-records-rest.readthedocs.io
MIT License
4 stars 63 forks source link

Multiple indices in Invenio_records_rest #220

Closed PSvishnu93 closed 6 years ago

PSvishnu93 commented 6 years ago

Is it possible to use multiple indices in a single app using invenio_records_rest? If possible which variables needs to be updated.

lnielsen commented 6 years ago

Yes, it's possible. See http://invenio-records-rest.readthedocs.io/en/latest/usage.html#configuration for details.

E.g. you can have /api/records/ and /api/authors. The /api/records/ will search over an Elasticsearch alias named records which can search multiple indexes (e.g. records-record-v1.0.0 and records-record-v1.1.0. Similar goes for /api/authors.