mirror of
https://github.com/yacy/yacy_search_server.git
synced 2024-09-19 00:01:41 +02:00
added another decoration flag to switch off network graphics in crawler
monitor and index browser: decoration.grafics.linkstructure Please set this to false to remove the graphics from the interface.
This commit is contained in:
parent
764e4ed673
commit
8c1a89cb34
|
@ -1260,3 +1260,5 @@ crawler.userAgent.clienttimeout = 10000
|
|||
|
||||
# interface decorations
|
||||
decoration.audio = false
|
||||
decoration.grafics.linkstructure = true
|
||||
|
||||
|
|
|
@ -662,7 +662,8 @@ public class Crawler_p {
|
|||
prop.put("crawlProfilesShow", count == 0 ? 0 : 1);
|
||||
|
||||
prop.put("crawlProfilesShow_linkstructure", 0);
|
||||
if (count > 0) {
|
||||
|
||||
if (count > 0 && sb.getConfigBool(SwitchboardConstants.DECORATION_GRAFICS_LINKSTRUCTURE, true)) {
|
||||
// collect the host names for 'wide' crawls which can be visualized
|
||||
boolean showLinkstructure = hosts.length() > 0 && !hosts.contains("file:");
|
||||
if (showLinkstructure) {
|
||||
|
|
|
@ -514,7 +514,7 @@ public class HostBrowser {
|
|||
prop.put("files_subpathdetectedsize", filecounter - storedDocs.size());
|
||||
prop.put("files", 1);
|
||||
uri = new DigestURL(path);
|
||||
prop.put("files_linkgraph", uri.getPath().length() <= 1 && hostsize > 0);
|
||||
prop.put("files_linkgraph", uri.getPath().length() <= 1 && hostsize > 0 && sb.getConfigBool(SwitchboardConstants.DECORATION_GRAFICS_LINKSTRUCTURE, true));
|
||||
prop.put("files_linkgraph_host", uri.getHost());
|
||||
|
||||
// generate inbound-links table
|
||||
|
|
|
@ -559,5 +559,6 @@ public final class SwitchboardConstants {
|
|||
* decorations
|
||||
*/
|
||||
public static final String DECORATION_AUDIO = "decoration.audio";
|
||||
public static final String DECORATION_GRAFICS_LINKSTRUCTURE = "decoration.grafics.linkstructure";
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user