<?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 persist fields in ivy repo but not index in elastic?</title><link>https://answers.axonivy.com/questions/4010/how-to-persist-fields-in-ivy-repo-but-not-index-in-elastic</link><description>&lt;p&gt;For some projects it is interesting to store all data including files to the database so we can run such instances in docker and share the database. 
This way it would be possible to store the data in the business repo, even as we seen in &lt;a href="https://answers.axonivy.com/questions/1779/how-can-i-persist-a-file-as-blob"&gt;https://answers.axonivy.com/questions/1779/how-can-i-persist-a-file-as-blob&lt;/a&gt; it is not always efficient. But we would not need to index the base64 conent of the file in elastic. Is it possible?&lt;/p&gt;</description><atom:link href="https://answers.axonivy.com/questions/4010/how-to-persist-fields-in-ivy-repo-but-not-index-in-elastic" rel="self"></atom:link><language>en</language><lastBuildDate>Wed, 25 Sep 2019 14:24:49 -0400</lastBuildDate><item><title>Comment by Alex Suter on skilchenmann's answer</title><link>https://answers.axonivy.com/questions/4010/how-to-persist-fields-in-ivy-repo-but-not-index-in-elastic#4027</link><description>&lt;p&gt;I strongly recommend to not store files in business data. It was never intended for it!&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Alex Suter</dc:creator><pubDate>Wed, 25 Sep 2019 14:24:49 -0400</pubDate><guid>https://answers.axonivy.com/questions/4010/how-to-persist-fields-in-ivy-repo-but-not-index-in-elastic#4027</guid></item><item><title>Comment by adamf on skilchenmann's answer</title><link>https://answers.axonivy.com/questions/4010/how-to-persist-fields-in-ivy-repo-but-not-index-in-elastic#4015</link><description>&lt;p&gt;Thank you for the answers. I have a similar Impression that we should use the database persistence &lt;a href="https://developer.axonivy.com/doc/7.0.11/DesignerGuideHtml/ivy.datamodeling.html#ivy-persistence"&gt;https://developer.axonivy.com/doc/7.0.11/DesignerGuideHtml/ivy.datamodeling.html#ivy-persistence&lt;/a&gt; for the document and create a DocumentService that get a path from elastic and return the blob from the database. And that would be similar to existing solutions using the disk as storage.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">adamf</dc:creator><pubDate>Tue, 24 Sep 2019 04:57:59 -0400</pubDate><guid>https://answers.axonivy.com/questions/4010/how-to-persist-fields-in-ivy-repo-but-not-index-in-elastic#4015</guid></item><item><title>Comment by Christian Strebel on skilchenmann's answer</title><link>https://answers.axonivy.com/questions/4010/how-to-persist-fields-in-ivy-repo-but-not-index-in-elastic#4014</link><description>&lt;p&gt;Yes but they are still in the source json and so also stored by elastic search...&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Christian Strebel</dc:creator><pubDate>Tue, 24 Sep 2019 04:14:52 -0400</pubDate><guid>https://answers.axonivy.com/questions/4010/how-to-persist-fields-in-ivy-repo-but-not-index-in-elastic#4014</guid></item><item><title>Answer by Christian Strebel</title><link>https://answers.axonivy.com/questions/4010/how-to-persist-fields-in-ivy-repo-but-not-index-in-elastic/4013</link><description>&lt;p&gt;There are ways that elasticsearch does not index some fields, but they are still in the source and go over the wire and are saved in the elastic search. So there is nothing at the moment which does really exclude some fields form the json which goes to the elasticsearch.&lt;/p&gt;
&lt;p&gt;For me the easiest way would be if you store the files in our own table in the database and just reference it form the BusinessData.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Christian Strebel</dc:creator><pubDate>Tue, 24 Sep 2019 04:14:08 -0400</pubDate><guid>https://answers.axonivy.com/questions/4010/how-to-persist-fields-in-ivy-repo-but-not-index-in-elastic/4013</guid></item><item><title>Answer by skilchenmann</title><link>https://answers.axonivy.com/questions/4010/how-to-persist-fields-in-ivy-repo-but-not-index-in-elastic/4011</link><description>&lt;p&gt;you could define if a field should be indexed or not: &lt;a href="https://www.elastic.co/guide/en/elasticsearch/reference/current/enabled.html"&gt;https://www.elastic.co/guide/en/elasticsearch/reference/current/enabled.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;as a semi solution ;)&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">skilchenmann</dc:creator><pubDate>Tue, 24 Sep 2019 04:09:06 -0400</pubDate><guid>https://answers.axonivy.com/questions/4010/how-to-persist-fields-in-ivy-repo-but-not-index-in-elastic/4011</guid></item></channel></rss>