laws-africa / peachjam

Project Peach Jam
https://agp.africanlii.org
GNU General Public License v3.0
2 stars 0 forks source link

Split order and outcome fields #1816

Closed actlikewill closed 3 months ago

actlikewill commented 3 months ago

closes https://github.com/laws-africa/kenyalaw-pj/issues/57

actlikewill commented 3 months ago

@longhotsummer Since we have a new field, we need to rebuild the index. I think there was a way to do this without rebuilding the entire indexes?

longhotsummer commented 3 months ago

@longhotsummer Since we have a new field, we need to rebuild the index. I think there was a way to do this without rebuilding the entire indexes?

we can use a technique like this to add the new fields (will have to do it for each translated field): https://github.com/laws-africa/peachjam/blob/main/peachjam_search/migrations/0001_es_mapping_add_provisions.py#L10

We'll definitely have to test locally.

actlikewill commented 3 months ago

@longhotsummer Since we have a new field, we need to rebuild the index. I think there was a way to do this without rebuilding the entire indexes?

we can use a technique like this to add the new fields (will have to do it for each translated field): https://github.com/laws-africa/peachjam/blob/main/peachjam_search/migrations/0001_es_mapping_add_provisions.py#L10

We'll definitely have to test locally.

This is now working :sweat_drops: