[ https://issues.apache.org/jira/browse/SOLR-4047?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
James Dyer reassigned SOLR-4047:
--------------------------------
Assignee: James Dyer
> 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
> Assignee: James Dyer
> Priority: Critical
> Attachments: db-data-config.xml, db.sql, schema.xml, solrconfig.xml
>
>
> 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
|