(likeHitCount, keywordCount int)
| 1504 | } |
| 1505 | |
| 1506 | func shouldSkipEntityVectorMatch(likeHitCount, keywordCount int) (bool, int) { |
| 1507 | if likeHitCount <= 0 || keywordCount <= 0 { |
| 1508 | return false, 0 |
| 1509 | } |
| 1510 | |
| 1511 | threshold := keywordCount * 4 |
| 1512 | if threshold < 4 { |
| 1513 | threshold = 4 |
| 1514 | } |
| 1515 | return likeHitCount >= threshold, threshold |
| 1516 | } |
| 1517 | |
| 1518 | func sameInt64Set(a, b []int64) bool { |
| 1519 | if len(a) != len(b) { |
no outgoing calls
no test coverage detected