On 7/25/2018 10:46 PM, Reem wrote:
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!

That setting will change the similarity used for both index and query.  I am not aware of any way in Solr to specify a different similarity for index than what is used for query.  It wouldn't surprise me to learn that this is possible when writing Lucene code directly.

Thanks,
Shawn

Reply via email to