Skip to content

Commit 9d9963d

Browse files
committed
First round of index tuning
- changes text analysis - adds weigthts for content fields Fixes: #19
1 parent eb647aa commit 9d9963d

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,14 @@
11
number_of_shards: 4
22
number_of_replicas: 1
3+
analysis:
4+
filter:
5+
typo3_stemmer:
6+
type: stemmer
7+
language: minimal_english
8+
analyzer:
9+
typo3_analyzer:
10+
filter:
11+
- lowercase
12+
- asciifolding
13+
- typo3_stemmer
14+
tokenizer: standard

src/Repository/ElasticRepository.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,7 @@ public function findByQuery(SearchDemand $searchDemand): array
188188
[
189189
'query_string' => [
190190
'query' => $searchTerms,
191+
'fields' => [ 'page_title^10', 'snippet_title^20', 'snippet_content' ]
191192
],
192193
],
193194
],

0 commit comments

Comments
 (0)