# Create routes for custom routing

**URL:** <https://discuss.elastic.co/t/create-routes-for-custom-routing/177786>\
**Category:** Elasticsearch\
**Created:** [April 22, 2019, 2:36am UTC](https://discuss.elastic.co/t/create-routes-for-custom-routing/177786 "2019-04-22T02:36:29Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![bhavayAnand9](https://avatars.discourse-cdn.com/v4/letter/b/e99b99/32.png) [@bhavayAnand9](https://discuss.elastic.co/u/bhavayAnand9)\
**Post date:** [April 22, 2019, 2:36am UTC](https://discuss.elastic.co/t/create-routes-for-custom-routing/177786/1 "2019-04-22T02:36:29Z")

</div>

Hi! I'm pretty new with elastic search and now exploring custom-routing, so I need a piece of advice. I need to create an index which will contain a field clientID and some related data with it. I want to create a custom route based on its clientID like doing a modulus operation with 7 on clientID and create a route with the outcome of modulus operation but the problem is clientID is a mongoID type field. So What can I do in that case?  
Any suggestions will be appreciated and please let me know If you something didn't add up right in my question.

---

<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:** [May 20, 2019, 2:36am UTC](https://discuss.elastic.co/t/create-routes-for-custom-routing/177786/2 "2019-05-20T02:36:36Z")

</div>

Closed on May 20, 2019, 2:36am UTC

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