modrinth / labrinth

Our Rust-based backend utilizing the actix-web framework to serve Modrinth's API.
https://modrinth.com
GNU Affero General Public License v3.0
533 stars 74 forks source link

Re-modularizes search facets #842

Closed thesuzerain closed 8 months ago

thesuzerain commented 8 months ago

Search facets (specifically- the loader field ones) were temporarily hard coded to fix an issue where indexing would halt.

It seems to be because it takes forever (and eventually timesout) during the process of adding these fields to the index. So, this commit:

Ideally, on the first index, there will be none or very few entries anyway, so adding the field should be pretty quick and easy.