Hi,

We have decided to use dynamic fileds in solr for some of our use-case. What we 
found in examples that these are declared as:

<dynamicField name="*_i"  type="int"    indexed="true"  stored="true"/>
   <dynamicField name="*_is" type="int"    indexed="true"  stored="true"  
multiValued="true"/>
   <dynamicField name="*_s"  type="string"  indexed="true"  stored="true" />

It is based upon suffix approach. What we are think to implement is:

<dynamicField name="additional.int.*"  type="int"    indexed="true"  
stored="true"/>
   <dynamicField name="additional.ints.*" type="int"    indexed="true"  
stored="true"  multiValued="true"/>
   <dynamicField name="additional.string.*"  type="string"  indexed="true"  
stored="true" />

According to, second approach would be more human readable and maintainable. We 
know that is technically feasible but our question is,


è Are there any best practices regarding naming convention of dynamic fields? 
If yes, are there any valid reasons?

è Can there be any pit-falls in future, if we go via suffix way?


Regards,
Prateek Jain

Reply via email to