Skip to content

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

removed field selection because that created documents with that field only which was not useful when re-writing the same document

Michael Peter Christen1768c8201076
diff --git a/source/net/yacy/search/index/Segment.java b/source/net/yacy/search/index/Segment.java
index d9a0709b2..fd068b6fd 100644
--- a/source/net/yacy/search/index/Segment.java
+++ b/source/net/yacy/search/index/Segment.java
@@ -420,7 +420,7 @@ public class Segment {
// switch unique attribute in new document
solrInputDoc.setField(uniquefield.getSolrFieldName(), false);
// switch attribute also in all existing documents (which should be exactly only one!)
- SolrDocumentList docs = this.fulltext.getSolr().query(checkfield.getSolrFieldName() + ":" + checkstring + " AND " + uniquefield.getSolrFieldName() + ":true", 0, 1000, YaCySchema.id.getSolrFieldName());
+ SolrDocumentList docs = this.fulltext.getSolr().query(checkfield.getSolrFieldName() + ":" + checkstring + " AND " + uniquefield.getSolrFieldName() + ":true", 0, 1000);
for (SolrDocument doc: docs) {
SolrInputDocument sid = ClientUtils.toSolrInputDocument(doc);
sid.setField(uniquefield.getSolrFieldName(), false);