lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Okke Klein (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (SOLR-6383) regexTransformer returns no results if there is no match
Date Mon, 26 Jan 2015 13:50:35 GMT

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

Okke Klein commented on SOLR-6383:
----------------------------------

For my use case I do not want the original value being used if there is no match. Maybe support
both behaviors with an argument "useOriginal="(true/false)"?

> regexTransformer returns no results if there is no match
> --------------------------------------------------------
>
>                 Key: SOLR-6383
>                 URL: https://issues.apache.org/jira/browse/SOLR-6383
>             Project: Solr
>          Issue Type: Bug
>            Reporter: Alexander Kingson
>            Assignee: Shalin Shekhar Mangar
>             Fix For: 4.10, Trunk
>
>         Attachments: SOLR-6383.patch, regexTransformer.patch
>
>
> When used in data-import config file to replace spaces in title with _ 
>  
> <field column="title_underscore"  regex="\s+" replaceWith="_"
>  sourceColName="title" />
> regexTransformer returns empty results for titles without spaces, i.e. when there is
no match for the regex. According to the description it is equivalent to replaceAll which
returns string when there is no match.



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

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Mime
View raw message