Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance
Java decentralizedintranet-searchintranet-search-enginep2pp2p-networkprivacyprivacy-protectionsearch-enginesearchenginewebweb-search-enginewebsearchwebseearch-engine
remove augmented parsing activation from frontend experimental implementation not used and based on error prone experimental rdfaparser
reger7478338a4040
diff --git a/htroot/AugmentedParsing_p.html b/htroot/AugmentedParsing_p.htmldeleted file mode 100644index 28cb5103d..000000000--- a/htroot/AugmentedParsing_p.html+++ /dev/null@@ -1,36 +0,0 @@-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">-<html xmlns="http://www.w3.org/1999/xhtml">- <head>- <title>YaCy '#[clientname]#': Augmented Parsing</title>- #%env/templates/metas.template%#- </head>- <body id="Settings">- #%env/templates/header.template%#- #%env/templates/submenuSemantic.template%#- <h2>Augmented Parsing</h2>-- <form id="parsersettings" action="AugmentedParsing_p.html" method="post" enctype="multipart/form-data">- <fieldset><legend id="urlproxy">Global Status</legend>-<p>- With this settings you can activate or deactivate augmented parsing which combines the documents with information from external sources (tags etc.).-</p>-- <dl>-- <dt><label for="content">Augmented Parser:</label></dt>- <dd>- <input type="checkbox" name="augmentedparserenabled" id="augmentedparserenabled" #(augmentedparserenabled_checked)#:: checked="checked"#(/augmentedparserenabled_checked)# />Enabled<br/>- <p class="help">- Globally enables or disables the augmented parser. This setting requires a restart.- </p>- </dd>- </dl>-- <input type="submit" name="augmentedparserSettings" value="Submit" class="btn btn-primary"/>- </fieldset>- </form>--- #%env/templates/footer.template%#- </body>-</html>diff --git a/htroot/AugmentedParsing_p.java b/htroot/AugmentedParsing_p.javadeleted file mode 100644index 481aead4e..000000000--- a/htroot/AugmentedParsing_p.java+++ /dev/null@@ -1,30 +0,0 @@-import net.yacy.cora.protocol.RequestHeader;-import net.yacy.server.serverObjects;-import net.yacy.server.serverSwitch;--public final class AugmentedParsing_p {-- public static serverObjects respond(@SuppressWarnings("unused") final RequestHeader header, final serverObjects post, final serverSwitch env) {- // return variable that accumulates replacements- final serverObjects prop = new serverObjects();-- if (post != null) {-- if (post.containsKey("augmentedparserSettings")) {--- env.setConfig("parserAugmentation",- "on".equals(post.get("augmentedparserenabled")) ? true : false);-- }-- }-- prop.put("augmentedparserenabled_checked",- env.getConfigBool("parserAugmentation", false) ? "1" : "0");-- // return rewrite properties- return prop;- }--}diff --git a/htroot/env/templates/submenuSemantic.template b/htroot/env/templates/submenuSemantic.templateindex 97abe40ae..e4efc52bb 100644--- a/htroot/env/templates/submenuSemantic.template+++ b/htroot/env/templates/submenuSemantic.template@@ -14,7 +14,6 @@<h3>Augmented Content</h3><ul class="SubMenu"><li><a href="AugmentedBrowsing_p.html" class="MenuItemLink #(authorized)#lock::unlock#(/authorized)#">Augmented Browsing</a></li>- <li><a href="AugmentedParsing_p.html" class="MenuItemLink #(authorized)#lock::unlock#(/authorized)#">Augmented Parsing</a></li></ul></div></div>\ No newline at end of filediff --git a/source/net/yacy/document/TextParser.java b/source/net/yacy/document/TextParser.javaindex 468d96b39..f077feb7c 100644--- a/source/net/yacy/document/TextParser.java+++ b/source/net/yacy/document/TextParser.java@@ -64,12 +64,10 @@ import net.yacy.document.parser.vcfParser;import net.yacy.document.parser.vsdParser;import net.yacy.document.parser.xlsParser;import net.yacy.document.parser.zipParser;-import net.yacy.document.parser.augment.AugmentParser;import net.yacy.document.parser.images.genericImageParser;import net.yacy.document.parser.images.metadataImageParser;import net.yacy.kelondro.util.FileUtils;import net.yacy.kelondro.util.MemoryControl;-import net.yacy.search.Switchboard;public final class TextParser {@@ -90,7 +88,7 @@ public final class TextParser {initParser(new docParser());initParser(new gzipParser());// AugmentParser calls internally RDFaParser (therefore add before RDFa)- if (Switchboard.getSwitchboard().getConfigBool("parserAugmentation", true)) initParser(new AugmentParser());+ // if (Switchboard.getSwitchboard().getConfigBool("parserAugmentation", true)) initParser(new AugmentParser()); // experimental implementation, not working yet (2015-06-05)// RDFaParser calls internally htmlParser (therefore add before html)// if (Switchboard.getSwitchboard().getConfigBool("parserAugmentation.RDFa", true)) initParser(new RDFaParser()); // experimental implementation, not working yet (2015-06-04)initParser(new htmlParser()); // called within rdfa parser