Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance
Java decentralizedintranet-searchintranet-search-enginep2pp2p-networkprivacyprivacy-protectionsearch-enginesearchenginewebweb-search-enginewebsearchwebseearch-engine
Made "site:" query modifier case insensitive.
luccioman8fbf25d1ed3b
diff --git a/source/net/yacy/search/query/QueryModifier.java b/source/net/yacy/search/query/QueryModifier.javaindex 65b739ab7..ceedf3013 100644--- a/source/net/yacy/search/query/QueryModifier.java+++ b/source/net/yacy/search/query/QueryModifier.java@@ -226,8 +226,9 @@ public class QueryModifier {}/**- * Parses the query string for any eventual site modifier (site:), and fill the- * {@link #sitehost} and {@link #sitehash} attributes accordingly.+ * Parses the query string for any eventual site modifier (site:), adjust it to+ * lower case, and fill the {@link #sitehost} and {@link #sitehash} attributes+ * accordingly.** @param querystring* the query string. Must not be null.@@ -249,6 +250,9 @@ public class QueryModifier {while ( sitehost.endsWith(".") ) {this.sitehost = this.sitehost.substring(0, this.sitehost.length() - 1);}+ /* Domain name in an URL is case insensitive : convert now modifier to lower case for further processing over normalized URLs */+ this.sitehost = this.sitehost.toLowerCase(Locale.ROOT);+try {this.sitehash = DigestURL.hosthash(this.sitehost, this.sitehost.startsWith("ftp.") ? 21 : 80);} catch (MalformedURLException e) {