# Catenate\_numbers - way to avoid joining on space and comma?

**URL:** <https://discuss.elastic.co/t/catenate-numbers-way-to-avoid-joining-on-space-and-comma/288690>\
**Category:** Elasticsearch\
**Created:** [November 9, 2021, 1:19am UTC](https://discuss.elastic.co/t/catenate-numbers-way-to-avoid-joining-on-space-and-comma/288690 "2021-11-09T01:19:24Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![fcntl](https://avatars.discourse-cdn.com/v4/letter/f/e480ec/32.png) [@fcntl](https://discuss.elastic.co/u/fcntl)\
**Post date:** [November 9, 2021, 1:19am UTC](https://discuss.elastic.co/t/catenate-numbers-way-to-avoid-joining-on-space-and-comma/288690/1 "2021-11-09T01:19:24Z")

</div>

catenate\_numbers is useful for joining numbers separated by hyphen, as it allows a non-segmented search term to match against segmented numbers in the document, e.g.

Document: 02 6287-1455  
Search term: 0262871455 (will match with catenate\_numbers)

However, sometimes numbers in the document might be like:  
0262871455 0262871477 0262871499  
or  
0262871455,0262871477, 0262871499

However with catenate\_numbers both will become one long string 026287145502628714770262871499 will which probably never match any search term.

It would be nice if we could specify the character to/to not join on with catenate\_numbers, to get around this problem.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [December 7, 2021, 1:19am UTC](https://discuss.elastic.co/t/catenate-numbers-way-to-avoid-joining-on-space-and-comma/288690/2 "2021-12-07T01:19:41Z")

</div>

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