# \[Discover\] Search Bar Preview trims field names

**URL:** <https://discuss.elastic.co/t/discover-search-bar-preview-trims-field-names/306242>\
**Category:** Kibana\
**Created:** [June 2, 2022, 2:43pm UTC](https://discuss.elastic.co/t/discover-search-bar-preview-trims-field-names/306242 "2022-06-02T14:43:08Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![TimoM](https://avatars.discourse-cdn.com/v4/letter/t/57b2e6/32.png) [@TimoM](https://discuss.elastic.co/u/TimoM)\
**Post date:** [June 2, 2022, 2:43pm UTC](https://discuss.elastic.co/t/discover-search-bar-preview-trims-field-names/306242/1 "2022-06-02T14:43:08Z")

</div>

Hey,

I'm using Kibana 8.1.0 and when I try to search for certain fields in the tab "Discover", fields which are longer than a specific length are trimmed. Have a look at the Screenshot:

 ![Discover_Bug](https://us1.discourse-cdn.com/elastic/original/3X/e/d/edf04bb13504825d9357a6e6a7a1250265b77aa1.png)  
For Example the full name is _request.RequestData.orderBasketIn.header.buyerReference_ but the displayed name ist just _request.RequestData.orderBasketIn._

I already found an issue on Github which should be solved before my version (8.1.0).  
[https://github.com/elastic/kibana/issues/34971](https://github.com/elastic/kibana/issues/34971)

It seems that the bug is still existing.

I'm grateful for help.

Regards

---

<div class="post-metadata">

**Author:** ![jsanz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jsanz/32/53734_2.png) [@jsanz](https://discuss.elastic.co/u/jsanz)\
**Post date:** [June 27, 2022, 3:53pm UTC](https://discuss.elastic.co/t/discover-search-bar-preview-trims-field-names/306242/2 "2022-06-27T15:53:23Z")

</div>

I reproduced this issue in 8.1.0 with the following index and data

```auto
PUT delete_long_field_names
{
  "settings": {
    "number_of_replicas": 1
  },
  "mappings": {
    "properties": {
      "this.is.a.very.long.file.name.that.could.break.discover.search.bar": {
        "type": "text"
      }
    }
  }
}

POST delete_long_field_names/_doc
{
  "this.is.a.very.long.file.name.that.could.break.discover.search.bar": "foobar"
}

```

Getting this discover autocomplete

 ![2022-06-27-17-46-52-screenshot](https://us1.discourse-cdn.com/elastic/original/3X/f/e/fe6230d2db252fb89882583e5a3d9f923b8df77b.png)

But then I upgraded to the last version from the 8.1.x series which is **8.1.3** and it's fixed

 ![2022-06-27-17-50-58-screenshot](https://us1.discourse-cdn.com/elastic/original/3X/e/1/e1764fa91a45cad27dd5180ecd5c871e4569ba54.png)

I also tested in 8.2.3 which is the latest stable release and it's also working fine.

---

<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 25, 2022, 3:54pm UTC](https://discuss.elastic.co/t/discover-search-bar-preview-trims-field-names/306242/3 "2022-07-25T15:54:03Z")

</div>

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