solrupdatesckansolr8

TrieIntField, TrieDateField deprecated to?


Clear Solr warnings and errors resulting from the deprecated classes below:

  1. TrieIntField Solr loaded a deprecated plugin/analysis class [solr.TrieIntField]. Please consult documentation how to replace it accordingly.

  2. TrieFloatField Solr loaded a deprecated plugin/analysis class [solr.TrieFloatField]. Please consult documentation how to replace it accordingly.

  3. TrieLongField Solr loaded a deprecated plugin/analysis class [solr.TrieLongField]. Please consult documentation how to replace it accordingly.

  4. TrieDoubleField Solr loaded a deprecated plugin/analysis class [solr.TrieDoubleField]. Please consult documentation how to replace it accordingly.

  5. TrieDateField Solr loaded a deprecated plugin/analysis class [solr.TrieDateField]. Please consult documentation how to replace it accordingly.


Solution

  • Major Changes in schema.xml Solr 8.0 and 9.0 (Schema Changes in 8.0 and 9.0)

    The following changes impact how fields behave.

    Here is a table of solr deprecated fields and what is being used in solr 8.0

    Deprecated Instead Use
    CurrencyField CurrencyFieldType
    EnumField EnumFieldType
    LatLonType LatLonPointSpatialField
    TrieDateField DatePointField
    TrieDoubleField DoublePointField
    TrieFloatField FloatPointField
    TrieIntField IntPointField
    TrieLongField LongPointField
    TrieField This field takes a type parameter to define the specific class of Trie* field to use; Use an appropriate Point Field type instead.
    LowerCaseTokenizer You are encouraged to use the LetterTokenizer and the LowerCaseFilter instead

    Note: Please make sure to re-index after changing any of the above for the changes to work and avoiding to get wired values.

    For more information, check the solr official website for more details here

    Deprecated Field Types in Solr 9.0

    Note: All Trie* numeric and date field types have been deprecated in favor of *Point field types. Point field types are better at range queries (speed, memory, disk), however simple field:value queries underperform relative to Trie. Either accept this, or continue to use Trie fields. This shortcoming may be addressed in a future release.

    Deprecated Instead Use
    CurrencyField CurrencyFieldType
    EnumField EnumFieldType
    TrieDateField DatePointField
    TrieDoubleField DoublePointField
    TrieFloatField FloatPointField
    TrieIntField IntPointField
    TrieLongField LongPointField
    TrieField This field takes a type parameter to define the specific class of Trie* field to use; Use an appropriate Point Field type instead.

    Recommended Field Types are: