fix: identity search - fix i.name column and simplify identity_bindings join
- search_identity_text: COALESCE(i.real_name, i.actor_name) AS identity_name - search_identities_by_text: - Removed broken identity_bindings join (table has wrong schema) - Fixed i.id type mismatch (bigint -> i32 via ::int cast) - Simplified to direct face_detections join - Added error logging for debugging - Phase 4 now 11/11 passed
This commit is contained in:
@@ -67,9 +67,9 @@ test_api "POST" "/api/v1/search/visual/stats" "{\"uuid\":\"$FILE_UUID\"}" "Visua
|
||||
test_api "POST" "/api/v1/search/visual/combination" "{\"uuid\":\"$FILE_UUID\",\"combination\":[[\"person\",1],[\"car\",1]]}" "Visual search combination"
|
||||
|
||||
echo ""
|
||||
echo "── Identity Text Search (pre-existing bug: i.name column) ──"
|
||||
test_api "GET" "/api/v1/search/identity_text?uuid=$FILE_UUID&q=Grant" "" "Identity text search (known bug)"
|
||||
test_api "GET" "/api/v1/identities/search?q=Grant" "" "Identities search (known bug)"
|
||||
echo "── Identity Text Search ──"
|
||||
test_api "GET" "/api/v1/search/identity_text?uuid=$FILE_UUID&q=Grant" "" "Identity text search "
|
||||
test_api "GET" "/api/v1/identities/search?q=Grant" "" "Identities search "
|
||||
|
||||
echo ""
|
||||
echo "── Agent Search ──"
|
||||
|
||||
Reference in New Issue
Block a user