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

Better Solr configuration defaults #124

Closed
wants to merge 11 commits into from
6 changes: 4 additions & 2 deletions .docker/push.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,13 @@ IMAGE_VERSION_TAG=${IMAGE_VERSION_TAG:-}
# prevent stripping of the version.
IMAGE_VERSION_TAG_PREFIX=${IMAGE_VERSION_TAG_PREFIX:-8.x-}
# Docker image edge tag.
IMAGE_TAG_EDGE=${IMAGE_TAG_EDGE:-beta}
IMAGE_TAG_EDGE=${IMAGE_TAG_EDGE:-}
# Flag to force image build.
FORCE_IMAGE_BUILD=${FORCE_IMAGE_BUILD:-}
# Path prefix to Dockerfiles extension that is used as a name of the service.
FILE_EXTENSION_PREFIX=${FILE_EXTENSION_PREFIX:-.docker/Dockerfile.}
# CLI Image name
CLI_IMAGE=${DOCKERHUB_NAMESPACE:-govcms8lagoon}/govcms8

for file in $(echo $FILE_EXTENSION_PREFIX"*"); do
service=${file/$FILE_EXTENSION_PREFIX/}
Expand All @@ -30,7 +32,7 @@ for file in $(echo $FILE_EXTENSION_PREFIX"*"); do
# Only rebuild images if they do not exist or rebuild is forced.
if [ "$existing_image" == "" ] || [ "$FORCE_IMAGE_BUILD" != "" ]; then
echo "==> Building \"$service\" image from file $file for service \"$DOCKERHUB_NAMESPACE/$service\""
docker build -f $file -t $DOCKERHUB_NAMESPACE/$service .
docker build -f $file -t $DOCKERHUB_NAMESPACE/$service --build-arg CLI_IMAGE=${CLI_IMAGE} .
fi

# Tag images with 'edge' tag and push.
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
langcode: en
status: true
dependencies:
config:
- views.view.solr_search
module:
- system
- views
theme:
- govcms8_uikit_starter
id: exposedformsolr_searchpage_1
theme: govcms8_uikit_starter
region: search
weight: 0
provider: null
plugin: 'views_exposed_filter_block:solr_search-page_1'
settings:
id: 'views_exposed_filter_block:solr_search-page_1'
label: ''
provider: views
label_display: '0'
views_label: ''
visibility:
request_path:
id: request_path
pages: '/search/*'
negate: true
context_mapping: { }
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
langcode: en
status: true
dependencies:
module:
- node
- search_api
- search_api_solr
config:
- field.storage.node.body
- search_api.server.lagoon_solr
third_party_settings:
search_api_solr:
finalize: false
commit_before_finalize: false
commit_after_finalize: false
id: solr_index
name: 'Solr Index'
description: 'Default search index using the solr search server'
read_only: false
field_settings:
title:
label: Title
datasource_id: 'entity:node'
property_path: title
type: text
dependencies:
module:
- node
body:
label: Body
datasource_id: 'entity:node'
property_path: body
type: text
dependencies:
config:
- field.storage.node.body
datasource_settings:
'entity:node':
bundles:
default: true
selected: { }
languages:
default: true
selected: { }
processor_settings:
add_url: { }
aggregated_field: { }
rendered_item: { }
solr_date_range: { }
tracker_settings:
default:
indexing_order: fifo
options:
index_directly: true
cron_limit: 50
server: lagoon_solr
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
langcode: en
status: true
dependencies:
config:
- search_api_solr.solr_field_type.text_und_6_0_0
module:
- search_api_solr
id: lagoon_solr
name: 'Lagoon Solr'
description: ''
description: 'Default solr search server'
backend: search_api_solr
backend_config:
connector: standard
Expand Down
Loading