lucene-solr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Hostetter <>
Subject Re: SOLR-1131 - Multiple Fields per Field Type
Date Sun, 29 Nov 2009 20:22:03 GMT

: > 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.


View raw message