Pattern Capture Token Filter giving same start and end offset position

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?

Elasticsearch 5.6 is EOL and no longer supported. Please upgrade ASAP.

(This is an automated response from your friendly Elastic bot. Please report this post if you have any suggestions or concerns :elasticheart: )

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.