Andreas Niekler (JIRA | 21 Aug 2012 17:41
Picon
Favicon

[jira] [Created] (UIMA-2456) Field Mapping overwrites Features of the same type

Andreas Niekler created UIMA-2456:
-------------------------------------

             Summary: Field Mapping overwrites Features of the same type
                 Key: UIMA-2456
                 URL: https://issues.apache.org/jira/browse/UIMA-2456
             Project: UIMA
          Issue Type: Bug
          Components: Sandbox-Solrcas
    Affects Versions: 2.3.1
         Environment: Java, Eclipse
            Reporter: Andreas Niekler

The field mapping is not right. The HashMap (mapping = new HashMap<String, String>();) with the fields
within the code gets overwritten by a new HashMap for the type name instead of adding another feature
mapping to the exiting mapping of the Type if more than 1 Feature of one type is addressed in the mapping file.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

Andreas Niekler (JIRA | 22 Aug 2012 09:51
Picon
Favicon

[jira] [Updated] (UIMA-2456) Field Mapping overwrites Features of the same type


     [
https://issues.apache.org/jira/browse/UIMA-2456?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andreas Niekler updated UIMA-2456:
----------------------------------

    Description: The field mapping is not right. The HashMap (mapping = new HashMap<String, String>(); ) with
the fields within the code gets overwritten by a new HashMap for the type name instead of adding another
feature mapping to the exiting mapping of the Type if more than 1 Feature of one type is addressed in the
mapping file.  (was: The field mapping is not right. The HashMap (mapping = new HashMap<String,
String>();) with the fields within the code gets overwritten by a new HashMap for the type name instead of
adding another feature mapping to the exiting mapping of the Type if more than 1 Feature of one type is
addressed in the mapping file.)

> Field Mapping overwrites Features of the same type
> --------------------------------------------------
>
>                 Key: UIMA-2456
>                 URL: https://issues.apache.org/jira/browse/UIMA-2456
>             Project: UIMA
>          Issue Type: Bug
>          Components: Sandbox-Solrcas
>    Affects Versions: 2.3.1
>         Environment: Java, Eclipse
>            Reporter: Andreas Niekler
>              Labels: bug
>   Original Estimate: 0h
>  Remaining Estimate: 0h
>
(Continue reading)

Andreas Niekler (JIRA | 22 Aug 2012 09:53
Picon
Favicon

[jira] [Commented] (UIMA-2456) Field Mapping overwrites Features of the same type


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

Andreas Niekler commented on UIMA-2456:
---------------------------------------

I have already a working and tested FieldMappingReader.java. If one tells me where to put it (right here?) i
will do so

> Field Mapping overwrites Features of the same type
> --------------------------------------------------
>
>                 Key: UIMA-2456
>                 URL: https://issues.apache.org/jira/browse/UIMA-2456
>             Project: UIMA
>          Issue Type: Bug
>          Components: Sandbox-Solrcas
>    Affects Versions: 2.3.1
>         Environment: Java, Eclipse
>            Reporter: Andreas Niekler
>              Labels: bug
>   Original Estimate: 0h
>  Remaining Estimate: 0h
>
> The field mapping is not right. The HashMap (mapping = new HashMap<String, String>(); ) with the fields
within the code gets overwritten by a new HashMap for the type name instead of adding another feature
mapping to the exiting mapping of the Type if more than 1 Feature of one type is addressed in the mapping file.

(Continue reading)

Picon
Favicon

[jira] [Commented] (UIMA-2456) Field Mapping overwrites Features of the same type


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

Richard Eckart de Castilho commented on UIMA-2456:
--------------------------------------------------

Make a patch (diff) from the changes and attach the patch file to this issue.

> Field Mapping overwrites Features of the same type
> --------------------------------------------------
>
>                 Key: UIMA-2456
>                 URL: https://issues.apache.org/jira/browse/UIMA-2456
>             Project: UIMA
>          Issue Type: Bug
>          Components: Sandbox-Solrcas
>    Affects Versions: 2.3.1
>         Environment: Java, Eclipse
>            Reporter: Andreas Niekler
>              Labels: bug
>   Original Estimate: 0h
>  Remaining Estimate: 0h
>
> The field mapping is not right. The HashMap (mapping = new HashMap<String, String>(); ) with the fields
within the code gets overwritten by a new HashMap for the type name instead of adding another feature
mapping to the exiting mapping of the Type if more than 1 Feature of one type is addressed in the mapping file.

--
(Continue reading)

Andreas Niekler (JIRA | 22 Aug 2012 17:13
Picon
Favicon

[jira] [Updated] (UIMA-2456) Field Mapping overwrites Features of the same type


     [
https://issues.apache.org/jira/browse/UIMA-2456?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andreas Niekler updated UIMA-2456:
----------------------------------

    Attachment: FieldMappingReader.diff

Here is the diff file. I hope everything is ok since this is my first contribution to the Jira system.

> Field Mapping overwrites Features of the same type
> --------------------------------------------------
>
>                 Key: UIMA-2456
>                 URL: https://issues.apache.org/jira/browse/UIMA-2456
>             Project: UIMA
>          Issue Type: Bug
>          Components: Sandbox-Solrcas
>    Affects Versions: 2.3.1
>         Environment: Java, Eclipse
>            Reporter: Andreas Niekler
>              Labels: bug
>         Attachments: FieldMappingReader.diff
>
>   Original Estimate: 0h
>  Remaining Estimate: 0h
>
> The field mapping is not right. The HashMap (mapping = new HashMap<String, String>(); ) with the fields
within the code gets overwritten by a new HashMap for the type name instead of adding another feature
(Continue reading)

Marshall Schor | 23 Aug 2012 17:57

Re: [jira] [Updated] (UIMA-2456) Field Mapping overwrites Features of the same type

Tommaso, do you think you could take a look at this, and if it seems right,
apply the patch?

-Marshall

On 8/22/2012 11:13 AM, Andreas Niekler (JIRA) wrote:
>      [
https://issues.apache.org/jira/browse/UIMA-2456?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
>
> Andreas Niekler updated UIMA-2456:
> ----------------------------------
>
>     Attachment: FieldMappingReader.diff
>
> Here is the diff file. I hope everything is ok since this is my first contribution to the Jira system.
>                 
>> Field Mapping overwrites Features of the same type
>> --------------------------------------------------
>>
>>                 Key: UIMA-2456
>>                 URL: https://issues.apache.org/jira/browse/UIMA-2456
>>             Project: UIMA
>>          Issue Type: Bug
>>          Components: Sandbox-Solrcas
>>    Affects Versions: 2.3.1
>>         Environment: Java, Eclipse
>>            Reporter: Andreas Niekler
>>              Labels: bug
>>         Attachments: FieldMappingReader.diff
>>
(Continue reading)

Tommaso Teofili | 28 Aug 2012 13:57
Picon
Gravatar

Re: [jira] [Updated] (UIMA-2456) Field Mapping overwrites Features of the same type

Hi Marshall,

I think that's good (sorry I missed this thread), I'll review it and most
likely commit it today.
Regards,
Tommaso

2012/8/23 Marshall Schor <msa@...>

> Tommaso, do you think you could take a look at this, and if it seems right,
> apply the patch?
>
> -Marshall
>
> On 8/22/2012 11:13 AM, Andreas Niekler (JIRA) wrote:
> >      [
> https://issues.apache.org/jira/browse/UIMA-2456?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel]
> >
> > Andreas Niekler updated UIMA-2456:
> > ----------------------------------
> >
> >     Attachment: FieldMappingReader.diff
> >
> > Here is the diff file. I hope everything is ok since this is my first
> contribution to the Jira system.
> >
> >> Field Mapping overwrites Features of the same type
> >> --------------------------------------------------
> >>
> >>                 Key: UIMA-2456
(Continue reading)

Tommaso Teofili (JIRA | 28 Aug 2012 14:20
Picon
Favicon

[jira] [Resolved] (UIMA-2456) Field Mapping overwrites Features of the same type


     [
https://issues.apache.org/jira/browse/UIMA-2456?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tommaso Teofili resolved UIMA-2456.
-----------------------------------

       Resolution: Fixed
    Fix Version/s: 2.4.0Addons
         Assignee: Tommaso Teofili

> Field Mapping overwrites Features of the same type
> --------------------------------------------------
>
>                 Key: UIMA-2456
>                 URL: https://issues.apache.org/jira/browse/UIMA-2456
>             Project: UIMA
>          Issue Type: Bug
>          Components: Sandbox-Solrcas
>    Affects Versions: 2.3.1
>         Environment: Java, Eclipse
>            Reporter: Andreas Niekler
>            Assignee: Tommaso Teofili
>              Labels: bug, patch
>             Fix For: 2.4.0Addons
>
>         Attachments: FieldMappingReader.diff
>
>   Original Estimate: 0h
>  Remaining Estimate: 0h
(Continue reading)

Tommaso Teofili (JIRA | 28 Aug 2012 14:20
Picon
Favicon

[jira] [Commented] (UIMA-2456) Field Mapping overwrites Features of the same type


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

Tommaso Teofili commented on UIMA-2456:
---------------------------------------

thanks Andreas, I've committed your patch (adjusting indent format to 2 spaces instead of tabs).

> Field Mapping overwrites Features of the same type
> --------------------------------------------------
>
>                 Key: UIMA-2456
>                 URL: https://issues.apache.org/jira/browse/UIMA-2456
>             Project: UIMA
>          Issue Type: Bug
>          Components: Sandbox-Solrcas
>    Affects Versions: 2.3.1
>         Environment: Java, Eclipse
>            Reporter: Andreas Niekler
>              Labels: bug, patch
>             Fix For: 2.4.0Addons
>
>         Attachments: FieldMappingReader.diff
>
>   Original Estimate: 0h
>  Remaining Estimate: 0h
>
> The field mapping is not right. The HashMap (mapping = new HashMap<String, String>(); ) with the fields
(Continue reading)


Gmane