# Bigrams for selected keywords

**URL:** <https://discuss.elastic.co/t/bigrams-for-selected-keywords/74735>\
**Category:** Elasticsearch\
**Created:** [February 11, 2017, 2:19am UTC](https://discuss.elastic.co/t/bigrams-for-selected-keywords/74735 "2017-02-11T02:19:37Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Manvir\_Basra](https://avatars.discourse-cdn.com/v4/letter/m/e95f7d/32.png) [@Manvir\_Basra](https://discuss.elastic.co/u/Manvir_Basra)\
**Post date:** [February 11, 2017, 2:19am UTC](https://discuss.elastic.co/t/bigrams-for-selected-keywords/74735/1 "2017-02-11T02:19:37Z")

</div>

Hi,

I have following data with a list of special keywords (e.g.EAST, WEST). These special keywords are associated with numbers. Therefore regular tokenizer doesn't produce relevant tokens since I want bigrams (word and value) for these special keywords only. For rest of words i want regular tokens.

Note: there is semicolon after EAST numbers and WEST which is delimiter for values of given keyword

Any advice how this can be achieved?

Data - EAST 1,2,3,4;WEST 4,9;Queen Street north tower

Tokens  
EAST 1  
EAST 2  
EAST 3  
EAST 4  
WEST 4  
WEST 9  
Queen  
Street  
north  
tower

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [February 13, 2017, 8:34am UTC](https://discuss.elastic.co/t/bigrams-for-selected-keywords/74735/2 "2017-02-13T08:34:33Z")

</div>

I think it would be easier to do this before pushing it into Elasticsearch if you can.

---

<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:** [March 13, 2017, 8:34am UTC](https://discuss.elastic.co/t/bigrams-for-selected-keywords/74735/3 "2017-03-13T08:34:44Z")

</div>

Closed on March 13, 2017, 8:34am UTC

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