Description
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...
<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>
Attachments
Attachments
Issue Links
- relates to
-
SOLR-8261 Change the wrapped per-field default in SchemaSimilarityFactory to BM25 (conditional on luceneMatchVersion for backcompat)
- Resolved