How to specify/change the fulltext/string fields to other FieldType in Solr?

Created on 22 August 2024, 8 months ago
Updated 19 September 2024, 7 months ago

I add a new FieldType in my Solr 8. I'd like to change the fulltext/string fields to that new FieldType. I don't know how to do it.
On an search_api index fields config page (i.e. /admin/config/search/search-api/index/solr/fields ), we can change field type as the screenshot below:

And in the search_api_solr module generated config files, I found nowhere to change the type property. For example, there are all dynamicFields with generated names, i.e.:

<dynamicField name="tcedgestrings_X3b_und_*" type="text_edgenstring" stored="true" indexed="true" multiValued="false" termVectors="true" omitNorms="false" />
<dynamicField name="tcedgestrings_*" type="text_edgenstring" stored="true" indexed="true" multiValued="false" termVectors="true" omitNorms="false" />
<dynamicField name="tcedgestringm_X3b_und_*" type="text_edgenstring" stored="true" indexed="true" multiValued="true" termVectors="true" omitNorms="false" />
<dynamicField name="tcedgestringm_*" type="text_edgenstring" stored="true" indexed="true" multiValued="true" termVectors="true" omitNorms="false" />
<dynamicField name="tocedgestrings_X3b_und_*" type="text_edgenstring" stored="true" indexed="true" multiValued="false" termVectors="true" omitNorms="true" />
...
💬 Support request
Status

Closed: works as designed

Version

4.3

Component

Documentation

Created by

🇨🇳China fishfree

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024