From 1768c82010769976c22d5b99d772fa8a903dddf3 Mon Sep 17 00:00:00 2001 From: Michael Peter Christen Date: Thu, 24 Jan 2013 03:26:38 +0100 Subject: [PATCH] removed field selection because that created documents with that field only which was not useful when re-writing the same document --- source/net/yacy/search/index/Segment.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);