How to configure similarity algorithm on index or type level?

Per ES document, we can configure similarity on a field in mapping setting like this:

{
"book" : {
"properties" : {
"title" : { "type" : "string", "similarity" : "my_similarity" }
}
}

Is this possible to configure the similarity on index or type level so that don't have to configure the similarity for each field one by one?