: > One thing that concerns me is potential field name collision -- where one : > of these new multifield producing FieldTypes might want to creat a name : > that happens to collide with a field the user has already declared. : : Since FieldTypes are provided an instance of o.a.solr.schema.IndexScehma, : couldn't these special MultiFieldTypes just call #getFieldOrNull(fieldName) : to find out if an internal field they want to name is available in the : schema namespace?
that would tell them if a field name is currently in use, but not what to do about it if it is already in use -- FieldType classes shouldn't need complicated hueristics to figure out somethign the user could configure. Even if the FieldType's where crazy smart -- it wouldn't provide any future-proofing. a FieldType could inspect the schema and see that certain fieldnames aren't in use right now, but then i could change my schema and add a field name that *does* collide with something it previously picked, and now i'm screwed. -Hoss