solr6 - Solr 6.1: UpdateRequestProcessor to Append to Field Name Based on Field Name -


the goal have field names match following schema of fields:

<field name="_version_" type="long" indexed="true" stored="true" /> <field name="_root_" type="string" indexed="true" stored="false" /> <field name="id" type="string" indexed="true" stored="true" required="true" /> <field name="text" type="text_general" indexed="true" stored="false" required="false" multivalued="true" /> <dynamicfield indexed="true" name="*_is" stored="true" type="int" multivalued="true" /> <dynamicfield indexed="true" name="*_ls" stored="true" type="long" multivalued="true" /> <dynamicfield indexed="true" name="*_fs" stored="true" type="float" multivalued="true" /> <dynamicfield indexed="true" name="*_ds" stored="true" type="double" multivalued="true" /> <dynamicfield indexed="true" name="*_bs" stored="true" type="boolean" multivalued="true" /> <dynamicfield indexed="true" name="*_i" stored="true" type="int" /> <dynamicfield indexed="true" name="*_s" stored="true" type="string" /> <dynamicfield indexed="true" name="*_ss" stored="true" type="string" multivalued="true" /> <dynamicfield indexed="true" name="*_txt" stored="true" type="text_general" multivalued="true" /> <dynamicfield indexed="true" name="*_t" stored="true" type="text_general" /> <dynamicfield indexed="true" name="*_l" stored="true" type="long" /> <dynamicfield indexed="true" name="*_b" stored="true" type="boolean" /> <dynamicfield indexed="true" name="*_f" stored="true" type="float" /> <dynamicfield indexed="true" name="*_d" stored="true" type="double" /> <dynamicfield indexed="true" name="*_tdt" stored="true" type="tdate" /> <dynamicfield indexed="true" name="*_dt" stored="true" type="date" /> <uniquekey>id</uniquekey> 

the reason twofold:

  1. i ingesting incoming csv data not control. have set of ~35 different field names 1 or 2 of above.
  2. the schema evolving except these 35 fields.

the goal conditionally subsets of ~35 1 of above , not match 1 of ~35 names gets appended _s make string.

is possible in solr 6?

you declare dynamic field star (*) have type of string. way don't need mangle suffixes.


Comments

Popular posts from this blog

account - Script error login visual studio DefaultLogin_PCore.js -

xcode - CocoaPod Storyboard error: -