Skip to content

Openverse is a search engine for openly-licensed media. This monorepo includes all application code.

Add a stemming override for the word "universe" (#890)

Zack Krida38af21c35970
diff --git a/ingestion_server/ingestion_server/es_mapping.py b/ingestion_server/ingestion_server/es_mapping.py
index d829e8452..06f4e204d 100644
--- a/ingestion_server/ingestion_server/es_mapping.py
+++ b/ingestion_server/ingestion_server/es_mapping.py
@@ -22,6 +22,9 @@ def index_settings(table_name):
"anime => anime",
"animate => animate",
"animated => animate",
+ # Override "universe" to prevent matching to
+ # "university" or "universal".
+ "universe => universe",
],
},
"english_stop": {"type": "stop", "stopwords": "_english_"},