# Update similarity setting

**URL:** https://discuss.elastic.co/t/update-similarity-setting/16648
**Category:** Elasticsearch
**Created:** [March 27, 2014, 3:59pm UTC](https://discuss.elastic.co/t/update-similarity-setting/16648 "2014-03-27T15:59:43Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![geantbrun](https://avatars.discourse-cdn.com/v4/letter/g/ecb155/32.png) [@geantbrun](https://discuss.elastic.co/u/geantbrun)
#### Post date: [March 27, 2014, 3:59pm UTC](https://discuss.elastic.co/t/update-similarity-setting/16648/1 "2014-03-27T15:59:43Z")

</div>

Hi,  
I want to test different similarities under ES. I have my big database A  
and would like to export a sample of data in database B with a different  
similarity. How can I do such a thing? The exporter tool here (  
[https://github.com/mallocator/Elasticsearch-Exporter](https://github.com/mallocator/Elasticsearch-Exporter)) recreates the mapping  
A into B but I cannot update after the export non-dynamic settings such as  
the similarity. Any idea anyone?  
Thank you,  
Patrick

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/19c3c8fa-7cc7-48f9-ad8e-1d730b3c14f0%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/19c3c8fa-7cc7-48f9-ad8e-1d730b3c14f0%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

### Author: ![Ivan](https://avatars.discourse-cdn.com/v4/letter/i/df788c/32.png) [@Ivan](https://discuss.elastic.co/u/Ivan)
#### Post date: [March 28, 2014, 12:43am UTC](https://discuss.elastic.co/t/update-similarity-setting/16648/2 "2014-03-28T00:43:23Z")

</div>

As I mentioned in your other thread, you cannot change the similarity of a  
field dynamically. I would argue that we should be able to. If someone  
wants to shoot themselves in the foot, they should be able to. 🙂

Sounds like your issue is how to transfer your data and use a new mapping.  
I never used that plugin, but there seems to be an option to override the  
mapping in the master branch. If not, some of the other export/import tools  
might help. Never used anyone of them, so I cannot help much. Perhaps the  
new snapshot functionality?

--  
Ivan

On Thu, Mar 27, 2014 at 8:59 AM, geantbrun [agin.patrick@gmail.com](mailto:agin.patrick@gmail.com) wrote:

> Hi,  
> I want to test different similarities under ES. I have my big database A  
> and would like to export a sample of data in database B with a different  
> similarity. How can I do such a thing? The exporter tool here (  
> [GitHub - mallocator/Elasticsearch-Exporter: A small script to export data from one Elasticsearch cluster into another.](https://github.com/mallocator/Elasticsearch-Exporter)) recreates the  
> mapping A into B but I cannot update after the export non-dynamic settings  
> such as the similarity. Any idea anyone?  
> Thank you,  
> Patrick
> 
> --  
> You received this message because you are subscribed to the Google Groups  
> "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an  
> email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> To view this discussion on the web visit  
> [https://groups.google.com/d/msgid/elasticsearch/19c3c8fa-7cc7-48f9-ad8e-1d730b3c14f0%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/19c3c8fa-7cc7-48f9-ad8e-1d730b3c14f0%40googlegroups.com)[https://groups.google.com/d/msgid/elasticsearch/19c3c8fa-7cc7-48f9-ad8e-1d730b3c14f0%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/19c3c8fa-7cc7-48f9-ad8e-1d730b3c14f0%40googlegroups.com?utm_medium=email&utm_source=footer)  
> .  
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CALY%3DcQA%3D3K3M7Lh%3D%3DZ%3D%2BcHVWmp6\_%3DsJTD4fANRP1LzffCWx%2BRw%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CALY%3DcQA%3D3K3M7Lh%3D%3DZ%3D%2BcHVWmp6_%3DsJTD4fANRP1LzffCWx%2BRw%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

### Author: ![geantbrun](https://avatars.discourse-cdn.com/v4/letter/g/ecb155/32.png) [@geantbrun](https://discuss.elastic.co/u/geantbrun)
#### Post date: [March 31, 2014, 2:15pm UTC](https://discuss.elastic.co/t/update-similarity-setting/16648/3 "2014-03-31T14:15:19Z")

</div>

I solved my problem with exporter tool by exporting data first from DB A  
into a file then importing from that file into DB B (that has its own  
mappping).  
Thanks again Ivan.

Le jeudi 27 mars 2014 20:43:23 UTC-4, Ivan Brusic a écrit :

> As I mentioned in your other thread, you cannot change the similarity of a  
> field dynamically. I would argue that we should be able to. If someone  
> wants to shoot themselves in the foot, they should be able to. 🙂
> 
> Sounds like your issue is how to transfer your data and use a new mapping.  
> I never used that plugin, but there seems to be an option to override the  
> mapping in the master branch. If not, some of the other export/import tools  
> might help. Never used anyone of them, so I cannot help much. Perhaps the  
> new snapshot functionality?
> 
> --  
> Ivan
> 
> On Thu, Mar 27, 2014 at 8:59 AM, geantbrun \<[agin.p...@gmail.com](mailto:agin.p...@gmail.com)\<javascript:\>
> 
> > wrote:
> 
> > Hi,  
> > I want to test different similarities under ES. I have my big database A  
> > and would like to export a sample of data in database B with a different  
> > similarity. How can I do such a thing? The exporter tool here (  
> > [GitHub - mallocator/Elasticsearch-Exporter: A small script to export data from one Elasticsearch cluster into another.](https://github.com/mallocator/Elasticsearch-Exporter)) recreates the  
> > mapping A into B but I cannot update after the export non-dynamic settings  
> > such as the similarity. Any idea anyone?  
> > Thank you,  
> > Patrick
> > 
> > --  
> > You received this message because you are subscribed to the Google Groups  
> > "elasticsearch" group.  
> > To unsubscribe from this group and stop receiving emails from it, send an  
> > email to [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com) \<javascript:\>.  
> > To view this discussion on the web visit  
> > [https://groups.google.com/d/msgid/elasticsearch/19c3c8fa-7cc7-48f9-ad8e-1d730b3c14f0%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/19c3c8fa-7cc7-48f9-ad8e-1d730b3c14f0%40googlegroups.com)[https://groups.google.com/d/msgid/elasticsearch/19c3c8fa-7cc7-48f9-ad8e-1d730b3c14f0%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/19c3c8fa-7cc7-48f9-ad8e-1d730b3c14f0%40googlegroups.com?utm_medium=email&utm_source=footer)  
> > .  
> > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/adb0e30f-aa87-455d-bd5c-5e8a5c5506c8%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/adb0e30f-aa87-455d-bd5c-5e8a5c5506c8%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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 6, 2017, 1:39am UTC](https://discuss.elastic.co/t/update-similarity-setting/16648/4 "2017-07-06T01:39:22Z")

</div>


