generated from rohberg/volto-addon-template
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
example configuration (mapping, analysis)
- Loading branch information
Showing
10 changed files
with
1,340 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
FROM opensearchproject/opensearch:latest | ||
RUN /usr/share/opensearch/bin/opensearch-plugin install --batch ingest-attachment |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
See OpenSearch with Docker Compose https://github.com/collective/collective.elastic.ingest/tree/fd87bea1d11a97ae231a824aa3a0c145988faede#opensearch-with-docker-compose | ||
|
||
docker buildx use default | ||
docker buildx build --tag opensearch-ingest-attachment:latest . |
99 changes: 99 additions & 0 deletions
99
example_configuration_opensearch/dev-opensearch/docker-compose.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,99 @@ | ||
# opensearch needs sysctl -w vm.max_map_count=262144 | ||
# see https://stackoverflow.com/questions/66444027/max-virtual-memory-areas-vm-max-map-count-65530-is-too-low-increase-to-at-lea | ||
version: '3' | ||
services: | ||
|
||
ingest: | ||
image: ghcr.io/collective/collective.elastic.ingest:latest | ||
environment: | ||
MAPPINGS_FILE: ${MAPPINGS_FILE} | ||
ANALYSIS_FILE: ${ANALYSIS_FILE} | ||
PREPROCESSINGS_FILE: ${PREPROCESSINGS_FILE} | ||
INDEX_SERVER: ${INDEX_SERVER?unset} | ||
INDEX_USE_SSL: ${INDEX_USE_SSL?unset} | ||
INDEX_OPENSEARCH: ${INDEX_OPENSEARCH?unset} | ||
INDEX_LOGIN: ${INDEX_LOGIN?unset} | ||
INDEX_PASSWORD: ${INDEX_PASSWORD?unset} | ||
CELERY_BROKER: ${CELERY_BROKER?unset} | ||
CELERY_CONCURRENCY: ${CELERY_CONCURRENCY:-1} | ||
CELEREY_LOG_LEVEL: ${CELERY_LOG_LEVEL:-info} | ||
PLONE_SERVICE: ${PLONE_SERVICE?unset} | ||
PLONE_SITE_PREFIX_PATH: ${PLONE_SITE_PREFIX_PATH?unset} | ||
PLONE_USER: ${PLONE_USER?unset} | ||
PLONE_PASSWORD: ${PLONE_PASSWORD?unset} | ||
SENTRY_DSN: ${SENTRY_DSN} | ||
volumes: | ||
- ingest-configuration:/configuration | ||
networks: | ||
- opensearch-net | ||
|
||
redis: | ||
image: 'redis:latest' | ||
networks: | ||
- opensearch-net | ||
ports: | ||
- 6379:6379 | ||
|
||
opensearch: | ||
image: opensearch-ingest-attachment:latest # Specifying the freshly build local image | ||
environment: | ||
- cluster.name=opensearch-cluster | ||
- node.name=opensearch | ||
- discovery.type=single-node | ||
- bootstrap.memory_lock=true | ||
- "OPENSEARCH_JAVA_OPTS=-Xms512m -Xmx2g" | ||
ulimits: | ||
memlock: | ||
soft: -1 | ||
hard: -1 | ||
nofile: | ||
soft: 65536 | ||
hard: 65536 | ||
volumes: | ||
- opensearch-data:/usr/share/opensearch/data | ||
- "./opensearch-configuration/keywords.txt:/usr/share/opensearch/config/keywords.txt" | ||
- "./opensearch-configuration/lexicon.txt:/usr/share/opensearch/config/lexicon.txt" | ||
ports: | ||
- 9200:9200 # REST API | ||
- 9600:9600 # Performance Analyzer | ||
networks: | ||
- opensearch-net | ||
|
||
opensearch-dashboards: | ||
image: opensearchproject/opensearch-dashboards:latest | ||
ports: | ||
- 5601:5601 | ||
expose: | ||
- "5601" | ||
environment: | ||
OPENSEARCH_HOSTS: '["https://opensearch:9200"]' | ||
networks: | ||
- opensearch-net | ||
|
||
dejavu: | ||
image: appbaseio/dejavu:latest | ||
container_name: dejavu | ||
ports: | ||
- "1358:1358" | ||
expose: | ||
- "1358" | ||
links: | ||
- opensearch | ||
|
||
volumes: | ||
opensearch-data: | ||
ingest-configuration: | ||
driver: local | ||
driver_opts: | ||
type: none | ||
device: ./ingest-configuration | ||
o: bind | ||
# opensearch-configuration: | ||
# driver: local | ||
# driver_opts: | ||
# type: none | ||
# device: ./opensearch-configuration | ||
# o: bind | ||
networks: | ||
opensearch-net: | ||
|
37 changes: 37 additions & 0 deletions
37
example_configuration_opensearch/dev-opensearch/ingest-configuration/analysis.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
{ | ||
"settings": { | ||
"analysis": { | ||
"analyzer": { | ||
"german_analyzer": { | ||
"tokenizer": "standard", | ||
"filter": [ | ||
"lowercase", | ||
"custom_dictionary_decompounder", | ||
"no_stem", | ||
"light_german_stemmer" | ||
] | ||
}, | ||
"german_exact_analyzer": { | ||
"tokenizer": "standard", | ||
"filter": [ | ||
"lowercase" | ||
] | ||
} | ||
}, | ||
"filter": { | ||
"custom_dictionary_decompounder": { | ||
"type": "dictionary_decompounder", | ||
"word_list_path": "lexicon.txt" | ||
}, | ||
"no_stem": { | ||
"type": "keyword_marker", | ||
"keywords_path": "keywords.txt" | ||
}, | ||
"light_german_stemmer": { | ||
"type": "stemmer", | ||
"language": "light_german" | ||
} | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.