wellcomecollection / catalogue-api

:crystal_ball: The API for searching the Wellcome Collection catalogue.
https://developers.wellcomecollection.org
MIT License
4 stars 0 forks source link

fields which are only used for filtering should be moved out of the `query` section of the mapping #645

Open harrisonpim opened 1 year ago

harrisonpim commented 1 year ago

We currently have four top-level objects in our mapping

There's a chance that we're indexing too many fields in the query section - devs working filters assume fields are there for relevance, and those engineering relevance assume they're there for filtering. The end result is a bloated index with unused fields, or fields serving multiple purposes which are hard to disentangle.

We could be more explicit about the separation of filtering and relevance-scoring by splitting the top level into

agnesgaroux commented 4 months ago

Has this been completed?