Commit df629a9f authored by Quxl's avatar Quxl

x

parent d169aea7
...@@ -7,7 +7,6 @@ import java.util.Map; ...@@ -7,7 +7,6 @@ import java.util.Map;
import org.apache.solr.client.solrj.impl.HttpSolrClient; import org.apache.solr.client.solrj.impl.HttpSolrClient;
import org.apache.solr.common.SolrInputDocument; import org.apache.solr.common.SolrInputDocument;
import com.egolm.common.StringUtil;
import com.egolm.search.config.XRException; import com.egolm.search.config.XRException;
import com.google.common.collect.Lists; import com.google.common.collect.Lists;
...@@ -23,7 +22,7 @@ public abstract class AbstractSolrApi implements SolrApi { ...@@ -23,7 +22,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, StringUtil.toString(map.get(key))); solrInputDocument.addField(key, 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