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

Noble Paul edited comment on SOLR-6937 at 1/13/15 1:54 PM:
-----------------------------------------------------------

A new URP added example configuration

{code:xml}
    <processor class="solr.FieldNameMutatingUpdateProcessorFactory">
      <str name="pattern">\s</str>
      <str name="replacement">_</str>
    </processor>
{code}
no test cases yet


was (Author: noble.paul):
A new URP added example configuration

{code:xml}
    <processor class="solr.FieldNameMutatingUpdateProcessorFactory">
      <str name="pattern">\s</str>
      <str name="replacement">_</str>
    </processor>
{code}

> 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
>
>         Attachments: SOLR-6937.patch
>
>
> 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