Skip to content

Commit

Permalink
Lunr configuration.
Browse files Browse the repository at this point in the history
  • Loading branch information
tannguyen04 committed Aug 22, 2024
1 parent f1960ee commit ca5c418
Show file tree
Hide file tree
Showing 5 changed files with 169 additions and 0 deletions.
22 changes: 22 additions & 0 deletions config/sync/block.block.fstheme_searchform.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
uuid: c8ae2fec-5137-4af3-993f-41a275cbb4b7
langcode: en
status: true
dependencies:
module:
- search_api_lunr
theme:
- fstheme
id: fstheme_searchform
theme: fstheme
region: footer
weight: 0
provider: null
plugin: search_api_lunr_form
settings:
id: search_api_lunr_form
label: 'Search form'
label_display: '0'
provider: search_api_lunr
index: content
autocomplete_index: content
visibility: { }
5 changes: 5 additions & 0 deletions config/sync/core.extension.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ module:
gin_toolbar: 0
honeypot: 0
image: 0
jquery_ui: 0
jquery_ui_autocomplete: 0
jquery_ui_menu: 0
link: 0
linkit: 0
media: 0
Expand All @@ -43,6 +46,8 @@ module:
path: 0
path_alias: 0
redirect: 0
search_api: 0
search_api_lunr: 0
shortcut: 0
simple_sitemap: 0
system: 0
Expand Down
102 changes: 102 additions & 0 deletions config/sync/search_api.index.content.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,102 @@
uuid: 01b4a3c8-719f-4a05-8afd-a159d54f20a2
langcode: en
status: true
dependencies:
config:
- field.storage.node.lead
- search_api.server.lunr
module:
- search_api_lunr
- node
- search_api
id: content
name: Content
description: ''
read_only: false
field_settings:
lead:
label: 'Lead or summary'
datasource_id: 'entity:node'
property_path: lead
type: search_api_lunr_summary
dependencies:
config:
- field.storage.node.lead
node_grants:
label: 'Node access information'
property_path: search_api_node_grants
type: string
indexed_locked: true
type_locked: true
hidden: true
status:
label: Boolean
datasource_id: 'entity:node'
property_path: status
type: boolean
indexed_locked: true
type_locked: true
dependencies:
module:
- node
title:
label: Title
datasource_id: 'entity:node'
property_path: title
type: search_api_lunr_label
boost: 21.0
dependencies:
module:
- node
uid:
label: 'Entity reference'
datasource_id: 'entity:node'
property_path: uid
type: integer
indexed_locked: true
type_locked: true
dependencies:
module:
- node
url:
label: URI
property_path: search_api_url
type: search_api_lunr_url
configuration:
absolute: false
datasource_settings:
'entity:node':
bundles:
default: true
selected: { }
languages:
default: true
selected: { }
processor_settings:
add_url: { }
aggregated_field: { }
content_access:
weights:
preprocess_query: -30
custom_value: { }
entity_status: { }
entity_type: { }
ignorecase:
weights:
preprocess_index: -20
preprocess_query: -20
all_fields: false
fields:
- lead
- title
- url
language_with_fallback: { }
rendered_item: { }
tracker_settings:
default:
indexing_order: fifo
options:
cron_limit: 50
index_directly: true
track_changes_in_references: true
server: lunr
12 changes: 12 additions & 0 deletions config/sync/search_api.server.lunr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
uuid: 506e71ca-0677-44bd-ba77-f1ff2f89de29
langcode: en
status: true
dependencies:
module:
- search_api_lunr
id: lunr
name: Lunr
description: ''
backend: search_api_lunr
backend_config:
index_file_limit: 5
28 changes: 28 additions & 0 deletions config/sync/search_api.settings.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
_core:
default_config_hash: b2zIRm9Jv3SB60NYdZkZHxH8-KdEa-Xa48-4NsIi4lg
default_cron_limit: 50
cron_worker_runtime: 15
default_tracker: default
tracking_page_size: 100
boost_factors:
- 0.0
- 0.1
- 0.2
- 0.3
- 0.5
- 0.6
- 0.7
- 0.8
- 0.9
- 1.0
- 1.1
- 1.2
- 1.3
- 1.4
- 1.5
- 2.0
- 3.0
- 5.0
- 8.0
- 13.0
- 21.0

0 comments on commit ca5c418

Please sign in to comment.