[
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: [email protected]
For additional commands, e-mail: [email protected]