# Where is the popularFields be assigned value, i do not found it:

**URL:** <https://discuss.elastic.co/t/where-is-the-popularfields-be-assigned-value-i-do-not-found-it/90598>\
**Category:** Kibana\
**Created:** [June 23, 2017, 8:45am UTC](https://discuss.elastic.co/t/where-is-the-popularfields-be-assigned-value-i-do-not-found-it/90598 "2017-06-23T08:45:10Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![whoami](https://avatars.discourse-cdn.com/v4/letter/w/a9a28c/32.png) [@whoami](https://discuss.elastic.co/u/whoami)\
**Post date:** [June 23, 2017, 8:45am UTC](https://discuss.elastic.co/t/where-is-the-popularfields-be-assigned-value-i-do-not-found-it/90598/1 "2017-06-23T08:45:10Z")

</div>

I read a source code in kibana:

```auto
  <ul
    ng-show="(popularFields | filter:filter.isFieldFiltered).length > 0"
    ng-class="{ 'hidden-sm': !showFields, 'hidden-xs': !showFields }"
    class="list-unstyled sidebar-well discover-popular-fields">
    <li class="sidebar-item sidebar-list-header">
      <h6>Popular</h6>
    </li>
    <discover-field
      ng-repeat="field in popularFields | filter:filter.isFieldFiltered"
      field="field"
      on-add-field="onAddField"
      on-add-filter="onAddFilter"
      on-remove-field="onRemoveField"
      on-show-details="computeDetails"
    >
    </discover-field>
  </ul>

```

where is the `popularFields` be assigned value, i do not found it:

```auto
➜ grep popularFields -r .
./core_plugins/kibana/public/discover/components/field_chooser/field_chooser.html: ng-show="(popularFields | filter:filter.isFieldFiltered).length > 0"
./core_plugins/kibana/public/discover/components/field_chooser/field_chooser.html: ng-repeat="field in popularFields | filter:filter.isFieldFiltered"
./core_plugins/kibana/public/discover/components/field_chooser/field_chooser.html: ng-repeat="field in unpopularFields | filter:filter.isFieldFiltered"

```

---

<div class="post-metadata">

**Author:** ![tylersmalley](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tylersmalley/32/8833_2.png) [@tylersmalley](https://discuss.elastic.co/u/tylersmalley)\
**Post date:** [June 23, 2017, 8:41pm UTC](https://discuss.elastic.co/t/where-is-the-popularfields-be-assigned-value-i-do-not-found-it/90598/2 "2017-06-23T20:41:02Z")

</div>

Sadly, this is happening here: [https://github.com/elastic/kibana/blob/master/src/core\_plugins/kibana/public/discover/components/field\_chooser/field\_chooser.js#L145](https://github.com/elastic/kibana/blob/master/src/core_plugins/kibana/public/discover/components/field_chooser/field_chooser.js#L145)

---

<div class="post-metadata">

**Author:** ![whoami](https://avatars.discourse-cdn.com/v4/letter/w/a9a28c/32.png) [@whoami](https://discuss.elastic.co/u/whoami)\
**Post date:** [June 26, 2017, 1:22am UTC](https://discuss.elastic.co/t/where-is-the-popularfields-be-assigned-value-i-do-not-found-it/90598/3 "2017-06-26T01:22:13Z")

</div>

hmm.., thank you guys.

---

<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 24, 2017, 1:22am UTC](https://discuss.elastic.co/t/where-is-the-popularfields-be-assigned-value-i-do-not-found-it/90598/4 "2017-07-24T01:22:34Z")

</div>

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