You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Igor Dobritskiy (JIRA)" <ji...@apache.org> on 2012/11/16 12:02:11 UTC
[jira] [Updated] (SOLR-4047) dataimporter.functions.encodeUrl
throughs Unable to encode expression: field.name with value: null
[ https://issues.apache.org/jira/browse/SOLR-4047?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Igor Dobritskiy updated SOLR-4047:
----------------------------------
Priority: Critical (was: Major)
> dataimporter.functions.encodeUrl throughs Unable to encode expression: field.name with value: null
> --------------------------------------------------------------------------------------------------
>
> Key: SOLR-4047
> URL: https://issues.apache.org/jira/browse/SOLR-4047
> Project: Solr
> Issue Type: Bug
> Components: contrib - DataImportHandler
> Affects Versions: 4.0
> Environment: Windows 7
> Reporter: Igor Dobritskiy
> Priority: Critical
>
> For some reason dataimporter.functions.encoude URL stopped work after update to solr 4.0 from 3.5.
> Here is the error
> {code}
> Full Import failed:java.lang.RuntimeException: java.lang.RuntimeException: org.apache.solr.handler.dataimport.DataImportHandlerException: Unable to encode expression: attach.name with value: null Processing Document # 1
> {code}
> Here is the data import config snippet:
> {code}
> ...
> <entity name="account"
> query="select name from accounts where account_id = '${attach.account_id}'">
> <entity name="img_index" processor="TikaEntityProcessor"
> dataSource="bin"
> format="text"
> url="http://example.com/data/${account.name}/attaches/${attach.item_id}/${dataimporter.functions.encodeUrl(attach.name)}">
> <field column="text" name="body" />
> </entity>
> </entity>
> ...
> {code}
> When I'm changing it to *not* use dataimporter.functions.encodeUrl it works but I need to url encode file names as they have special chars in theirs names.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org