Commit 663913ca authored by Quxl's avatar Quxl

x

parent ab2f1628
...@@ -23,7 +23,7 @@ public abstract class AbstractSolrApi implements SolrApi { ...@@ -23,7 +23,7 @@ public abstract class AbstractSolrApi implements SolrApi {
SolrInputDocument solrInputDocument = new SolrInputDocument(); SolrInputDocument solrInputDocument = new SolrInputDocument();
for (String key : map.keySet()) { for (String key : map.keySet()) {
if (key != null && key.trim().length() > 0) { if (key != null && key.trim().length() > 0) {
solrInputDocument.addField(key, map.get(key)); solrInputDocument.addField(key, StringUtil.toString(map.get(key)));
} }
} }
docs.add(solrInputDocument); docs.add(solrInputDocument);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment