fix from gaston in

http://forum.yacy-websuche.de/viewtopic.php?p=26909#p26909
This commit is contained in:
orbiter 2012-08-21 21:03:26 +02:00
parent acb9f04e80
commit 9b8c8c0f47

View File

@ -270,7 +270,7 @@ public class SolrConfiguration extends ConfigurationSet implements Serializable
if (text == null || text.length() == 0) return;
if (sb.length() != 0) sb.append(' ');
text = text.trim();
if (text.charAt(text.length() - 1) == '.') sb.append(text); else sb.append(text).append('.');
if (!text.isEmpty() && text.charAt(text.length() - 1) == '.') sb.append(text); else sb.append(text).append('.');
}
public SolrDoc yacy2solr(final String id, final ResponseHeader header, final Document yacydoc, final URIMetadata metadata) {