# label paths

**URL:** <https://discuss.codelibs.org/t/label-paths/810>\
**Category:** English:Fess\
**Created:** [July 11, 2019, 12:30am UTC](https://discuss.codelibs.org/t/label-paths/810 "2019-07-11T00:30:34Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![discuss](https://discuss.codelibs.org/user_avatar/discuss.codelibs.org/discuss/32/298_2.png) [@discuss](https://discuss.codelibs.org/u/discuss)\
**Post date:** [July 11, 2019, 12:30am UTC](https://discuss.codelibs.org/t/label-paths/810/1 "2019-07-11T00:30:34Z")

</div>

(from [github.com/rafael844](http://github.com/rafael844))  
Hi, is there a way to label paths as a folder tree? For example, I search an article and it was found in:  
[www.reddit.com/r/youtube/](http://www.reddit.com/r/youtube/)  
[www.reddit.com/r/ThisAmericanLife/](http://www.reddit.com/r/ThisAmericanLife/)  
[www.reddit.com/r/](http://www.reddit.com/r/)  
[www.reddit.com/user/SecondEpsilon/](http://www.reddit.com/user/SecondEpsilon/)

The Label shows “reddit”, then I click on it, and it shows

```auto
reedit
   |-r
   |-user

```

When I click on user:

```auto
reedit
   |-r
   |-user
      |-SecondEpsilon

```

… and so on… And while I click on the disired label it does automatically the filtering and shows to user.

---

<div class="post-metadata">

**Author:** ![discuss](https://discuss.codelibs.org/user_avatar/discuss.codelibs.org/discuss/32/298_2.png) [@discuss](https://discuss.codelibs.org/u/discuss)\
**Post date:** [July 11, 2019, 12:41am UTC](https://discuss.codelibs.org/t/label-paths/810/2 "2019-07-11T00:41:25Z")

</div>

(from [github.com/marevol](http://github.com/marevol))  
No.  
Label does not have a hierarchy.

---

<div class="post-metadata">

**Author:** ![discuss](https://discuss.codelibs.org/user_avatar/discuss.codelibs.org/discuss/32/298_2.png) [@discuss](https://discuss.codelibs.org/u/discuss)\
**Post date:** [July 15, 2019, 12:45am UTC](https://discuss.codelibs.org/t/label-paths/810/3 "2019-07-15T00:45:03Z")

</div>

(from [github.com/rafael844](http://github.com/rafael844))  
It would be nice to have this feature in a future release. Specially for intranet searches.

---

<div class="post-metadata">

**Author:** ![discuss](https://discuss.codelibs.org/user_avatar/discuss.codelibs.org/discuss/32/298_2.png) [@discuss](https://discuss.codelibs.org/u/discuss)\
**Post date:** [July 31, 2019, 2:22am UTC](https://discuss.codelibs.org/t/label-paths/810/4 "2019-07-31T02:22:15Z")

</div>

(from [rafael844 · GitHub](http://github.com/rafael844))

> No.  
> Label does not have a hierarchy.

Is there any way to to this hierarchy without labels?

---

<div class="post-metadata">

**Author:** ![discuss](https://discuss.codelibs.org/user_avatar/discuss.codelibs.org/discuss/32/298_2.png) [@discuss](https://discuss.codelibs.org/u/discuss)\
**Post date:** [August 1, 2019, 4:44am UTC](https://discuss.codelibs.org/t/label-paths/810/5 "2019-08-01T04:44:58Z")

</div>

(from [github.com/marevol](http://github.com/marevol))  
Adding a custom field with [path hierarchy tokenizer](https://www.elastic.co/guide/en/elasticsearch/reference/6.3/analysis-pathhierarchy-tokenizer.html) is proper for your requirement.  
If you need more supports, please contact [Commercial Support](https://www.n2sm.net/en/support/fess_support.html).
