From 535be9c8bd39d7db67681b9a1f35b1cd07cf64e2 Mon Sep 17 00:00:00 2001 From: aldacron Date: Sun, 4 Jun 2017 23:03:32 -0700 Subject: [PATCH] Fixes #227 --- es_mapping.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/es_mapping.yml b/es_mapping.yml index 3490fd9..036db5b 100644 --- a/es_mapping.yml +++ b/es_mapping.yml @@ -22,6 +22,7 @@ settings: - lowercase - my_ngram - word_delimit + - trim_zero filter: my_ngram: type: edgeNGram @@ -30,6 +31,9 @@ settings: resolution: type: pattern_capture patterns: ["(\\d+)[xX](\\d+)"] + trim_zero: + type: pattern_capture + patterns: ["0*([0-9]*)"] word_delimit: type: word_delimiter preserve_original: true