# I can't create an index whose similarity is DFR (version 0.90.2)

**URL:** <https://discuss.elastic.co/t/i-cant-create-an-index-whose-similarity-is-dfr-version-0-90-2/13096>\
**Category:** Elasticsearch\
**Created:** [August 6, 2013, 9:41pm UTC](https://discuss.elastic.co/t/i-cant-create-an-index-whose-similarity-is-dfr-version-0-90-2/13096 "2013-08-06T21:41:07Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Aline\_Bessa](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/aline_bessa/32/2189_2.png) [@Aline\_Bessa](https://discuss.elastic.co/u/Aline_Bessa)\
**Post date:** [August 6, 2013, 9:41pm UTC](https://discuss.elastic.co/t/i-cant-create-an-index-whose-similarity-is-dfr-version-0-90-2/13096/1 "2013-08-06T21:41:07Z")

</div>

Hi all,

I am really new to elasticsearch, and so far I simply couldn't create an  
index with DFR as the similarity metric. I haven't even found any useful  
example on that. Could you please help me out with this? Here's what I'm  
doing (after many different attempts):

curl -XPOST '[http://localhost:9200/tweeter/](http://localhost:9200/tweeter/)' -d '  
{  
"settings": {  
"index": {  
"similarity": {  
"default": {  
"index": {  
"type": "DFR"  
},  
"search": {  
"type": "DFR"  
}  
}  
}  
}  
}  
}'

Cheers and thanks in advance

--  
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).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![Aline\_Bessa](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/aline_bessa/32/2189_2.png) [@Aline\_Bessa](https://discuss.elastic.co/u/Aline_Bessa)\
**Post date:** [August 6, 2013, 9:51pm UTC](https://discuss.elastic.co/t/i-cant-create-an-index-whose-similarity-is-dfr-version-0-90-2/13096/2 "2013-08-06T21:51:23Z")

</div>

It seems this thing here works, but I thinks it's verbose.

curl -XPOST '[http://localhost:9200/tweeter/](http://localhost:9200/tweeter/)' -d '  
{  
"settings" : {  
"index" : {  
"similarity" : {  
"esserverbook\_dfr\_similarity" : {  
"type" : "DFR",  
"basic\_model" : "g",  
"after\_effect" : "l",  
"normalization" : "h2",  
"normalization.h2.c" : "2.0"  
}  
}  
}  
}  
}'

I found it here:  
[http://elasticsearchserverbook.com/elasticsearch-0-90-similarities/](http://elasticsearchserverbook.com/elasticsearch-0-90-similarities/)

--  
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).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<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, 2:22am UTC](https://discuss.elastic.co/t/i-cant-create-an-index-whose-similarity-is-dfr-version-0-90-2/13096/3 "2017-07-06T02:22:35Z")

</div>

Closed on July 6, 2017, 2:22am UTC


