TP-5555 | clean up job
This commit is contained in:
@@ -47,24 +47,6 @@ func (s *SearchService) GetErrorDetails(c *gin.Context) {
|
||||
after_query := utils.CreateFromQuery(fromInNumber)
|
||||
es_query := utils.CreateEsQuery(search_query, size_query, sort_query, after_query)
|
||||
|
||||
// searchRequest := `
|
||||
//{
|
||||
// "size": 1,
|
||||
// "query": {
|
||||
// "term": {
|
||||
// "error_hash": {
|
||||
// "value": "%s"
|
||||
// }
|
||||
// }
|
||||
// },
|
||||
// "sort": [
|
||||
// { "created_at": { "order": "asc" } }
|
||||
// ],
|
||||
// "search_after": ["1724732743"]
|
||||
//}
|
||||
//
|
||||
// `
|
||||
|
||||
searchRequestformatted := es_query
|
||||
fields := []string{"error", "significant_stack", "title"}
|
||||
|
||||
@@ -125,51 +107,6 @@ func (s *SearchService) GetErrorList(c *gin.Context) {
|
||||
final_query := utils.CreateEsQuery(search_query, size_query, compositeAggsQuery)
|
||||
|
||||
println("%s", final_query)
|
||||
// searchRequest := `
|
||||
//{
|
||||
// "size": 0,
|
||||
// "query": {
|
||||
// "term": {
|
||||
// "project_id": {
|
||||
// "value": "%s"
|
||||
// }
|
||||
// }
|
||||
// },
|
||||
// "aggs": {
|
||||
// "errors_by_hash": {
|
||||
// "composite": {
|
||||
// "size": 3,
|
||||
// "sources": [
|
||||
// {
|
||||
// "error_hash": {
|
||||
// "terms": {
|
||||
// "field": "error_hash.keyword"
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
// ]
|
||||
// },
|
||||
// "aggs": {
|
||||
// "unique_errors": {
|
||||
// "top_hits": {
|
||||
// "_source": {
|
||||
// "includes": ["error", "error_hash"]
|
||||
// }
|
||||
// }
|
||||
// },
|
||||
// "error_count": {
|
||||
// "value_count": {
|
||||
// "field": "error.keyword"
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
//
|
||||
// }
|
||||
//}
|
||||
//
|
||||
// `
|
||||
|
||||
fields := []string{"error", "significant_stack", "title"}
|
||||
var _, aggs, total, err = s.elasticSearchClient.SearchDocuments(final_query, fields)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user