Bugzilla – Attachment 114234 Details for
Bug 27153
ElasticSearch should search keywords apostrophe blind
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 27153: Default to apostrophe blind search
Bug-27153-Default-to-apostrophe-blind-search.patch (text/plain), 1.18 KB, created by
Martin Renvoize
on 2020-12-07 16:24:05 UTC
(
hide
)
Description:
Bug 27153: Default to apostrophe blind search
Filename:
MIME Type:
Creator:
Martin Renvoize
Created:
2020-12-07 16:24:05 UTC
Size:
1.18 KB
patch
obsolete
>From 99a453ffcfee4b55474d9da559febfba2486dde2 Mon Sep 17 00:00:00 2001 >From: Jonathan Field <jonathan.field@ptfs-europe.com> >Date: Mon, 7 Dec 2020 16:21:54 +0000 >Subject: [PATCH] Bug 27153: Default to apostrophe blind search > >Keyword searching in elasticsearch should be apostrophe blind; this >patch updates the default configuration to filter apostrophe's. >--- > admin/searchengine/elasticsearch/index_config.yaml | 6 ++++++ > 1 file changed, 6 insertions(+) > >diff --git a/admin/searchengine/elasticsearch/index_config.yaml b/admin/searchengine/elasticsearch/index_config.yaml >index e424e92a0b..862eba7a4a 100644 >--- a/admin/searchengine/elasticsearch/index_config.yaml >+++ b/admin/searchengine/elasticsearch/index_config.yaml >@@ -14,6 +14,7 @@ index: > tokenizer: icu_tokenizer > filter: > - icu_folding >+ - apostrophe > analyzer_stdno: > tokenizer: whitespace > filter: >@@ -41,4 +42,9 @@ index: > type: pattern_replace > pattern: '\s*(?<!\p{Lu})[.\-,;]*\s*$' > replacement: '' >+ filter: >+ apostrophe: >+ type: pattern_replace >+ pattern: "'" >+ replacement: '' > index.mapping.total_fields.limit: 10000 >-- >2.20.1
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 27153
:
114234
|
139969
|
155145
|
155146
|
155147
|
155148
|
155149
|
155230
|
155502
|
155508
|
155509
|
155510
|
155511
|
155512
|
155513
|
155514
|
155515
|
155516
|
155517
|
157732
|
157733
|
157734
|
157735
|
157736
|
157737