优化elasticsearch

This commit is contained in:
deepzz0
2016-10-28 01:10:57 +08:00
parent 8b496f42bf
commit 56dcb65ba2
5 changed files with 232 additions and 143 deletions

View File

@@ -60,7 +60,7 @@ func IgnoreHtmlTag(src string) string {
src = re.ReplaceAllString(src, "")
//去除换行符
re, _ = regexp.Compile("\\s{1,}")
re, _ = regexp.Compile("\\s{2,}")
return re.ReplaceAllString(src, "")
}