-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixed no defect analysis for small logs
- Loading branch information
1 parent
fdb33bc
commit dd0da3b
Showing
3 changed files
with
92 additions
and
6 deletions.
There are no files selected for viewing
43 changes: 43 additions & 0 deletions
43
fixtures/query_analyze_items_including_no_defect_small_logs.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
{ | ||
"size": 10, | ||
"sort": ["_score", | ||
{"start_time": "desc"}], | ||
"query": { | ||
"bool": { | ||
"filter": [ | ||
{"range": {"log_level": {"gte": 40000}}}, | ||
{"exists": {"field": "issue_type"}}, | ||
{"term": {"is_merged": true}} | ||
], | ||
"must_not": [ | ||
{"wildcard": {"issue_type": "TI*"}}, | ||
{"wildcard": {"issue_type": "ti*"}}, | ||
{"term": {"test_item": "123"}}, | ||
{"wildcard": {"message": "*"}} | ||
], | ||
"must": [ | ||
{"term": { | ||
"unique_id": "unique" | ||
}}, | ||
{"term": { | ||
"test_case_hash": 1 | ||
}}, | ||
{"term": { | ||
"launch_name": { | ||
"value": "Launch name" | ||
} | ||
}}, | ||
{"more_like_this": { | ||
"fields": ["merged_small_logs"], | ||
"like": "hello world", | ||
"min_doc_freq": 1, | ||
"min_term_freq": 1, | ||
"minimum_should_match": "5<80%", | ||
"max_query_terms": 50, | ||
"boost": 1.0 | ||
}} | ||
], | ||
"should": [] | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters