This message was deleted.
# community-help
s
This message was deleted.
j
@Kor Could you DM me your cluster ID? That view should at least show the ID of the record, so need to take a closer look
k
DM sent.
j
Ah looks like the issue happens if the field chosen in “query by” has a null value for the pinned record. Will fix this. On a side note, this is only a UI issue. The curation rule itself should work, since it only stores the ID of the document
k
Thanks, Jason. I noticed that the search result was not what I expected, so it would go beyond an UI issue. I will test again.
I now see the id in the web admin!
The search result is still not what I was expecting. Maybe something else is overruling.
j
We fixed some related override issues in the latest RC build. Can we try upgrading you to this build?
k
Is this something that can be reversed easily?
j
Yeah, we can roll you back from our side
k
Ok, yes let's try it 🙂
j
Ok I’ve queued it up. Should be done in about 5-7 minutes
k
Woohoo: “Configuration Change is in progress...” 😀
😄 1
@Jason Bosco it now works as expected! Fantastic.
j
Awesome!
k
By the way, is it case sensitive? So can I set an override for “TEL” (and not necesserali “tel”?
j
We fixed the case-sensitivity in the RC build you’re running IIRC
Oh wait, that’s different
all searches are case insensitive, including overrides
So this is not possible to do:
I set an override for “TEL” (and not necesserali “tel”?
k
Ok, no problem.
Is it possible to delete all overrides at once? (Instead of a specific one, as described here: https://typesense.org/docs/0.24.1/api/curation.html#delete-an-override )?
j
No unfortunately. You can only delete overrides one at a time. You could write a quick snippet to read all overrides and then send delete API calls one at a time to do this programatically
k
Thanks, will do that.
For future reference. This works for me. Thanks, ChatGPT: BEGIN CHATGPT
#!/bin/bash
# Get all overrides
OVERRIDES=$(curl -H "X-TYPESENSE-API-KEY: ${TYPESENSE_API_KEY}" "http://localhost:8108/collections/companies/overrides")
# Extract just the names from the overrides
OVERRIDE_NAMES=$(echo $OVERRIDES | jq -r '.overrides[] | .id')
# Loop over each override name and delete it
for OVERRIDE_NAME in $OVERRIDE_NAMES
do
curl "http://localhost:8108/collections/companies/overrides/$OVERRIDE_NAME" -X DELETE \
-H "X-TYPESENSE-API-KEY: ${TYPESENSE_API_KEY}"
done
This script first sends a GET request to the Typesense API to retrieve all overrides. It then uses jq to extract just the IDs of each override into the OVERRIDE_NAMES variable. This is a space-separated list of all override names. It then loops over each name in OVERRIDE_NAMES, sending a DELETE request to the Typesense API to delete that override. Make sure to replace ${TYPESENSE_API_KEY} with your actual Typesense API key. Please note that this will delete ALL overrides for the "companies" collection. If you have overrides that you don't want to delete, you will need to adjust the script to exclude those. END CHATGPT
😄 1