compare Supermemory v3 and v4 exact search
This commit is contained in:
@@ -73,7 +73,18 @@ curl --fail --silent --show-error --max-time 15 \
|
||||
-H 'Content-Type: application/json' \
|
||||
--data "{\"q\":\"$existing_marker\",\"containerTag\":\"$container_tag\",\"searchMode\":\"hybrid\",\"limit\":5}" \
|
||||
"$base_url/v4/search" >/tmp/search-exact.json || fail 41 search-exact-request
|
||||
grep -q "$existing_marker" /tmp/search-exact.json || fail 44 search-exact-no-hit
|
||||
if ! grep -q "$existing_marker" /tmp/search-exact.json; then
|
||||
curl --fail --silent --show-error --max-time 15 \
|
||||
-H "$auth_header" \
|
||||
-H 'Content-Type: application/json' \
|
||||
--data "{\"q\":\"$existing_marker\",\"containerTag\":\"$container_tag\"}" \
|
||||
"$base_url/v3/search" >/tmp/search-exact-v3.json || fail 43 search-exact-v3-request
|
||||
if grep -q "$existing_marker" /tmp/search-exact-v3.json; then
|
||||
grep -q 'poc-smoke' /tmp/search-exact-v3.json || fail 49 search-v3-metadata-missing
|
||||
fail 48 search-v3-only
|
||||
fi
|
||||
fail 44 search-exact-no-hit
|
||||
fi
|
||||
grep -q 'poc-smoke' /tmp/search-exact.json || fail 45 search-exact-metadata-missing
|
||||
|
||||
curl --fail --silent --show-error --max-time 15 \
|
||||
|
||||
Reference in New Issue
Block a user