Extracting the higher level domains from the domain using pipeline

how to construct higher level domains of a domain in elasticsearch pipeline.
input data:

  "domain": "test.main.site.com"

after extracting we have this:

  "domain": "test.user.site.net",
  "higherLevelDomains": [

Depending on the use case I'd use https://www.elastic.co/guide/en/elasticsearch/reference/current/analysis-pathhierarchy-tokenizer.html

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