Skip to content

Commit efa55ad

Browse files
Merge pull request #576 from UN-OCHA/develop
Hotfix search 20220207
2 parents 92721e9 + 9886dec commit efa55ad

5 files changed

+57
-130
lines changed

composer.json

-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@
2929
"drupal/address": "^1.6",
3030
"drupal/admin_denied": "^1.0",
3131
"drupal/chosen": "^2.7",
32-
"drupal/colorbox": "^1.4",
3332
"drupal/colors": "1.x-dev",
3433
"drupal/components": "^2.4",
3534
"drupal/conditional_fields": "^4.0@alpha",

composer.lock

+1-72
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

config/core.entity_view_display.file.image.colorbox.yml

-19
This file was deleted.

config/core.entity_view_mode.file.colorbox.yml

-10
This file was deleted.

config/search_api.index.default_solr_index.yml

+56-28
Original file line numberDiff line numberDiff line change
@@ -2,44 +2,41 @@ uuid: 88a3df33-8b17-477e-be5b-7e8ab6183446
22
langcode: en
33
status: true
44
dependencies:
5+
config:
6+
- field.storage.group.field_description
7+
- field.storage.node.field_iasc_audience
8+
- field.storage.node.field_document_type
9+
- field.storage.node.field_oa_date
10+
- field.storage.media.field_media_file
11+
- field.storage.node.field_media_files
12+
- field.storage.node.field_category
13+
- field.storage.node.field_published_date
14+
- search_api.server.default_solr_server
15+
- core.entity_view_mode.node.full
516
module:
617
- search_api_solr
718
- group
819
- node
920
- user
10-
- media
1121
- taxonomy
22+
- media
1223
- search_api
1324
- search_api_attachments
14-
config:
15-
- field.storage.node.field_iasc_audience
16-
- field.storage.media.field_media_file
17-
- field.storage.node.field_media_files
18-
- field.storage.node.field_document_type
19-
- field.storage.group.field_description
20-
- field.storage.node.field_oa_date
21-
- field.storage.node.field_published_date
22-
- field.storage.node.field_category
23-
- search_api.server.default_solr_server
24-
- core.entity_view_mode.node.full
2525
third_party_settings:
2626
search_api_solr:
2727
finalize: false
2828
commit_before_finalize: false
2929
commit_after_finalize: false
30-
multilingual:
31-
limit_to_content_language: false
32-
include_language_independent: true
3330
highlighter:
3431
maxAnalyzedChars: 51200
3532
fragmenter: regex
33+
usePhraseHighlighter: true
34+
highlightMultiTerm: true
35+
preserveMulti: false
3636
regex:
3737
slop: 0.5
3838
pattern: blank
3939
maxAnalyzedChars: 10000
40-
usePhraseHighlighter: true
41-
highlightMultiTerm: true
42-
preserveMulti: false
4340
highlight:
4441
mergeContiguous: false
4542
requireFieldMatch: false
@@ -63,6 +60,9 @@ third_party_settings:
6360
index_prefix: ''
6461
collection: ''
6562
timezone: ''
63+
multilingual:
64+
limit_to_content_language: false
65+
include_language_independent: true
6666
_core:
6767
default_config_hash: UxSOP7yd3TuBoCjjk6VjP8UcKfEWhAyiAYII6ZSAJx4
6868
id: default_solr_index
@@ -135,6 +135,14 @@ field_settings:
135135
dependencies:
136136
config:
137137
- field.storage.group.field_description
138+
field_document_type:
139+
label: 'Document Type'
140+
datasource_id: 'entity:node'
141+
property_path: field_document_type
142+
type: integer
143+
dependencies:
144+
config:
145+
- field.storage.node.field_document_type
138146
field_iasc_audience:
139147
label: Audience
140148
datasource_id: 'entity:node'
@@ -223,7 +231,7 @@ field_settings:
223231
datasource_id: 'entity:node'
224232
property_path: title
225233
type: text
226-
boost: !!float 8
234+
boost: !!float 3
227235
dependencies:
228236
module:
229237
- node
@@ -287,6 +295,9 @@ processor_settings:
287295
excluded_private: 0
288296
excluded_mimes: 'audio/x-aiff image/x-jg video/x-msvideo image/x-ms-bmp image/gif image/vnd.microsoft.icon video/quicktime audio/ogg video/ogg image/png image/x-photoshop audio/x-realaudio audio/x-pn-realaudio image/x-rgb video/x-flv'
289297
html_filter:
298+
weights:
299+
preprocess_index: -3
300+
preprocess_query: -6
290301
all_fields: false
291302
fields:
292303
- rendered_item
@@ -298,36 +309,53 @@ processor_settings:
298309
h2: 3
299310
h3: 2
300311
string: 2
301-
weights:
302-
preprocess_index: -3
303-
preprocess_query: -6
304312
language_with_fallback: { }
305313
rendered_item:
306314
weights:
307315
add_properties: 0
308316
pre_index_save: -10
309317
reverse_entity_references: { }
318+
solr_boost_more_recent:
319+
weights:
320+
preprocess_query: 0
321+
boosts:
322+
created:
323+
boost: !!float 5
324+
resolution: NOW
325+
m: '3.16e-13'
326+
a: !!float 10
327+
b: 0.1
328+
field_published_date:
329+
boost: !!float 21
330+
resolution: NOW
331+
m: '3.16e-13'
332+
a: !!float 10
333+
b: !!float 1
310334
solr_date_range:
311335
weights:
312336
preprocess_index: 0
313337
type_boost:
338+
weights:
339+
preprocess_index: 0
314340
boosts:
315341
'entity:group':
316-
datasource_boost: !!float 1
342+
datasource_boost: !!float 0
343+
bundle_boosts:
344+
iasc_group: !!float 0
345+
iasc_space: !!float 0
317346
'entity:node':
318-
datasource_boost: !!float 1
347+
datasource_boost: !!float 0
319348
bundle_boosts:
320349
announcement: !!float 3
350+
oa_event: !!float 0
321351
oa_wiki_page: !!float 5
322352
panopoly_landing_page: !!float 8
323353
panopoly_page: !!float 5
324-
weights:
325-
preprocess_index: 0
326354
tracker_settings:
327355
default:
328356
indexing_order: fifo
329357
options:
330-
index_directly: true
331-
track_changes_in_references: 0
332358
cron_limit: 50
359+
index_directly: true
360+
track_changes_in_references: false
333361
server: default_solr_server

0 commit comments

Comments
 (0)