Skip to content

Commit

Permalink
additional advanced search fields
Browse files Browse the repository at this point in the history
judges is indexed as keyword currently and so is not supported
  • Loading branch information
longhotsummer committed Aug 5, 2024
1 parent 541e581 commit e5e626e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
12 changes: 9 additions & 3 deletions peachjam/js/components/FindDocuments/AdvancedSearchFields.vue
Original file line number Diff line number Diff line change
Expand Up @@ -104,12 +104,18 @@ export default {
fields: [{
field: 'all',
label: self.$t('Any field')
},{
}, {
field: 'title',
label: self.$t('Title')
}, {
field: 'judges',
label: self.$t('Judges')
field: 'citation',
label: self.$t('Citation')
}, {
field: 'case_number',
label: self.$t('Case number')
}, {
field: 'case_name',
label: self.$t('Case parties')
}, {
field: 'case_summary',
label: self.$t('Case summary')
Expand Down
2 changes: 2 additions & 0 deletions peachjam_search/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -431,6 +431,8 @@ class DocumentSearchViewSet(BaseDocumentViewSet):
"content": None,
"court": None,
"alternative_names": {"boost": 4},
"case_number": None,
"case_name": None,
}

faceted_search_fields = {
Expand Down

0 comments on commit e5e626e

Please sign in to comment.