Pattern Analyzer with separator tokens

Hi,

I use noword pattern as analyzer:

"settings" : {
"analysis" : {
"analyzer": {
"nonword" : {
"type": "pattern",
"pattern":"[^\w]+"
}
}
}
}

Beside word tokens, I also want to use non-word as tokens. Is it possible?

Thanks,
Duy

--