| | |
| | | linkTagInfoAnalyServerFilterStr + |
| | | "{\"range\":{\"linkTagInfo.picDate\":{\"gte\":\"now+8h-15s\",\"lt\":\"now+8h\"}}}" + |
| | | "]}}" + |
| | | "]}}," + |
| | | "],\"minimum_should_match\":1}}," + |
| | | "\"sort\":[{\"picDate\":{\"order\":\"desc\"}}]," + |
| | | "\"size\":\"1000\"," + |
| | | "\"_source\":{\"includes\":[],\"excludes\":[\"*.feature\"]}}" |
| | |
| | | util.ResponseFormat(c, code.CompareResultGone, m) |
| | | } |
| | | |
| | | |
| | | func sourceCompare(sources []interface{}, isEsSource bool, campareByte []byte, threshold float32) []interface{} { |
| | | var filterName = "feature" |
| | | if isEsSource { |
| | |
| | | type Hosts struct { |
| | | NewIp string `json:newIp` |
| | | OldIp string `json:oldIp` |
| | | } |
| | | |
| | | func forwardCommand() { |
| | | |
| | | } |
| | | |
| | | //func AddEsCluster(hosts []string) (string){ |
| | |
| | | linkTagInfoAnalyServerFilterStr + |
| | | "{\"range\":{\"linkTagInfo.picDate\":{\"from\":\"" + gteDate + "\",\"to\":\"" + lteDate + "\",\"include_lower\":true,\"include_upper\":true,\"boost\":1}}}"+ |
| | | "]}}" + |
| | | "]}}," + |
| | | "],\"minimum_should_match\":1}}," + |
| | | "\"sort\":[{\"_score\":{\"order\":\"desc\"}},{\"picDate\":{\"order\":\"desc\"}}]," + |
| | | "\"_source\":{\"includes\":[],\"excludes\":[\"*.feature\"]}" + |
| | | "}" |
| | |
| | | linkTagInfoCameraIdStr + |
| | | linkTagInfoAnalyServerFilterStr + |
| | | "]}}" + |
| | | "]}}," + |
| | | "],\"minimum_should_match\":1}}," + |
| | | "\"size\":\"20\",\"sort\":[{\"picDate\":{\"order\":\"desc\"}}]," + |
| | | "\"_source\":{\"includes\":[],\"excludes\":[\"*.feature\"]}" + |
| | | "}" |
| | |
| | | linkTagInfoCameraIdStr + |
| | | linkTagInfoAnalyServerFilterStr + |
| | | "]}}" + |
| | | "]}}," + |
| | | "],\"minimum_should_match\":1}}," + |
| | | "\"sort\":[{\"picDate\":{\"order\":\"desc\"}}]," + |
| | | "\"size\":\"20\"," + |
| | | "\"_source\":{\"includes\":[],\"excludes\":[\"*.feature\"]}}" |
| | |
| | | linkTagInfoAnalyServerFilterStr + |
| | | "{\"range\":{\"linkTagInfo.picDate\":{\"gte\":\"now+8h-15s\",\"lt\":\"now+8h\"}}}" + |
| | | "]}}" + |
| | | "]}}," + |
| | | "],\"minimum_should_match\":1}}," + |
| | | "\"sort\":[{\"picDate\":{\"order\":\"desc\"}}]," + |
| | | "\"size\":\"1000\"," + |
| | | "\"_source\":{\"includes\":[],\"excludes\":[\"*.feature\"]}}" |