: I could create a list of field name + type, but doing so I might as well : create it and add it to fields in schema.xml.
that was my original point: if you want to be able to refer to a field as "username" and have it be string, just define it explicitly. : Does solr reread the schema file when I post an add action or only on starup : (or someother point)? SOlr only reads the schema.xml file once, but the IndexSchema object it builds from the schema.xml is used pervasively during document adds and searches to understand how to use each field. : In general, I wonder if adding the suffix for dynamic fields is not posing : some usability tradeoff. : I think, For a user (not a programmer) it's not intuitive to think of id as : an integer and therefore enter id_i when searching, : what do you think? there's definitely a tradeoff ... dynamic fields make it easy for you to add arbitrary fields where the type information is infered by naming convention -- but then you have to use those names. if you want cleaner names you have create more explict fields in advance. -Hoss