Hello, wonder anyone here could help

I was transfering this json to a yml format to include in the yml config 
file, but the patterns always cause a parse exception.

{
   "settings" : {
      "analysis" : {
         "filter" : {
            "code" : {
               "type" : "pattern_capture",
               "preserve_original" : 1,
               "patterns" : [
                  "(([a-z]+)(\d*))"
               ]
            }
         },
         "analyzer" : {
            "code" : {
               "tokenizer" : "pattern",
               "filter" : [ "code", "lowercase" ]
            }
         }
      }
   }
}

      code:
          type: pattern_capture
          preserve_original: false
          patterns: [/(([a-z]+)(\d*))/]

-- 
You received this message because you are subscribed to the Google Groups 
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to elasticsearch+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elasticsearch/3bc3a9c1-de1a-48ab-a026-5cddf303ef5b%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to