[jira] [Commented] (SOLR-2039) Multivalued fields with dynamic names does not work properly with DIH

2016-10-25 Thread ASF subversion and git services (JIRA)

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

ASF subversion and git services commented on SOLR-2039:
---

Commit 279647a303750408d10f6f8a6c27a066176fe49e in lucene-solr's branch 
refs/heads/branch_6x from [~shalinmangar]
[ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=279647a ]

SOLR-2039: Multivalued fields with dynamic names does not work properly with DIH

(cherry picked from commit b8d9647)


> Multivalued fields with dynamic names does not work properly with DIH
> -
>
> Key: SOLR-2039
> URL: https://issues.apache.org/jira/browse/SOLR-2039
> Project: Solr
>  Issue Type: Bug
>  Components: contrib - DataImportHandler
>Affects Versions: 1.4.1
> Environment: Windows XP, Default Solr 1.4 install with jetty
>Reporter: K A
>Assignee: Shalin Shekhar Mangar
> Attachments: SOLR-2039.patch, SOLR-2039.patch
>
>
> Attempting to use multiValued fields using the DataImportHandler with dynamic 
> names does not seem to work as intended.
> Setting up the following in schema.xml
>  multiValued="true" /> 
> Then attempting to import a multiValued field through a RDBMS using children 
> records with a dynamic name. The snippet from data-config.xml
> 
>>
>   column="TEXT_VALUE" />
>
>  
> Results in only the FIRST record being imported. If we change the field name 
> in the above example to a constant (ie above field entry becomes:  name="metadata_record_s" column="TEXT_VALUE" />). The multiple records are 
> correctly imported.
> This was posted on solr-user, and others have reported the problem on the 
> mailing list archive.
> The workaround was to use a javascript transform to perform the same 
> behavior. Changes in data-config.xml become:
>  transformer="script:f1"/> 
>    function f1(row) {
> var name = row.get('CORE_DESC_TERM');
> var value = row.get('TEXT_VALUE')
> row.put(name+ '_s', value);
>
> return row;
>   }
>  ]]> 
> This results in multivalued field with a dynamic name assigned.
>  



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

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



[jira] [Commented] (SOLR-2039) Multivalued fields with dynamic names does not work properly with DIH

2016-10-25 Thread ASF subversion and git services (JIRA)

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

ASF subversion and git services commented on SOLR-2039:
---

Commit b8d9647307c5559706aeec3aad32c2e416188979 in lucene-solr's branch 
refs/heads/master from [~shalinmangar]
[ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=b8d9647 ]

SOLR-2039: Multivalued fields with dynamic names does not work properly with DIH


> Multivalued fields with dynamic names does not work properly with DIH
> -
>
> Key: SOLR-2039
> URL: https://issues.apache.org/jira/browse/SOLR-2039
> Project: Solr
>  Issue Type: Bug
>  Components: contrib - DataImportHandler
>Affects Versions: 1.4.1
> Environment: Windows XP, Default Solr 1.4 install with jetty
>Reporter: K A
>Assignee: Shalin Shekhar Mangar
> Attachments: SOLR-2039.patch, SOLR-2039.patch
>
>
> Attempting to use multiValued fields using the DataImportHandler with dynamic 
> names does not seem to work as intended.
> Setting up the following in schema.xml
>  multiValued="true" /> 
> Then attempting to import a multiValued field through a RDBMS using children 
> records with a dynamic name. The snippet from data-config.xml
> 
>>
>   column="TEXT_VALUE" />
>
>  
> Results in only the FIRST record being imported. If we change the field name 
> in the above example to a constant (ie above field entry becomes:  name="metadata_record_s" column="TEXT_VALUE" />). The multiple records are 
> correctly imported.
> This was posted on solr-user, and others have reported the problem on the 
> mailing list archive.
> The workaround was to use a javascript transform to perform the same 
> behavior. Changes in data-config.xml become:
>  transformer="script:f1"/> 
>    function f1(row) {
> var name = row.get('CORE_DESC_TERM');
> var value = row.get('TEXT_VALUE')
> row.put(name+ '_s', value);
>
> return row;
>   }
>  ]]> 
> This results in multivalued field with a dynamic name assigned.
>  



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

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



