[ 
https://issues.apache.org/jira/browse/SOLR-5198?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13754372#comment-13754372
 ] 

HeXin commented on SOLR-5198:
-----------------------------

hi, Shawn, you are right. 
But i think you have written the class BM25SimilarityFactory at first and maybe 
its function just to provide BM25Similarity as default similarity.

Maybe i have not describe the feature clearly.  I just want the two scenarios 
below can be done just through modifying schema.xml. 

1. If we want to use a different default similarity rather than 
TFIDFSimilarity. 
2. If we want to do per-field support and make BM25Similarity as default 
similarity for the fields which not configure similarity. 

I think we can support it without any custom code.

                
> Make default similarty configurable
> -----------------------------------
>
>                 Key: SOLR-5198
>                 URL: https://issues.apache.org/jira/browse/SOLR-5198
>             Project: Solr
>          Issue Type: Improvement
>          Components: Schema and Analysis
>    Affects Versions: 4.4
>            Reporter: HeXin
>            Priority: Minor
>             Fix For: 4.5, 5.0
>
>
>   Though the code has supported for customizing scoring on a per-field basis 
> in using <similarity/> in a schema's fieldType and 
> we can configure our custom similarity factory in schema,  we can't configure 
> the default similarty and it is hardcode in SchemaSimilarityFactory. 
>   If we want to use another similarity as default similarty instead of 
> DefaultSimilarity provided by lucene, we must to write another similarity 
> factory to do this. Therefore, it is necessary to make default similarty 
> configurable. 
>   Any comments is welcomed. 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to