# Extend Similarity with token type attribute

**URL:** <https://discuss.elastic.co/t/extend-similarity-with-token-type-attribute/25047>\
**Category:** Elasticsearch\
**Created:** [July 7, 2015, 2:17pm UTC](https://discuss.elastic.co/t/extend-similarity-with-token-type-attribute/25047 "2015-07-07T14:17:23Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ptitpoulpe](https://avatars.discourse-cdn.com/v4/letter/p/ce7236/32.png) [@ptitpoulpe](https://discuss.elastic.co/u/ptitpoulpe)\
**Post date:** [July 7, 2015, 2:17pm UTC](https://discuss.elastic.co/t/extend-similarity-with-token-type-attribute/25047/1 "2015-07-07T14:17:23Z")

</div>

I wonder if it is possible to take in account the token type attribute for the similarity scoring.

For instance, if I search the token "cleaning" with the type "V", I want to get documents with token "cleaning" with the type "V" but also documents with token "cleaning" with the type "A" (but with a lower score).

---

<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:** [July 6, 2017, 12:03am UTC](https://discuss.elastic.co/t/extend-similarity-with-token-type-attribute/25047/2 "2017-07-06T00:03:10Z")

</div>

Closed on July 6, 2017, 12:03am UTC


