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

ASF GitHub Bot commented on METRON-1526:
----------------------------------------

Github user merrimanr commented on a diff in the pull request:

    https://github.com/apache/metron/pull/995#discussion_r184151697
  
    --- Diff: 
metron-platform/metron-solr/src/test/java/org/apache/metron/solr/integration/SolrUpdateIntegrationTest.java
 ---
    @@ -20,15 +20,21 @@
     import java.util.HashMap;
     import java.util.List;
     import java.util.Map;
    +import java.util.Optional;
    +
     import org.apache.metron.indexing.dao.IndexDao;
    +import org.apache.metron.indexing.dao.MultiIndexDao;
     import org.apache.metron.indexing.dao.UpdateIntegrationTest;
    +import org.apache.metron.indexing.dao.update.Document;
     import org.apache.metron.integration.InMemoryComponent;
     import org.apache.metron.solr.dao.SolrDao;
     import org.apache.metron.solr.integration.components.SolrComponent;
    +import org.junit.Assert;
    +import org.junit.Test;
     
     public class SolrUpdateIntegrationTest extends UpdateIntegrationTest {
     
    -  SolrComponent solrComponent;
    +  protected static SolrComponent solrComponent;
    --- End diff --
    
    When multiple tests exist in both SolrUpdateIntegrationTest and 
UpdateIntegrationTest, solrComponent isn't populated across tests because of 
how we're attempting to reuse it.  Making it static fixes the issue and matches 
the pattern in UpdateIntegrationTest.


> Location field types cause DocValuesField appear more than once error
> ---------------------------------------------------------------------
>
>                 Key: METRON-1526
>                 URL: https://issues.apache.org/jira/browse/METRON-1526
>             Project: Metron
>          Issue Type: Bug
>            Reporter: Ryan Merriman
>            Assignee: Ryan Merriman
>            Priority: Major
>
> While testing [https://github.com/apache/metron/pull/970] I get this error 
> when creating a meta alert:
> {code:java}
> Error from server at http://10.0.2.15:8983/solr/bro: Exception writing 
> document id bbc150f5-92f8-485d-93cc-11730c1edf31 to the index; possible 
> analysis error: DocValuesField 
> \"enrichments.geo.ip_dst_addr.location_point_0_coordinate\" appears more than 
> once in this document (only one value is allowed per field){code}
> I tracked it down to the fact that multiple fields are returned for a 
> location field.  For example when a field named 
> "enrichments.geo.ip_dst_addr.location_point" is configured in a schema, these 
> fields are returned in a query:
> {code:java}
> {
> "enrichments.geo.ip_dst_addr.location_point_0_coordinate": "33.4499",
> "enrichments.geo.ip_dst_addr.location_point_1_coordinate": "-112.0712",
> "enrichments.geo.ip_dst_addr.location_point": "33.4499,-112.0712"
> }
> {code}
>  We need a way to either suppress these extra fields when querying or remove 
> them before updating a document. 



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to