-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #59 from dianaalinairimie/issue_31
Added Search API + search form. See #31.
- Loading branch information
Showing
23 changed files
with
1,343 additions
and
422 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
Large diffs are not rendered by default.
Oops, something went wrong.
23 changes: 23 additions & 0 deletions
23
config/sync/block.block.exposedformsearch_contentcontent_search.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,23 @@ | ||
uuid: 7d407d16-fb74-4671-9738-ae0e57aebab4 | ||
langcode: en | ||
status: true | ||
dependencies: | ||
config: | ||
- views.view.search_content | ||
module: | ||
- views | ||
theme: | ||
- da | ||
id: exposedformsearch_contentcontent_search | ||
theme: da | ||
region: header | ||
weight: 0 | ||
provider: null | ||
plugin: 'views_exposed_filter_block:search_content-content_search' | ||
settings: | ||
id: 'views_exposed_filter_block:search_content-content_search' | ||
label: '' | ||
provider: views | ||
label_display: visible | ||
views_label: '' | ||
visibility: { } |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -4,6 +4,7 @@ url: | |
source: path_prefix | ||
prefixes: | ||
en: '' | ||
'': null | ||
domains: | ||
en: '' | ||
selected_langcode: site_default | ||
|
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,118 @@ | ||
uuid: 9e61d453-4461-4b39-96ce-e381feaede9a | ||
langcode: en | ||
status: true | ||
dependencies: | ||
config: | ||
- field.storage.node.body | ||
- search_api.server.content | ||
module: | ||
- search_api | ||
- node | ||
id: content | ||
name: Content | ||
description: '' | ||
read_only: false | ||
field_settings: | ||
nid: | ||
label: ID | ||
datasource_id: 'entity:node' | ||
property_path: nid | ||
type: integer | ||
title: | ||
label: Title | ||
datasource_id: 'entity:node' | ||
property_path: title | ||
type: text | ||
body: | ||
label: Body | ||
datasource_id: 'entity:node' | ||
property_path: body | ||
type: text | ||
dependencies: | ||
config: | ||
- field.storage.node.body | ||
uid: | ||
label: 'Authored by' | ||
datasource_id: 'entity:node' | ||
property_path: uid | ||
type: integer | ||
type: | ||
label: 'Content type' | ||
datasource_id: 'entity:node' | ||
property_path: type | ||
type: string | ||
datasource_settings: | ||
'entity:node': | ||
bundles: | ||
default: true | ||
selected: { } | ||
languages: | ||
default: false | ||
selected: | ||
- en | ||
processor_settings: | ||
aggregated_field: { } | ||
rendered_item: { } | ||
html_filter: | ||
all_fields: false | ||
fields: | ||
- title | ||
- body | ||
- type | ||
title: true | ||
alt: true | ||
tags: | ||
h1: 5 | ||
h2: 3 | ||
h3: 2 | ||
strong: 2 | ||
b: 2 | ||
weights: | ||
preprocess_index: -15 | ||
preprocess_query: -15 | ||
highlight: | ||
highlight: always | ||
highlight_partial: true | ||
excerpt: true | ||
excerpt_length: 256 | ||
exclude_fields: { } | ||
prefix: '<strong>' | ||
suffix: '</strong>' | ||
weights: | ||
postprocess_query: 0 | ||
tokenizer: | ||
all_fields: false | ||
fields: | ||
- title | ||
- body | ||
spaces: '' | ||
overlap_cjk: 1 | ||
minimum_word_size: '3' | ||
weights: | ||
preprocess_index: -6 | ||
preprocess_query: -6 | ||
add_url: { } | ||
transliteration: | ||
all_fields: false | ||
fields: | ||
- title | ||
- body | ||
- type | ||
weights: | ||
preprocess_index: -20 | ||
preprocess_query: -20 | ||
ignorecase: | ||
all_fields: false | ||
fields: | ||
- title | ||
- body | ||
- type | ||
weights: | ||
preprocess_index: -20 | ||
preprocess_query: -20 | ||
tracker_settings: | ||
default: { } | ||
options: | ||
index_directly: true | ||
cron_limit: 50 | ||
server: content |
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,18 @@ | ||
uuid: bc09713d-77b5-4f67-bc63-ea39184db074 | ||
langcode: en | ||
status: true | ||
dependencies: | ||
module: | ||
- search_api_db | ||
id: content | ||
name: Content | ||
description: '' | ||
backend: search_api_db | ||
backend_config: | ||
database: 'default:default' | ||
database_text: '' | ||
min_chars: 4 | ||
partial_matches: true | ||
autocomplete: | ||
suggest_suffix: true | ||
suggest_words: true |
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,6 @@ | ||
default_cron_limit: 50 | ||
cron_worker_runtime: 15 | ||
default_tracker: default | ||
tracking_page_size: 100 | ||
_core: | ||
default_config_hash: n7m4vlCPoB3_1C7l13LKYsifmLur4QR71mOD7S_5hSE |
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,3 @@ | ||
autocomplete_max_occurrences: 0.9 | ||
_core: | ||
default_config_hash: fEmluJPpUL5dVqkWi0Fw89OlZYLhjQqyZIl6HWCDE1s |
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
Oops, something went wrong.