lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hodder, Rick" <>
Subject SOLR 7.1 Top level element for similarity factory
Date Mon, 16 Jul 2018 21:41:00 GMT
I'm using SOLR 7.1 and I'm trying to set the similarity factory back to ClassicSimilarityFactory
so that it will behave like SOLR 6 or before.

In the document

It says

This default behavior can be overridden by declaring a top level <similarity/> element
in your schema.xml, outside of any single field type. This similarity declaration can either
refer directly to the name of a class with a no-argument constructor, such as in this example
showing BM25Similarity:

<similarity class="solr.BM25SimilarityFactory"/>

So I have the following at the bottom of my schema.xml file

    <similarity class=""></similarity>

The documentation says "top level element" - so should that actually be outside the schema


Rick Hodder
Information Technology
Navigators Management Company, Inc.
83 Wooster Heights Road, 2nd Floor
Danbury, CT  06810
(475) 329-6251

[Forbes_Best Places Logo2016]

  • Unnamed multipart/related (inline, None, 0 bytes)
View raw message