Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PL-34 Add module schema and settings #40

Merged
merged 6 commits into from
Sep 21, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions config/install/search_api_federated_solr.search_app.settings.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
facet:
site_name:
set_default: false
index:
id: ''
has_site_name_property: false
server_url: ''
username: ''
password: ''
content:
no_results: ''
search_prompt: ''
results:
rows: null
pagination:
buttons: null
path: /search-app
57 changes: 57 additions & 0 deletions config/schema/search_api_federated_solr.schema.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
# Schema for configuration files of the Search API Federated Solr module.

search_api_federated_solr.search_app.settings:
type: config_object
label: 'Search API Federated Solr settings'
mapping:
path:
type: string
label: 'The path for the search app.'
facet:
type: mapping
mapping:
site_name:
type: mapping
mapping:
set_default:
type: boolean
label: 'When true, only search results from this site will be shown.'
index:
type: mapping
mapping:
id:
type: string
label: 'Defines which search_api index and server the search app should use.'
has_site_name_property:
type: boolean
label: 'Has site name flag.'
server_url:
type: string
label: 'The server url for the search app.'
username:
type: string
label: 'Basic Auth username.'
password:
type: string
label: 'Basic Auth password.'
content:
type: mapping
mapping:
no_results:
type: string
label: 'This text is shown when a query returns no results.'
search_prompt:
type: string
label: 'This text is shown when no query term has been entered.'
results:
type: mapping
mapping:
rows:
type: integer
label: 'The max number of results to render per search results page.'
pagination:
type: mapping
mapping:
buttons:
type: integer
label: 'The max number of numbered pagination buttons to show at a given time.'