@Override void add(SolrInputDocument doc, int line, int column, String val) { CSVParser parser = new CSVParser(new StringReader(val), strategy); try { String[] vals = parser.getLine(); if (vals != null) { for (String v : vals) base.add(doc, line, column, v); } else { base.add(doc, line, column, val); } } catch (IOException e) { throw new SolrException(SolrException.ErrorCode.BAD_REQUEST, e); } }
@Override void add(SolrInputDocument doc, int line, int column, String val) { if (from.equals(val)) val = to; base.add(doc, line, column, val); }
@Override void add(SolrInputDocument doc, int line, int column, String val) { base.add(doc, line, column, val.trim()); }