# Challenges embedding Kibana visualizations in elasticsearch \_site plugin

**URL:** https://discuss.elastic.co/t/challenges-embedding-kibana-visualizations-in-elasticsearch--site-plugin/24900
**Category:** Kibana
**Created:** [July 4, 2015, 8:01pm UTC](https://discuss.elastic.co/t/challenges-embedding-kibana-visualizations-in-elasticsearch--site-plugin/24900 "2015-07-04T20:01:45Z")
**Posts on this page:** 1
**Showing post:** 3

<div class="post-metadata">

### Author: ![spalger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spalger/32/14092_2.png) [@spalger](https://discuss.elastic.co/u/spalger)
#### Post date: [July 6, 2015, 3:27am UTC](https://discuss.elastic.co/t/challenges-embedding-kibana-visualizations-in-elasticsearch--site-plugin/24900/3 "2015-07-06T03:27:09Z")

</div>

@Mark_Harwood If you were running code within Kibana you could simply call the `indexPattern.refreshFields()` method and the field list would be rebuild. Not sure I can imagine a better way to expose this, short of moving this logic to the server and exposing a REST API (a solution we plan to implement someday).

---

_[View the full topic](https://discuss.elastic.co/t/challenges-embedding-kibana-visualizations-in-elasticsearch--site-plugin/24900)._
