diff --git a/defaults/yacy.init b/defaults/yacy.init
index e6ec5dc75..abccf1556 100644
--- a/defaults/yacy.init
+++ b/defaults/yacy.init
@@ -541,7 +541,7 @@ proxyURL.useforresults=false
# Autocrawl configuration
autocrawl=false
autocrawl.index.text=true
-autocrawl.index.meia=true
+autocrawl.index.media=true
autocrawl.ratio=50
autocrawl.rows=100
autocrawl.days=1
diff --git a/htroot/Autocrawl_p.html b/htroot/Autocrawl_p.html
index 03d6634d0..db77de051 100644
--- a/htroot/Autocrawl_p.html
+++ b/htroot/Autocrawl_p.html
@@ -38,6 +38,11 @@
Deep crawl depth (1 to 5):
+ Index text:
+
+ Index media:
+
+
diff --git a/htroot/Autocrawl_p.java b/htroot/Autocrawl_p.java
index 375bb2a3a..59aa6bc65 100644
--- a/htroot/Autocrawl_p.java
+++ b/htroot/Autocrawl_p.java
@@ -18,6 +18,8 @@ public class Autocrawl_p {
String autocrawlQuery = sb.getConfig(SwitchboardConstants.AUTOCRAWL_QUERY, "*:*");
int autocrawlShallow = Integer.parseInt(sb.getConfig(SwitchboardConstants.AUTOCRAWL_SHALLOW_DEPTH, "1"));
int autocrawlDeep = Integer.parseInt(sb.getConfig(SwitchboardConstants.AUTOCRAWL_DEEP_DEPTH, "3"));
+ boolean autocrawlText = sb.getConfigBool(SwitchboardConstants.AUTOCRAWL_INDEX_TEXT, true);
+ boolean autocrawlMedia = sb.getConfigBool(SwitchboardConstants.AUTOCRAWL_INDEX_MEDIA, true);
if (post != null) {
autocrawlEnable = post.getBoolean("autocrawlEnable");
@@ -39,6 +41,8 @@ public class Autocrawl_p {
if (post.containsKey("autocrawlDeep")) {
autocrawlDeep = post.getInt("autocrawlDeep", 3);
}
+ autocrawlText = post.getBoolean("autocrawlText");
+ autocrawlMedia = post.getBoolean("autocrawlMedia");
}
if (autocrawlRatio > 500) {
@@ -75,6 +79,8 @@ public class Autocrawl_p {
sb.setConfig(SwitchboardConstants.AUTOCRAWL_QUERY, autocrawlQuery);
sb.setConfig(SwitchboardConstants.AUTOCRAWL_SHALLOW_DEPTH, autocrawlShallow);
sb.setConfig(SwitchboardConstants.AUTOCRAWL_DEEP_DEPTH, autocrawlDeep);
+ sb.setConfig(SwitchboardConstants.AUTOCRAWL_INDEX_TEXT, autocrawlText);
+ sb.setConfig(SwitchboardConstants.AUTOCRAWL_INDEX_MEDIA, autocrawlMedia);
sb.initAutocrawl(autocrawlEnable);
@@ -88,6 +94,8 @@ public class Autocrawl_p {
prop.put("autocrawlQuery", autocrawlQuery);
prop.put("autocrawlShallow", autocrawlShallow);
prop.put("autocrawlDeep", autocrawlDeep);
+ prop.put("autocrawlText", autocrawlText);
+ prop.put("autocrawlMedia", autocrawlMedia);
return prop;
}