Skip to content

Commit

Permalink
Added graphql view for search results
Browse files Browse the repository at this point in the history
  • Loading branch information
pookmish committed Oct 23, 2024
1 parent 5fec035 commit 647aad4
Show file tree
Hide file tree
Showing 2 changed files with 88 additions and 0 deletions.
46 changes: 46 additions & 0 deletions config/sync/graphql_compose.settings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,16 @@ entity_config:
enabled: true
query_load_enabled: true
edges_enabled: true
policy_settings:
enabled: false
stanford_basic_site_settings:
enabled: true
query_load_enabled: true
edges_enabled: true
stanford_courses_importer:
enabled: false
stanford_events_importer:
enabled: false
stanford_global_message:
enabled: true
query_load_enabled: true
Expand All @@ -33,6 +39,10 @@ entity_config:
enabled: true
query_load_enabled: true
edges_enabled: true
stanford_person_importer:
enabled: false
stanford_saml:
enabled: false
stanford_super_footer:
enabled: true
query_load_enabled: true
Expand Down Expand Up @@ -139,8 +149,28 @@ entity_config:
enabled: true
query_load_enabled: true
menu:
account:
enabled: false
admin:
enabled: false
courses-menu:
enabled: false
devel:
enabled: false
footer:
enabled: false
main:
enabled: true
news-topics:
enabled: false
stanford-event-types:
enabled: false
stanford-person-type:
enabled: false
stanford-publication-topics:
enabled: false
tools:
enabled: false
node:
stanford_course:
enabled: true
Expand All @@ -162,6 +192,8 @@ entity_config:
query_load_enabled: true
edges_enabled: true
routes_enabled: true
stanford_opportunity:
enabled: false
stanford_page:
enabled: true
query_load_enabled: true
Expand Down Expand Up @@ -234,9 +266,21 @@ entity_config:
enabled: true
query_load_enabled: true
routes_enabled: true
cap_org_codes:
enabled: false
event_audience:
enabled: true
query_load_enabled: true
media_tags:
enabled: false
opportunity_sponsor:
enabled: false
opportunity_tag_filters:
enabled: false
opportunity_type:
enabled: false
site_owner_orgs:
enabled: false
stanford_event_groups:
enabled: true
query_load_enabled: true
Expand Down Expand Up @@ -400,6 +444,8 @@ field_config:
enabled: true
su_site_algolia_search:
enabled: true
su_site_algolia_ui:
enabled: true
su_site_dropdowns:
enabled: true
su_site_menu_levels:
Expand Down
42 changes: 42 additions & 0 deletions config/sync/views.view.search.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ dependencies:
config:
- search_api.index.full_site_content
module:
- graphql_compose_views
- search_api
id: search
label: Search
Expand Down Expand Up @@ -404,6 +405,47 @@ display:
tags:
- 'config:search_api.index.full_site_content'
- 'search_api_list:full_site_content'
graphql_search:
id: graphql_search
display_title: GraphQL
display_plugin: graphql
position: 2
display_options:
pager:
type: full
options:
offset: 0
pagination_heading_level: h4
items_per_page: 15
total_pages: null
id: 0
tags:
next: 'Next ›'
previous: '‹ Previous'
first: '« First'
last: 'Last »'
expose:
items_per_page: true
items_per_page_label: 'Items per page'
items_per_page_options: '3,6,9,12,15,18,21,24,27,30,33,36,39,42,45,48,51,54,57,60,63,66,69,72,75,78,81,84,87,90,93,96,99'
items_per_page_options_all: true
items_per_page_options_all_label: '- All -'
offset: true
offset_label: Offset
quantity: 9
display_extenders: { }
graphql_query_name: search
cache_metadata:
max-age: -1
contexts:
- 'languages:language_content'
- 'languages:language_interface'
- url
- url.query_args
- 'user.node_grants:view'
tags:
- 'config:search_api.index.full_site_content'
- 'search_api_list:full_site_content'
results:
id: results
display_title: Page
Expand Down

0 comments on commit 647aad4

Please sign in to comment.