Skip to content

Commit

Permalink
Updated the search. Better fields to search on. Changed back to multi…
Browse files Browse the repository at this point in the history
…ple words parse mode. Added some extra configs
  • Loading branch information
Magnar Eivind Martinsen committed Oct 28, 2024
1 parent d30dd61 commit e4c1744
Show file tree
Hide file tree
Showing 10 changed files with 423 additions and 123 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
langcode: en
status: false
dependencies:
module:
- metsis_search
- system
theme:
id: metsissearchmap
region: content
weight: -13
provider: null
plugin: metsis_search_map
settings:
id: metsis_search_map
label: 'METSIS Search Map'
label_display: '0'
provider: metsis_search
visibility:
request_path:
id: request_path
negate: false
context_mapping: { }
pages: "/metsis/search\r\n/metsis/elements"
12 changes: 12 additions & 0 deletions metsis/metsis_search/config/install/search_api.index.metsis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -761,6 +761,12 @@ field_settings:
datasource_id: solr_document
property_path: personnel_technical_role
type: string
phrase_suggester:
label: 'Phrase suggester'
datasource_id: solr_document
property_path: phrase_suggester
type: text
boost: 1.5
platform_ancillary_cloud_coverage:
label: 'Platform ancillary cloud coverage'
datasource_id: solr_document
Expand Down Expand Up @@ -1133,6 +1139,12 @@ field_settings:
property_path: title
type: text
boost: 1.5
title_en:
label: 'Title en'
datasource_id: solr_document
property_path: title_en
type: text
boost: 1.5
use_constraint_identifier:
label: 'Use constraint_identifier'
datasource_id: solr_document
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,21 @@ field_settings:
datasource_id: solr_document
property_path: collection
type: string
data_access_url_ftp:
label: 'Data access url ftp'
datasource_id: solr_document
property_path: data_access_url_ftp
type: string
data_access_url_http:
label: 'Data access url http'
datasource_id: solr_document
property_path: data_access_url_http
type: string
data_access_url_odata:
label: 'Data access url odata'
datasource_id: solr_document
property_path: data_access_url_odata
type: string
data_access_url_ogc_wms:
label: 'Data access url ogc wms'
datasource_id: solr_document
Expand Down Expand Up @@ -127,6 +142,12 @@ field_settings:
datasource_id: solr_document
property_path: metadata_status
type: string
phrase_suggester:
label: 'Phrase suggester'
datasource_id: solr_document
property_path: phrase_suggester
type: text
boost: 1.5
project_long_name:
label: 'Project long name'
datasource_id: solr_document
Expand Down Expand Up @@ -177,6 +198,12 @@ field_settings:
datasource_id: solr_document
property_path: temporal_extent_start_date
type: date
text_suggester:
label: 'Text suggester'
datasource_id: solr_document
property_path: text_suggester
type: text
boost: 1.3
thumbnail_url:
label: 'Thumbnail URL'
datasource_id: solr_document
Expand All @@ -194,6 +221,12 @@ field_settings:
property_path: title
type: text
boost: 1.5
title_en:
label: 'Title en'
datasource_id: solr_document
property_path: title_en
type: text
boost: 1.5
datasource_settings:
solr_document:
id_field: id
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ backend_config:
connector: standard
connector_config:
scheme: http
host: solr
host: metsis-solr.met.no
port: 8983
path: /
core: testcore
Expand Down
10 changes: 6 additions & 4 deletions metsis/metsis_search/config/install/views.view.metsis_search.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ langcode: en
status: true
dependencies:
config:
- block.block.metsis_metsissearchmap
- block.block.metsissearchmap
- search_api.index.metsis
module:
- better_exposed_filters
Expand Down Expand Up @@ -2743,12 +2743,14 @@ display:
default_group: All
default_group_multiple: { }
group_items: { }
parse_mode: sloppy_phrase
parse_mode: terms
min_length: null
fields:
- abstract
- full_text
- title
- phrase_suggester
- text_suggester
- title_en
is_parent:
id: is_parent
table: search_api_index_metsis
Expand Down Expand Up @@ -3310,7 +3312,7 @@ display:
admin_label: 'Metsis Search Map Block'
plugin_id: entity
empty: false
target: metsis_metsissearchmap
target: metsissearchmap
view_mode: default
tokenize: false
bypass_access: true
Expand Down
Loading

0 comments on commit e4c1744

Please sign in to comment.