[
https://issues.apache.org/jira/browse/SOLR-4383?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13581286#comment-13581286
]
Alexandre Rafalovitch edited comment on SOLR-4383 at 2/19/13 2:01 PM:
----------------------------------------------------------------------
This causes further confusion when using variable resolver (Wiki does not
help). In the example below, I have to have non-existant column names and then
I have to use _those_ names for my variable resolution.
{code:xml}
<entity name="vac"
dataSource="dbds"
query="select * from ALERTS"
transformer="RegexTransformer,TemplateTransformer,DateFormatTransformer"
preImportDeleteQuery="type:vacancy-alert"
>
<field column="id" name="ID" />
<field name="type" column="FAKE" template="vacancy-alert"/>
<field name="vac_id" column="FAKE2" sourceColName="SUBJECT"
regex="^\((.*)\)"/>
<entity name="vacancy-geocoder" dataSource="dbds"
query="select LOC from GEOCODE where NAME = '${vac.FAKE2}'"
>
<field name="vac_loc" column="LOC" />
</entity>
</entity>
{code}
was (Author: arafalov):
This causes further confusion when using variable resolver (Wiki does not
help). In the example below, I have to have non-existant column names and then
I have to use _those_ names for my variable resolution.
{quote}
<entity name="vac"
dataSource="dbds"
query="select * from ALERTS"
transformer="RegexTransformer,TemplateTransformer,DateFormatTransformer"
preImportDeleteQuery="type:vacancy-alert"
>
<field column="id" name="ID" />
<field name="type" column="FAKE" template="vacancy-alert"/>
<field name="vac_id" column="FAKE2" sourceColName="SUBJECT"
regex="^\((.*)\)"/>
<entity name="vacancy-geocoder" dataSource="dbds"
query="select LOC from GEOCODE where NAME = '${vac.FAKE2}'"
>
<field name="vac_loc" column="LOC" />
</entity>
</entity>
{quote}
> DataImportHandler: Semantic inconsistency of column/name attribute
> ------------------------------------------------------------------
>
> Key: SOLR-4383
> URL: https://issues.apache.org/jira/browse/SOLR-4383
> Project: Solr
> Issue Type: Bug
> Components: contrib - DataImportHandler, documentation
> Affects Versions: 4.1
> Reporter: Alexandre Rafalovitch
> Fix For: 5.0
>
>
> Different DIH Entity Processor assign different meaning to 'column'
> attribute. This can cause serious confusion to beginners but can also lead to
> extremely hard to troubleshoot subtle bugs.
--
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: [email protected]
For additional commands, e-mail: [email protected]