Skip to content

Commit

Permalink
use doc_type not nature with ES
Browse files Browse the repository at this point in the history
  • Loading branch information
longhotsummer committed Aug 30, 2024
1 parent d2bc145 commit 5493733
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 12 deletions.
10 changes: 1 addition & 9 deletions peachjam/js/components/FindDocuments/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,6 @@
{{ $t('Jurisdiction') }}
{{ $t('Locality') }}
{{ $t('Matter type') }}
{{ $t('Document nature') }}
{{ $t('Language') }}
{{ $t('Year') }}
</div>
Expand Down Expand Up @@ -281,7 +280,7 @@ export default {
const facets = [
{
title: this.$t('Document type'),
name: 'doc_type',
name: 'nature',
type: 'checkboxes',
value: [],
options: []
Expand Down Expand Up @@ -350,13 +349,6 @@ export default {
value: [],
options: []
},
{
title: this.$t('Document nature'),
name: 'nature',
type: 'checkboxes',
value: [],
options: []
},
{
title: this.$t('Language'),
name: 'language',
Expand Down
3 changes: 0 additions & 3 deletions peachjam_search/documents.py
Original file line number Diff line number Diff line change
Expand Up @@ -213,9 +213,6 @@ def get_instances_from_related(self, related_instance):
]
return CoreDocument.objects.filter(taxonomies__topic__in=topics).distinct()

def prepare_doc_type(self, instance):
return instance.get_doc_type_display()

def prepare_case_number(self, instance):
if hasattr(instance, "case_numbers"):
return [c.get_case_number_string() for c in instance.case_numbers.all()]
Expand Down

0 comments on commit 5493733

Please sign in to comment.