Disabling Elasticsearch Inverse Document Frequency scoring on ES relevance score

Then you would need a custom similarity indeed. Similarities in Lucene are not designed for being extended, but it should be fairly easy to copy-paste an existing impl (typically bm25) and adapt it to your needs.