Solr Schemaless Mode creating fields as indexed

71 Views Asked by At

while uploading XML file in solr schemaless mode. all field type are text_general only

i'm trying to change field type text_general to Indexed = "true". for all my field in solr schemaless_mode. There're 500+ fields in the schema.xml file its difficult to change manually

<field name="parap018f49616aad47a2a754d1fd87fdb4de" type="text_general"/>
<field name="parap06bad96ebf194d8d965db37a5124357a" type="text_general"/>

I'm trying to change it.(desire output)

<field name="parap018f49616aad47a2a754d1fd87fdb4de" type="text_general"  indexed="true" stored="false" multiValued="true />
<field name="parap06bad96ebf194d8d965db37a5124357a" type="text_general" indexd="true" stored="false" multiValued="true""/>
1

There are 1 best solutions below

1
Dimanshu Parihar On

copy your 500+ fields to the text editor and find and replace all at once after type="text_general" and replace in your schema and upload it.

it is more of a copy paste question rather than solr question.