package ca.ualberta.team7project.network;

public class ElasticSearchSearchResponse {

}

@@ -40,50 +40,860 @@
 k;%0A%0A
-public class ElasticSearchSearchResponse %7B%0A
+import java.util.ArrayList;%0Aimport java.util.Collection;%0A%0A/*%0A * Represents a search response from ElasticSearch.%0A * Taken from https://github.com/zjullion/PicPosterComplete%0A * which is taken from https://github.com/rayzhangcl/ESDemo%0A */%0Apublic class ElasticSearchSearchResponse%3CT%3E %7B%0A%09int took;%0A    boolean timed_out;%0A    transient Object _shards;%0A    Hits%3CT%3E hits;%0A    boolean exists;    %0A    public Collection%3CElasticSearchResponse%3CT%3E%3E getHits() %7B%0A        return hits.getHits();        %0A    %7D%0A    public Collection%3CT%3E getSources() %7B%0A        Collection%3CT%3E out = new ArrayList%3CT%3E();%0A        for (ElasticSearchResponse%3CT%3E essrt : getHits()) %7B%0A            out.add( essrt.getSource() );%0A        %7D%0A        return out;%0A    %7D%0A    public String toString() %7B%0A        return (super.toString() + %22:%22 + took + %22,%22 + _shards + %22,%22 + exists + %22,%22  + hits);     %0A    %7D
 %0A%7D%0A

Add new changes to ElasticSearchOperation class