cluster_search/commit

Reset settings in rdf_search defaults and setting settings using the option method.

authorChris Dijkshoorn
Tue Mar 10 16:25:34 2015 +0000
committerChris Dijkshoorn
Tue Mar 10 16:25:34 2015 +0000
commit2b15711db3aa2fe8476ecae2f659fa112a9976c2
tree0e817a41af43e6fe0fd6f1be7cb0bc78109fbb5a
parent85190755fc61f9ff1f105c101bf1361afc04543c
Diff style: patch stat
diff --git a/api/cluster_search.pl b/api/cluster_search.pl
index aeaa873..5c7e7cc 100644
--- a/api/cluster_search.pl
+++ b/api/cluster_search.pl
@@ -49,7 +49,9 @@ get_parameters(Request, Options) :-
 cluster_search(Clusters, Options) :-
     option(query(Query), Options),
     debug(query, 'cluster_search Query: ~p', [Query]),
-    SearchOptions = [graphOutput(spo)],
+    SearchOptions = [graphOutput(spo),
+					 edge_limit(30),
+					 threshold(0.001)],
     graph_search(Query, State, SearchOptions),
     OrganizeOptions = [groupBy(path)],
     organize_resources(State, Clusters, OrganizeOptions).
diff --git a/lib/cluster_search/rdf_search.pl b/lib/cluster_search/rdf_search.pl
index 39dc699..3b9b83e 100644
--- a/lib/cluster_search/rdf_search.pl
+++ b/lib/cluster_search/rdf_search.pl
@@ -62,7 +62,7 @@
 	      targets,			% Collected hits
 	      target_count = 0,		% # Targets found
 	      target_condition,		% Test resource as a target
-	      threshold = 0.0001,		% Graph search threshold
+	      threshold = 0.05,		% Graph search threshold
 	      literal_threshold = 0.05,	% Literal matching threshold
 	      literal_score = true,	% Use literal score in graph search
 	      edge_limit = 0,		% limit edges per node