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

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/' -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.
For more options, visit https://groups.google.com/groups/opt_out.

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

curl -XPOST '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/

--
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.
For more options, visit https://groups.google.com/groups/opt_out.