# Sort property into document with levenshtein?

**URL:** <https://discuss.elastic.co/t/sort-property-into-document-with-levenshtein/100801>\
**Category:** Elasticsearch\
**Created:** [September 17, 2017, 6:15pm UTC](https://discuss.elastic.co/t/sort-property-into-document-with-levenshtein/100801 "2017-09-17T18:15:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![hekiel](https://avatars.discourse-cdn.com/v4/letter/h/5e9695/32.png) [@hekiel](https://discuss.elastic.co/u/hekiel)\
**Post date:** [September 17, 2017, 6:15pm UTC](https://discuss.elastic.co/t/sort-property-into-document-with-levenshtein/100801/1 "2017-09-17T18:15:00Z")

</div>

Hi everyone,

I really need help with elastic, i have for example a document like this :

```
{
    name: "Web developer"
    tags: {
        "Web developer",
        "IT Technician",
        "Data processing",
        "Website",
        "IT",
        "..."
    }
}

```

I would like to find the right object with a query like this : "it technician"  
So, i want to search into the name, but also the tags AND sort tags by relevance to have something like this :

```
tags: {
    "IT Technician",
    "IT",
    "Web developer",
    "Data processing",
    "Website"
} 

```

Is there any solution to do that ?

Thanks a lot

---

<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:** [October 15, 2017, 6:15pm UTC](https://discuss.elastic.co/t/sort-property-into-document-with-levenshtein/100801/2 "2017-10-15T18:15:05Z")

</div>

Closed on October 15, 2017, 6:15pm UTC

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