Skip to content

Commit

Permalink
Revert: Force clustering above a certain radius size for quicker resp…
Browse files Browse the repository at this point in the history
…onse
  • Loading branch information
melkamar committed Apr 28, 2018
1 parent be25e92 commit 7d2c07e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,4 @@ public class Constants {
* This value effectively corresponds to an index server's /api/query?clusterLimit parameter.
*/
public static final int CLUSTERING_THRESHOLD = 1000;

public static final int FORCE_CLUSTER_RADIUS_THRESHOLD = 5;
}
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,7 @@ public PlaceFetcher.FetchPlacesResult fetchPlaces(DataDef dataDef, double latitu
new KeyVal("long", longitude + ""),
new KeyVal("r", kmRadius + ""),
new KeyVal("type", dataDef.getSourceClassDef().getClassUri() + ""),
new KeyVal("clusterLimit", Constants.CLUSTERING_THRESHOLD + ""),
new KeyVal("forceCluster", kmRadius > Constants.FORCE_CLUSTER_RADIUS_THRESHOLD ? "true" : "false")
new KeyVal("clusterLimit", Constants.CLUSTERING_THRESHOLD + "")
});

if (result.hasError()) {
Expand Down

0 comments on commit 7d2c07e

Please sign in to comment.