inveniosoftware / invenio-records-rest

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

views: adapt other modules to the new suggesters structure #178

Closed krzysztof closed 6 years ago

krzysztof commented 6 years ago

Suggesters are now compatible with ES v2 and v5, such that the _source will be available in the suggestion response, and should be used as the source of information. The previously used fields such as output and payload are no longer available in ES5, hence all UI elements which use suggesters should rely only on _source.

This requires changes in indexing receivers signals, and in case of generic invenio modules, the suggesters have to be indexed two-way (ES2 and ES5 style), see for example: https://github.com/nharraud/invenio-records-rest/commit/aade39fe0ba3dc8c9719c8ea5b9785a6b09091f6#diff-484462fced51d1a06b1d93b4a44dd535R236