metron-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (METRON-1419) Create a SolrDao
Date Wed, 31 Jan 2018 18:23:00 GMT

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

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

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

    https://github.com/apache/metron/pull/911#discussion_r165142091
  
    --- Diff: metron-platform/metron-solr/src/test/java/org/apache/metron/solr/integration/components/SolrComponent.java
---
    @@ -158,4 +162,16 @@ public boolean hasCollection(String collection) {
         }
         return docs;
       }
    +
    +  public void addDocs(String collection, List<Map<String, Object>> docs)
    +      throws IOException, SolrServerException {
    +    CloudSolrClient solr = miniSolrCloudCluster.getSolrClient();
    +    solr.setDefaultCollection(collection);
    +    Collection<SolrInputDocument> solrInputDocuments = docs.stream().map(doc ->
{
    +      SolrInputDocument solrInputDocument = new SolrInputDocument();
    +      doc.entrySet().forEach(entry -> solrInputDocument.addField(entry.getKey(), entry.getValue()));
    --- End diff --
    
    Done


> Create a SolrDao
> ----------------
>
>                 Key: METRON-1419
>                 URL: https://issues.apache.org/jira/browse/METRON-1419
>             Project: Metron
>          Issue Type: Sub-task
>            Reporter: Justin Leet
>            Assignee: Ryan Merriman
>            Priority: Major
>
> Create an implementation of the IndexDao for Solr. This will involve implementing the
various IndexDao methods using the SolrJ library and also providing a SolrSearchIntegrationTest
that extends SearchIntegrationTest (similar to ElasticsearchSearchIntegrationTest). An integration
test similar to ElasticsearchUpdateIntegrationTest should also be included.



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

Mime
View raw message