On 4/7/2014 10:29 AM, azhar2007 wrote:
Hi does anybody know where the ranking code is held. Which file in Solr
stores it the solr schema.xml or solrconfig.xml file?

Your question is very generic. It needs to be more specific -- what are you actually trying to do?

The generic answer is "both" ... query parameters that affect relevancy ranking can go in solrconfig.xml or included on an individual query. You can change which similarity class is used in schema.xml. The analysis chain and field parameters you choose can also affect relevancy ranking, and those live in schema.xml.

https://wiki.apache.org/solr/SchemaXml#Similarity
https://wiki.apache.org/solr/SolrRelevancyFAQ

The actual code is not in either file -- it's in the java source code files that get compiled into Lucene and Solr.

Thanks,
Shawn

Reply via email to