Skip to content

Commit 16c0d6d

Browse files
committed
Adding elasticsearch config
1 parent 2faded7 commit 16c0d6d

11 files changed

+602
-1
lines changed

app/.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ sites/*/settings*.php
2222
sites/*/services*.yml
2323

2424
# Ignore paths that contain user-generated content.
25-
sites/*/files
2625
sites/*/private
2726

2827
# Ignore SimpleTest multi-site environment.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
uuid: b74c1e04-9a0d-432b-b0c2-6f8ca084118b
2+
langcode: en
3+
status: '1'
4+
dependencies: { }
5+
cluster_id: elasticsearch_docker
6+
name: 'Elasticsearch Docker'
7+
url: 'http://elasticsearch:9200'
8+
options:
9+
multiple_nodes_connection: false
10+
use_authentication: 0
11+
authentication_type: Basic
12+
username: ''
13+
password: ''
14+
timeout: '2'
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,132 @@
1+
uuid: 1a9481b0-5928-4bb2-90c8-518557cfcf10
2+
langcode: en
3+
status: true
4+
dependencies:
5+
config:
6+
- field.storage.comment.comment_body
7+
- field.storage.node.body
8+
- field.storage.node.comment
9+
- field.storage.node.field_image
10+
- field.storage.node.field_tags
11+
- search_api.server.elasticsearch_docker
12+
module:
13+
- comment
14+
- node
15+
- search_api
16+
id: drupal_content
17+
name: drupal_content
18+
description: ''
19+
read_only: false
20+
field_settings:
21+
body:
22+
label: Body
23+
datasource_id: 'entity:node'
24+
property_path: body
25+
type: text
26+
dependencies:
27+
config:
28+
- field.storage.node.body
29+
cid:
30+
label: 'Comment ID'
31+
datasource_id: 'entity:comment'
32+
property_path: cid
33+
type: integer
34+
dependencies:
35+
module:
36+
- comment
37+
comment:
38+
label: Comments
39+
datasource_id: 'entity:node'
40+
property_path: comment
41+
type: integer
42+
dependencies:
43+
config:
44+
- field.storage.node.comment
45+
comment_body:
46+
label: Comment
47+
datasource_id: 'entity:comment'
48+
property_path: comment_body
49+
type: text
50+
dependencies:
51+
config:
52+
- field.storage.comment.comment_body
53+
field_image:
54+
label: Image
55+
datasource_id: 'entity:node'
56+
property_path: field_image
57+
type: integer
58+
dependencies:
59+
config:
60+
- field.storage.node.field_image
61+
field_tags:
62+
label: Tags
63+
datasource_id: 'entity:node'
64+
property_path: field_tags
65+
type: integer
66+
dependencies:
67+
config:
68+
- field.storage.node.field_tags
69+
mail:
70+
label: Email
71+
datasource_id: 'entity:comment'
72+
property_path: mail
73+
type: string
74+
dependencies:
75+
module:
76+
- comment
77+
nid:
78+
label: ID
79+
datasource_id: 'entity:node'
80+
property_path: nid
81+
type: integer
82+
dependencies:
83+
module:
84+
- node
85+
title:
86+
label: Title
87+
datasource_id: 'entity:node'
88+
property_path: title
89+
type: string
90+
dependencies:
91+
module:
92+
- node
93+
type:
94+
label: 'Content type'
95+
datasource_id: 'entity:node'
96+
property_path: type
97+
type: string
98+
dependencies:
99+
module:
100+
- node
101+
datasource_settings:
102+
'entity:comment':
103+
bundles:
104+
default: false
105+
selected:
106+
- comment
107+
languages:
108+
default: false
109+
selected:
110+
- en
111+
'entity:node':
112+
bundles:
113+
default: false
114+
selected:
115+
- article
116+
- page
117+
languages:
118+
default: false
119+
selected:
120+
- en
121+
processor_settings:
122+
add_url: { }
123+
aggregated_field: { }
124+
language_with_fallback: { }
125+
rendered_item: { }
126+
tracker_settings:
127+
default:
128+
indexing_order: fifo
129+
options:
130+
index_directly: true
131+
cron_limit: 50
132+
server: elasticsearch_docker
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
uuid: b76da696-76de-410f-a6ec-44919e9b511e
2+
langcode: en
3+
status: true
4+
dependencies:
5+
module:
6+
- elasticsearch_connector
7+
id: elasticsearch_docker
8+
name: 'Elasticsearch Docker'
9+
description: 'Elasticsearch instance encapsulated within a Docker container.'
10+
backend: elasticsearch
11+
backend_config:
12+
cluster_settings:
13+
cluster: elasticsearch_docker
14+
fuzziness: auto
15+
scheme: http
16+
host: localhost
17+
port: '9200'
18+
path: ''
19+
excerpt: false
20+
retrieve_data: false
21+
highlight_data: false
22+
http_method: AUTO
23+
autocorrect_spell: true
24+
autocorrect_suggest_words: true
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
default_cron_limit: 50
2+
cron_worker_runtime: 15
3+
default_tracker: default
4+
tracking_page_size: 100
5+
_core:
6+
default_config_hash: n7m4vlCPoB3_1C7l13LKYsifmLur4QR71mOD7S_5hSE
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,101 @@
1+
uuid: ba6b9f8f-a19b-4645-89d8-b5d49b9e84c9
2+
langcode: en
3+
status: true
4+
dependencies:
5+
module:
6+
- search_api
7+
_core:
8+
default_config_hash: mP2RtTYiDo6dp1q8hXxx2Wgr_1ZvtN7AijjXrwFQV_k
9+
id: search-api-index-fields
10+
label: 'Fields indexed in this index'
11+
module: search_api
12+
routes:
13+
-
14+
route_name: entity.search_api_index.fields
15+
tips:
16+
search-api-index-fields-introduction:
17+
id: search-api-index-fields-introduction
18+
plugin: text
19+
label: 'Fields indexed in this index'
20+
body: 'This page lists which fields are indexed in this index, grouped by datasource. (Datasource-independent fields are listed under "General".) Indexed fields can be used to add filters or sorting to views or other search displays based on the index. Fields with type "Fulltext" can also be used for fulltext searching.'
21+
weight: 1
22+
search-api-index-fields-add:
23+
id: search-api-index-fields-add
24+
plugin: text
25+
label: 'Add fields'
26+
body: 'With the "Add fields" button you can add additional fields to this index.'
27+
weight: 2
28+
attributes:
29+
data-class: 'button-action[data-drupal-selector="edit-add-field"]'
30+
search-api-index-fields-label:
31+
id: search-api-index-fields-label
32+
plugin: text
33+
label: Label
34+
body: 'A label for the field that will be used to refer to the field in most places in the user interface.'
35+
weight: 3
36+
attributes:
37+
data-class: 'details-wrapper:nth(0) table thead th:nth(0)'
38+
search-api-index-fields-machine-name:
39+
id: search-api-index-fields-machine-name
40+
plugin: text
41+
label: 'Machine name'
42+
body: 'The internal ID to use for this field. Can safely be ignored by inexperienced users in most cases. Changing a field''s machine name requires reindexing of the index.'
43+
weight: 4
44+
attributes:
45+
data-class: 'details-wrapper:nth(0) table thead th:nth(1)'
46+
search-api-index-fields-property-path:
47+
id: search-api-index-fields-property-path
48+
plugin: text
49+
label: 'Property path'
50+
body: 'The internal relationship linking the indexed item to the field, with links being separated by colons (:). This can be useful information for advanced users, but can otherwise be ignored.'
51+
weight: 5
52+
attributes:
53+
data-class: 'details-wrapper:nth(0) table thead th:nth(2)'
54+
search-api-index-fields-type:
55+
id: search-api-index-fields-type
56+
plugin: text
57+
label: Type
58+
body: 'The data type to use when indexing the field. Determines how a field can be used in searches. For information on the available types, see the <a href="#search-api-data-types-table">"Data types" box</a> at the bottom of the page.'
59+
weight: 6
60+
attributes:
61+
data-class: 'details-wrapper:nth(0) table thead th:nth(3)'
62+
search-api-index-fields-boost:
63+
id: search-api-index-fields-boost
64+
plugin: text
65+
label: Boost
66+
body: 'Only applicable for fulltext fields. Determines how "important" the field is compared to other fulltext fields, to influence scoring of fulltext searches.'
67+
weight: 7
68+
attributes:
69+
data-class: 'details-wrapper:nth(0) table thead th:nth(4)'
70+
search-api-index-fields-edit:
71+
id: search-api-index-fields-edit
72+
plugin: text
73+
label: 'Edit field'
74+
body: 'Some fields have additional configuration available, in which case an "Edit" link is displayed in the "Operations" column.'
75+
weight: 8
76+
attributes:
77+
data-class: 'details-wrapper:nth(0) table tbody td:nth(5) a'
78+
search-api-index-fields-remove:
79+
id: search-api-index-fields-remove
80+
plugin: text
81+
label: 'Remove field'
82+
body: 'Removes a field from the index again. (Note: Sometimes, a field is required (for example, by a processor) and cannot be removed.)'
83+
weight: 9
84+
attributes:
85+
data-class: 'details-wrapper:nth(0) table tbody td:nth(6) a'
86+
search-api-index-fields-submit:
87+
id: search-api-index-fields-submit
88+
plugin: text
89+
label: 'Save changes'
90+
body: 'This saves all changes made to the fields for this index. Until this button is pressed, all added, changed or removed fields will only be stored temporarily and not effect the actual index used in the rest of the site.'
91+
weight: 10
92+
attributes:
93+
data-id: edit-actions-submit
94+
search-api-index-fields-cancel:
95+
id: search-api-index-fields-cancel
96+
plugin: text
97+
label: 'Cancel changes'
98+
body: 'If you have made changes to the index''s fields but not yet saved them, the "Cancel" link lets you discard those changes.'
99+
weight: 10
100+
attributes:
101+
data-id: edit-actions-cancel
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
uuid: 6174183d-6406-4c70-bbfd-c7a0fe2d4372
2+
langcode: en
3+
status: true
4+
dependencies:
5+
module:
6+
- search_api
7+
_core:
8+
default_config_hash: TK3PjpP4I6WFh5JDY_L_c5XCiTyAZBBA9z0M9pcGjzo
9+
id: search-api-index-form
10+
label: 'Add or edit a Search API index'
11+
module: search_api
12+
routes:
13+
-
14+
route_name: entity.search_api_index.add_form
15+
-
16+
route_name: entity.search_api_index.edit_form
17+
tips:
18+
search-api-index-form-introduction:
19+
id: search-api-index-form-introduction
20+
plugin: text
21+
label: 'Adding or editing an index'
22+
body: 'This form can be used to edit an existing index or add a new index to your site. Indexes define a set of data that will be indexed and can then be searched.'
23+
weight: 1
24+
search-api-index-form-name:
25+
id: search-api-index-form-name
26+
plugin: text
27+
label: 'Index name'
28+
body: 'Enter a name to identify this index. For example, "Content index". This will only be displayed in the admin user interface.'
29+
weight: 2
30+
attributes:
31+
data-id: edit-name
32+
search-api-index-form-datasources:
33+
id: search-api-index-form-datasources
34+
plugin: text
35+
label: Datasources
36+
body: 'Datasources define the types of items that will be indexed in this index. By default, all content entities (like content, comments and taxonomy terms) will be available here, but modules can also add their own.'
37+
weight: 3
38+
attributes:
39+
data-id: edit-datasources
40+
search-api-index-form-tracker:
41+
id: search-api-index-form-tracker
42+
plugin: text
43+
label: Tracker
44+
body: 'An index''s tracker is the system that keeps track of which items there are available for the index, and which of them still need to be indexed. Changing the tracker of an existing index will lead to reindexing of all items.'
45+
weight: 4
46+
attributes:
47+
data-id: edit-tracker
48+
search-api-index-form-server:
49+
id: search-api-index-form-server
50+
plugin: text
51+
label: Server
52+
body: 'The search server that the index should use for indexing and searching. If no server is selected here, the index cannot be enabled. An index can only have one server, but a server can have any number of indexes.'
53+
weight: 5
54+
attributes:
55+
data-id: edit-server
56+
search-api-index-form-description:
57+
id: search-api-index-form-description
58+
plugin: text
59+
label: 'Index description'
60+
body: 'Optionally, enter a description to explain the function of the index in more detail. This will only be displayed in the admin user interface.'
61+
weight: 6
62+
attributes:
63+
data-id: edit-description
64+
search-api-index-form-options:
65+
id: search-api-index-form-options
66+
plugin: text
67+
label: 'Advanced options'
68+
body: 'These options allow more detailed configuration of index behavior, but can usually safely be ignored by inexperienced users.'
69+
weight: 7
70+
attributes:
71+
data-id: edit-options

0 commit comments

Comments
 (0)