Skip to content

Commit

Permalink
Merge pull request #59 from dianaalinairimie/issue_31
Browse files Browse the repository at this point in the history
Added Search API + search form. See #31.
  • Loading branch information
benelori authored Sep 8, 2017
2 parents f7f77e7 + 9ea15b5 commit a140963
Show file tree
Hide file tree
Showing 23 changed files with 1,343 additions and 422 deletions.
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
"drupal/redirect": "^1.0@alpha",
"drupal/simple_sitemap": "^2.9",
"drupal/yoast_seo": "^1.2",
"drupal/search_api": "^1.1",
"drush/drush": "~8.0",
"webflo/drupal-finder": "^0.2.1",
"webmozart/path-util": "^2.3"
Expand Down
787 changes: 444 additions & 343 deletions composer.lock

Large diffs are not rendered by default.

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: { }
22 changes: 0 additions & 22 deletions config/sync/block.block.nexus_search.yml

This file was deleted.

5 changes: 2 additions & 3 deletions config/sync/core.extension.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ module:
block: 0
block_content: 0
breakpoint: 0
checklistapi: 0
ckeditor: 0
color: 0
comment: 0
Expand Down Expand Up @@ -46,8 +45,8 @@ module:
redirect: 0
redirect_404: 0
rest: 0
search: 0
seo_checklist: 0
search_api: 0
search_api_db: 0
serialization: 0
shortcut: 0
simple_sitemap: 0
Expand Down
1 change: 1 addition & 0 deletions config/sync/language.negotiation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ url:
source: path_prefix
prefixes:
en: ''
'': null
domains:
en: ''
selected_langcode: site_default
Expand Down
15 changes: 0 additions & 15 deletions config/sync/search.page.node_search.yml

This file was deleted.

14 changes: 0 additions & 14 deletions config/sync/search.page.user_search.yml

This file was deleted.

22 changes: 0 additions & 22 deletions config/sync/search.settings.yml

This file was deleted.

118 changes: 118 additions & 0 deletions config/sync/search_api.index.content.yml
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
18 changes: 18 additions & 0 deletions config/sync/search_api.server.content.yml
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
6 changes: 6 additions & 0 deletions config/sync/search_api.settings.yml
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
3 changes: 3 additions & 0 deletions config/sync/search_api_db.settings.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
autocomplete_max_occurrences: 0.9
_core:
default_config_hash: fEmluJPpUL5dVqkWi0Fw89OlZYLhjQqyZIl6HWCDE1s
2 changes: 1 addition & 1 deletion config/sync/system.date.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ country:
default: ''
first_day: 0
timezone:
default: UTC
default: Europe/Bucharest
user:
configurable: true
warn: false
Expand Down
4 changes: 2 additions & 2 deletions config/sync/system.site.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
uuid: 6026f7d4-8f7e-4485-a6b8-0330c259e18f
name: 'Drupal Association Romania'
mail: lbene@pitechplus.com
name: 'Drupal Assoc'
mail: rosinegrean@gmail.com
slogan: ''
page:
403: ''
Expand Down
Loading

0 comments on commit a140963

Please sign in to comment.