Hello,

Is it possible to change the ranking function (e.g., BM25Similarity, 
ClassicSimilarity, LMDirichletSimilarity, etc) in search time?

The way I found to change the ranking function is by setting the similarity 
property of text fields in schema.xml as follows:
`<similarity class="solr.LMDirichletSimilarityFactory"/>`

However, this means we can only set the similarity/ranking function only in 
indexing time. As Solr is built over Lucene which allows changing the ranking 
function in search time, I find it not logical that Solr doesn’t support it, so 
it seems I’m missing something here!

Any idea on how to achieve this?

Reem

Reply via email to