摘要:
(1)在大量文件所在的目录,在地址栏输入cmd,进行cmd模式。 (2)copy *.txt destination.txt 执行这样的命令即可。文件格式可以更改。 阅读全文
摘要:
solr的提供了一个CSV Response writer,可以帮助我们导出的Solr的结果,导出成CSV文件。 http://localhost:8983/solr/select?q=huawei&fl=id,cat,name,popularity,price,score&wt=csv&rows= 阅读全文
摘要:
1 /** 2 * 批量更新文档 3 * 4 * @param index ES索引 5 * @param documents 待提交的批量文档 6 * @param uuidKey 文档中ID字段对应的key值 7 */ 8 public BulkResponse updateDocumentsA 阅读全文
摘要:
1 import com.alibaba.fastjson.JSON; 2 import lombok.extern.slf4j.Slf4j; 3 import org.apache.commons.collections4.CollectionUtils; 4 import org.apache. 阅读全文
摘要:
可以用apache工具类DigestUtils实现 使用的类完整路径:org.apache.common.codec.digest.DigestUtils public static string md5(String str){ if(str == null){ return ""; } reut 阅读全文