Albirew/nyaa-pantsu
Archivé
1
0
Bifurcation 0

Fix searching for frame_arms (#1061)

Just mapping '_' to ' ' for both search and indexing
Cette révision appartient à :
tomleb 2017-06-23 21:56:58 -04:00 révisé par ewhal
Parent 7788a018f5
révision ca87b242ae

Voir le fichier

@ -10,6 +10,7 @@ settings:
- standard
- lowercase
char_filter:
- underscore_to_space
- dash_to_underscore
nyaapantsu_index_analyzer:
@ -19,6 +20,7 @@ settings:
- lowercase
- e_ngram_filter
char_filter:
- underscore_to_space
- dash_to_underscore
filter:
@ -33,6 +35,11 @@ settings:
pattern: "([^\\s]+)-(?=[^\\s]+)"
replacement: "$1_"
underscore_to_space:
type: mapping
mappings:
- "_ => \\u0020"
index:
number_of_shards: 1
number_of_replicas: 0