Charmworld indexes far too many fields due to Elasticsearch dynamic mapping
Bug #1206659 reported by
Aaron Bentley
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
charmworld |
Triaged
|
High
|
Unassigned |
Bug Description
Dynamic mapping is Charmworld's default behaviour, but it hurts us because sometimes it gets the type wrong, and the ultimate mapping is gigantic (more than 400k pretty-printed).
The dynamic mappings give is no advantage because we don't search on those fields. We search on specific fields. It should be disabled.
Related branches
lp:~adeuring/charmworld/1206659-simpler-es-mapping
- Abel Deuring (community): Approve
- Curtis Hovey (community): Approve (code)
-
Diff: 263 lines (+144/-10)5 files modifiedcharmworld/migrations/versions/016_fixed_ES_mapping_for_charms.py (+8/-0)
charmworld/migrations/versions/tests/test_migrations.py (+20/-0)
charmworld/search.py (+51/-4)
charmworld/tests/test_models.py (+6/-5)
charmworld/tests/test_search.py (+59/-1)
tags: | added: elasticsearch |
To post a comment you must log in.
Work on this has stalled. The comments in charmworld.search indicate that the mapping can switch to static. I believe the blocking issue is bug 1194907.