Skip to content

Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance

there is no noindex, only nofollow in links

Michael Peter Christen8bee1472c9b6
diff --git a/defaults/solr.keys.list b/defaults/solr.keys.list
index 02c01e369..fa5ca6e23 100644
--- a/defaults/solr.keys.list
+++ b/defaults/solr.keys.list
@@ -109,8 +109,8 @@ inboundlinks_tag_txt
## total number of inbound links, int
inboundlinkscount_i
-## number of inbound links with noindex tag, int
-inboundlinksnoindexcount_i
+## number of inbound links with nofollow tag, int
+inboundlinksnofollowcount_i
## external links, normalized (absolute URLs), as <a> - tag with anchor text and nofollow, textgen
outboundlinks_tag_txt
@@ -136,8 +136,8 @@ outboundlinks_tag_txt
## external number of inbound links, int
outboundlinkscount_i
-## number of external links with noindex tag, int
-outboundlinksnoindexcount_i
+## number of external links with nofollow tag, int
+outboundlinksnofollowcount_i
## all image tags, encoded as <img> tag inclusive alt- and title property, textgen
images_tag_txt
diff --git a/source/net/yacy/cora/services/federated/solr/SolrScheme.java b/source/net/yacy/cora/services/federated/solr/SolrScheme.java
index 564deb598..f21946896 100644
--- a/source/net/yacy/cora/services/federated/solr/SolrScheme.java
+++ b/source/net/yacy/cora/services/federated/solr/SolrScheme.java
@@ -148,7 +148,7 @@ public class SolrScheme extends ConfigurationSet {
wordcount_i(Types.integer, true, true),
paths_txt(Types.text_general, true, true, true),
inboundlinkscount_i(Types.integer, true, true),
- inboundlinksnoindexcount_i(Types.integer, true, true),
+ inboundlinksnofollowcount_i(Types.integer, true, true),
inboundlinks_tag_txt(Types.text_general, true, true, true),
inboundlinks_protocol_txt(Types.text_general, true, true, true),
inboundlinks_urlstub_txt(Types.text_general, true, true, true),
@@ -157,7 +157,7 @@ public class SolrScheme extends ConfigurationSet {
inboundlinks_relflags_txt(Types.text_general, true, true, true),
inboundlinks_text_txt(Types.text_general, true, true, true),
outboundlinkscount_i(Types.integer, true, true),
- outboundlinksnoindexcount_i(Types.integer, true, true),
+ outboundlinksnofollowcount_i(Types.integer, true, true),
outboundlinks_tag_txt(Types.text_general, true, true, true),
outboundlinks_protocol_txt(Types.text_general, true, true, true),
outboundlinks_urlstub_txt(Types.text_general, true, true, true),
@@ -297,7 +297,7 @@ public class SolrScheme extends ConfigurationSet {
final Map<MultiProtocolURI, Properties> alllinks = yacydoc.getAnchors();
int c = 0;
if (isEmpty() || contains(Field.inboundlinkscount_i.name())) addSolr(solrdoc, Field.inboundlinkscount_i, yacydoc.inboundLinkCount());
- if (isEmpty() || contains(Field.inboundlinksnoindexcount_i.name())) addSolr(solrdoc, Field.inboundlinksnoindexcount_i, yacydoc.inboundLinkNoindexCount());
+ if (isEmpty() || contains(Field.inboundlinksnofollowcount_i.name())) addSolr(solrdoc, Field.inboundlinksnofollowcount_i, yacydoc.inboundLinkNofollowCount());
final String[] inboundlinksTag = new String[yacydoc.inboundLinkCount()];
final String[] inboundlinksURLProtocol = new String[yacydoc.inboundLinkCount()];
final String[] inboundlinksURLStub = new String[yacydoc.inboundLinkCount()];
@@ -334,7 +334,7 @@ public class SolrScheme extends ConfigurationSet {
c = 0;
if (isEmpty() || contains(Field.outboundlinkscount_i.name())) addSolr(solrdoc, Field.outboundlinkscount_i, yacydoc.outboundLinkCount());
- if (isEmpty() || contains(Field.outboundlinksnoindexcount_i.name())) addSolr(solrdoc, Field.outboundlinksnoindexcount_i, yacydoc.outboundLinkNoindexCount());
+ if (isEmpty() || contains(Field.outboundlinksnofollowcount_i.name())) addSolr(solrdoc, Field.outboundlinksnofollowcount_i, yacydoc.outboundLinkNofollowCount());
final String[] outboundlinksTag = new String[yacydoc.outboundLinkCount()];
final String[] outboundlinksURLProtocol = new String[yacydoc.outboundLinkCount()];
final String[] outboundlinksURLStub = new String[yacydoc.outboundLinkCount()];
diff --git a/source/net/yacy/document/Document.java b/source/net/yacy/document/Document.java
index dfa8802db..cec3c7858 100644
--- a/source/net/yacy/document/Document.java
+++ b/source/net/yacy/document/Document.java
@@ -634,22 +634,22 @@ dc_rights
return (this.outboundlinks == null) ? 0 : this.outboundlinks.size();
}
- public int inboundLinkNoindexCount() {
+ public int inboundLinkNofollowCount() {
if (this.inboundlinks == null) resortLinks();
if (this.inboundlinks == null) return 0;
int c = 0;
for (final String tag: this.inboundlinks.values()) {
- if (tag.contains("noindex")) c++;
+ if (tag.contains("nofollow")) c++;
}
return c;
}
- public int outboundLinkNoindexCount() {
+ public int outboundLinkNofollowCount() {
if (this.outboundlinks == null) resortLinks();
if (this.outboundlinks == null) return 0;
int c = 0;
for (final String tag: this.outboundlinks.values()) {
- if (tag.contains("noindex")) c++;
+ if (tag.contains("nofollow")) c++;
}
return c;
}