[jira] Commented: (SOLR-2039) Multivalued fields with dynamic names does not work properly with DIH

2010-11-20 Thread pavlick (JIRA)

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

pavlick commented on SOLR-2039:
---

how i understand, the issue is that DIH cannot import dynamic fields with 
specific field names. for example, i have following 
+schema.xml+
{color:green}

{color}

+data-config.xml+
{color:green}



{color}
DB with following content
|*item_name*|*item_value*|
|item1 |value1   |
|item2 |value2   |

and i want to Solr indexed my data such way, that i would get something like 
this
{color:green}


value1


value2


{color}

> Multivalued fields with dynamic names does not work properly with DIH
> -
>
> Key: SOLR-2039
> URL: https://issues.apache.org/jira/browse/SOLR-2039
> Project: Solr
>  Issue Type: Bug
>  Components: contrib - DataImportHandler
>Affects Versions: 1.4.1
> Environment: Windows XP, Default Solr 1.4 install with jetty
>Reporter: K A
>
> Attempting to use multiValued fields using the DataImportHandler with dynamic 
> names does not seem to work as intended.
> Setting up the following in schema.xml
>  multiValued="true" /> 
> Then attempting to import a multiValued field through a RDBMS using children 
> records with a dynamic name. The snippet from data-config.xml
> 
>>
>   column="TEXT_VALUE" />
>
>  
> Results in only the FIRST record being imported. If we change the field name 
> in the above example to a constant (ie above field entry becomes:  name="metadata_record_s" column="TEXT_VALUE" />). The multiple records are 
> correctly imported.
> This was posted on solr-user, and others have reported the problem on the 
> mailing list archive.
> The workaround was to use a javascript transform to perform the same 
> behavior. Changes in data-config.xml become:
>  transformer="script:f1"/> 
>    function f1(row) {
> var name = row.get('CORE_DESC_TERM');
> var value = row.get('TEXT_VALUE')
> row.put(name+ '_s', value);
>
> return row;
>   }
>  ]]> 
> This results in multivalued field with a dynamic name assigned.
>  

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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



[jira] Commented: (SOLR-2039) Multivalued fields with dynamic names does not work properly with DIH

2010-08-11 Thread Chris Male (JIRA)

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

Chris Male commented on SOLR-2039:
--

+1 to fixing this.  I have also seen this bug in the wild.

> Multivalued fields with dynamic names does not work properly with DIH
> -
>
> Key: SOLR-2039
> URL: https://issues.apache.org/jira/browse/SOLR-2039
> Project: Solr
>  Issue Type: Bug
>Affects Versions: 1.4.1
> Environment: Windows XP, Default Solr 1.4 install with jetty
>Reporter: K A
>
> Attempting to use multiValued fields using the DataImportHandler with dynamic 
> names does not seem to work as intended.
> Setting up the following in schema.xml
>  multiValued="true" /> 
> Then attempting to import a multiValued field through a RDBMS using children 
> records with a dynamic name. The snippet from data-config.xml
> 
>>
>   column="TEXT_VALUE" />
>
>  
> Results in only the FIRST record being imported. If we change the field name 
> in the above example to a constant (ie above field entry becomes:  name="metadata_record_s" column="TEXT_VALUE" />). The multiple records are 
> correctly imported.
> This was posted on solr-user, and others have reported the problem on the 
> mailing list archive.
> The workaround was to use a javascript transform to perform the same 
> behavior. Changes in data-config.xml become:
>  transformer="script:f1"/> 
>    function f1(row) {
> var name = row.get('CORE_DESC_TERM');
> var value = row.get('TEXT_VALUE')
> row.put(name+ '_s', value);
>
> return row;
>   }
>  ]]> 
> This results in multivalued field with a dynamic name assigned.
>  

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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