You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
log_info "Testing search phrase with cold cache..."
1367
-
local result=$(measure_endpoint "${API_BASE}/api/search/phrase""POST"'{"query":"test phrase","limit":5}'"Phrase search")
1367
+
local result=$(measure_endpoint "${API_BASE}/api/search/phrase""POST"'{"searchText":"test phrase","limit":5}'"Phrase search")
1368
1368
local cold_time=$(echo "$result"| cut -d'|' -f1)
1369
1369
local cold_code=$(echo "$result"| cut -d'|' -f2)
1370
1370
@@ -2283,11 +2283,11 @@ main() {
2283
2283
log_success "Query with full cache (cache miss)"
2284
2284
2285
2285
log_info "Testing /api/search with full cache (cache miss - worst case)..."
2286
-
result=$(measure_endpoint "${API_BASE}/api/search""POST"'{"query":"xyzNonExistentQuery999","limit":5}'"Search with full cache (miss)")
2286
+
result=$(measure_endpoint "${API_BASE}/api/search""POST"'{"searchText":"xyzNonExistentQuery999","limit":5}'"Search with full cache (miss)")
2287
2287
log_success "Search with full cache (cache miss)"
2288
2288
2289
2289
log_info "Testing /api/search/phrase with full cache (cache miss - worst case)..."
2290
-
result=$(measure_endpoint "${API_BASE}/api/search/phrase""POST"'{"query":"xyzNonExistent phrase999","limit":5}'"Search phrase with full cache (miss)")
2290
+
result=$(measure_endpoint "${API_BASE}/api/search/phrase""POST"'{"searchText":"xyzNonExistent phrase999","limit":5}'"Search phrase with full cache (miss)")
2291
2291
log_success "Search phrase with full cache (cache miss)"
2292
2292
2293
2293
# For ID, history, since - use objects created in Phase 1 (these will cause cache misses too)
0 commit comments