Skip to content

Commit

Permalink
Merge pull request #40 from palantirnet/PL-34-schema-settings
Browse files Browse the repository at this point in the history
PL-34 Add module schema and settings
  • Loading branch information
froboy authored Sep 21, 2018
2 parents a04466b + 9e2c694 commit 1183cc1
Show file tree
Hide file tree
Showing 2 changed files with 74 additions and 0 deletions.
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.'

0 comments on commit 1183cc1

Please sign in to comment.