I was following the Pattern Capture Token Filter example on the Elasticsearch 5.6 documentation. I tried running one example on my local elastic instance. I got the tokens but they all are showing the same start and end offsets. I know due to the default behaviour of Pattern Capture Token Filter, I am getting all the tokens with same start and end offsets. But, my question is that is there a work around by which I can get the start and end offsets or position of the generated tokens from the matched string?