# Tokenizing based on special characters coupled with shingles

**URL:** https://discuss.elastic.co/t/tokenizing-based-on-special-characters-coupled-with-shingles/165166
**Category:** Elasticsearch
**Created:** [January 22, 2019, 7:03am UTC](https://discuss.elastic.co/t/tokenizing-based-on-special-characters-coupled-with-shingles/165166 "2019-01-22T07:03:29Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Abhilash\_B](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/abhilash_b/32/40270_2.png) [@Abhilash\_B](https://discuss.elastic.co/u/Abhilash_B)
#### Post date: [January 22, 2019, 7:03am UTC](https://discuss.elastic.co/t/tokenizing-based-on-special-characters-coupled-with-shingles/165166/1 "2019-01-22T07:03:29Z")

</div>

Hey,

I have this string "cgi-bin/auth?Login=igorusty@yandex.ru&Password=kweinfsdaf", I would want the following tokens "cgi-bin", "cgi-bin/auth", "cgi-bin/auth?Login"....etc. Basically when I search with a match query for "cgi-bin" or "cgi-bin/auth". I should be able to retrieve the record with the aforementioned string present in it. Any help is appreciated.

Thanks

---

<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: [February 19, 2019, 7:03am UTC](https://discuss.elastic.co/t/tokenizing-based-on-special-characters-coupled-with-shingles/165166/2 "2019-02-19T07:03:33Z")

</div>

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