metamodel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From LosD <>
Subject [GitHub] metamodel pull request: Use missing and exists filters for null co...
Date Thu, 03 Sep 2015 13:50:23 GMT
Github user LosD commented on a diff in the pull request:
    --- Diff: elasticsearch/src/test/java/org/apache/metamodel/elasticsearch/
    @@ -559,7 +560,16 @@ private static void indexBulkDocuments(String indexName, String indexType,
int n
    -    private static void indexOneTweeterDocumentPerIndex(String indexType, int id) {
    +    private static void indexTweeterDocument(String indexType, int id, Date date) {
    +        try {
    +            client.prepareIndex(indexName, indexType).setSource(buildTweeterJson(id,
    +                    .setId("tweet_" + indexType + "_" + id).execute().actionGet();
    +        } catch (Exception ex) {
    +            System.out.println("Exception indexing documents!!!!!");
    --- End diff --
    I completely agree (except I wouldn't rethrow, but use throws instead), but it seemed
to be the pattern for all the indexing methods here, so I just went with the flow :)

If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at or file a JIRA ticket
with INFRA.

View raw message