lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Shawn Heisey <s...@elyograg.org>
Subject Re: Ranking code
Date Mon, 07 Apr 2014 18:22:58 GMT
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


Mime
View raw message