<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Answers to: How to display the ElasticSearch schema of my BusinessData</title><link>https://answers.axonivy.com/questions/2769/how-to-display-the-elasticsearch-schema-of-my-businessdata</link><description>&lt;p&gt;I'd like to analyze the BusinessData index created by ElasticSearch. How can I inspect the schema of my BusinessData within the  Designer or Engine?&lt;/p&gt;</description><atom:link href="https://answers.axonivy.com/questions/2769/how-to-display-the-elasticsearch-schema-of-my-businessdata" rel="self"></atom:link><language>en</language><lastBuildDate>Wed, 11 Apr 2018 04:52:02 -0400</lastBuildDate><item><title>Answer by Max Mayr</title><link>https://answers.axonivy.com/questions/2769/how-to-display-the-elasticsearch-schema-of-my-businessdata/3183</link><description>&lt;p&gt;It is just a simple elastic search.&lt;/p&gt;
&lt;p&gt;You could display all indices with &lt;a href="http://localhost:19200/_cat/indices?v"&gt;http://localhost:19200/_cat/indices?v&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;It should look like this:
&lt;img alt="alt text" src="https://answers.axonivy.com/upfiles/elastic_search.png"&gt;&lt;/p&gt;
&lt;p&gt;Now you can copy one of the indexes like this &lt;a href="http://localhost:19200/{index}"&gt;http://localhost:19200/{index}&lt;/a&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Max Mayr</dc:creator><pubDate>Wed, 11 Apr 2018 04:52:02 -0400</pubDate><guid>https://answers.axonivy.com/questions/2769/how-to-display-the-elasticsearch-schema-of-my-businessdata/3183</guid></item><item><title>Answer by Reguel Wermelinger</title><link>https://answers.axonivy.com/questions/2769/how-to-display-the-elasticsearch-schema-of-my-businessdata/2770</link><description>&lt;p&gt;you should be able to retrieve it from a running Designer or Engine via: &lt;a href="http://localhost:19200/ivy.businessdata"&gt;http://localhost:19200/ivy.businessdata&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;mine looks like this. After storing a 'Person' with two string fields (firstname, lastname) 
&lt;img alt="alt text" src="http://answers.axonivy.com/upfiles/bdIndexOfASimplePerson_EsQ3BUr.png"&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Find the right instance&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;If the ElasticSearch is not responding under the default URI (&lt;a href="http://localhost:19200"&gt;http://localhost:19200&lt;/a&gt;), where could it be?&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Not started:&lt;/strong&gt; ElasticSearch could yet not be running as none of your project has yet defined any BusinessData nor run any queries against the BusinessDataRepo API. The ElasticSearch instance is only started when it is really needed - lazy.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Random port:&lt;/strong&gt; ElasticSearch may runs under a different port as multiple Designers and Engines are running on the same host. You can detect running instances then by opening JVisualVM which you can find in the JDK/bin directory. Open the &lt;code&gt;org.elasticsearch.bootstrap.IvyElasticsearchStarterStopper&lt;/code&gt; and inspect the JVM arguments. Under &lt;code&gt;-Des.http.port=XXXX&lt;/code&gt; you will see the port where the instance is accessible. It is also possible that you find multiple instances of the IvyElasticsearchStarterStopper here... &lt;img alt="alt text" src="http://answers.axonivy.com/upfiles/jvisualVm_elasticSearchInstanceDesigner.png"&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Fixed host+port:&lt;/strong&gt; In a productive environment you may not like that ElasticSearch instance runs on a random port. Therefore you are free to run your own instance on a fixed port and configure it with a System Property for the Axon.ivy Engine: see &lt;a href="http://developer.axonivy.com/releases/ivy/6.6.latest/documents/EngineGuideHtml/installation.html#installation-elasticsearch"&gt;http://developer.axonivy.com/releases/ivy/6.6.latest/documents/EngineGuideHtml/installation.html#installation-elasticsearch&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Reguel Wermelinger</dc:creator><pubDate>Tue, 18 Jul 2017 03:28:51 -0400</pubDate><guid>https://answers.axonivy.com/questions/2769/how-to-display-the-elasticsearch-schema-of-my-businessdata/2770</guid></item></channel></rss>