You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Hoss Man (JIRA)" <ji...@apache.org> on 2015/11/23 22:05:11 UTC
[jira] [Resolved] (SOLR-8329) SchemaSimilarityFactory should
support a config option for the defaultSimilarity
[ https://issues.apache.org/jira/browse/SOLR-8329?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Hoss Man resolved SOLR-8329.
----------------------------
Resolution: Fixed
> SchemaSimilarityFactory should support a config option for the defaultSimilarity
> --------------------------------------------------------------------------------
>
> Key: SOLR-8329
> URL: https://issues.apache.org/jira/browse/SOLR-8329
> Project: Solr
> Issue Type: Improvement
> Reporter: Hoss Man
> Assignee: Hoss Man
> Fix For: 5.4, Trunk
>
> Attachments: SOLR-8329.patch
>
>
> SchemaSimilarityFactory has an implicit default Similarity instance that it uses for any fieldTypes that don't define their own -- we should make this default configurable.
> ----
> Example of how to use this new option from the javadocs...
> {code}
> <similarity class="solr.SchemaSimilarityFactory" >
> <str name="defaultSimFromFieldType">type-using-custom-dfr</str>
> </similarity>
> ...
> <fieldType name="type-using-custom-dfr" class="solr.TextField">
> ...
> <similarity class="solr.DFRSimilarityFactory">
> <str name="basicModel">I(F)</str>
> <str name="afterEffect">B</str>
> <str name="normalization">H3</str>
> <float name="mu">900</float>
> </similarity>
> </fieldType>
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org