[ 
https://issues.apache.org/jira/browse/SOLR-6937?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14273823#comment-14273823
 ] 

Hoss Man commented on SOLR-6937:
--------------------------------

bq. Are there problems that would result when changing the name of a field in 
FieldMutatingUpdateProcessor?

i suspect i put that in as a sanity check to protect the the surface area of 
the API -- i don't know if relaxing that will cause problems, or if it's just 
something that's there because the ramifications of allowing it aren't really 
well tested in the rest of the FieldMutating code paths.

in particular: what does it mean? should the old field name be removed? should 
the corisponding field:value pair be rmeoved, but other instances of that 
field:value2 be left in (ie: what if the mutator renames one instance of the 
field but not another?)

easiest thing would probably be to implement field renaming it as a complete 
one-off special UpdateProcessor w/o using hte FieldMutating framework (ie: no 
config, just something barebones for use in schemaless that can maybe later be 
re-parented in the class hierarchy to support more config options)

> In schemaless mode, field names with spaces should be converted
> ---------------------------------------------------------------
>
>                 Key: SOLR-6937
>                 URL: https://issues.apache.org/jira/browse/SOLR-6937
>             Project: Solr
>          Issue Type: Bug
>          Components: Schema and Analysis
>            Reporter: Grant Ingersoll
>            Assignee: Noble Paul
>             Fix For: 5.0
>
>
> Assuming spaces in field names are still bad, we should automatically convert 
> them to not have spaces.  For instance, I indexed Citibike public data set 
> which has: 
> {quote}
> "tripduration","starttime","stoptime","start station id","start station 
> name","start station latitude","start station longitude","end station 
> id","end station name","end station latitude","end station 
> longitude","bikeid","usertype","birth year","gender"{quote}
> My vote would be to replace spaces w/ underscores.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to