Hi folks, trying to get a little better understand...
# community-help
t
Hi folks, trying to get a little better understanding of pinned_hits/hidden_hits vs overrides. From the doc, the override has precedence over pinned_hits/hidden_hits. From my experiments, it seems the main difference is that overrides don't have to be ids that were actually results of the query. Is that a valid understanding? As a follow up, Is one going to get deprecated for the other in the near future?
j
Hi Toyin, you could use pinned hits to also specify IDs of records that are not part of the results. Overrides are essentially pinned hits stored and triggered on the Typesense side. But if you want to for eg generate pinned hits dynamically at search time based on your own criteria, you can then use pinned hits. Neither is deprecated and can be useful in different situations
t
Thanks, that helps a lot
👍 1
I've got a follow up. I came up with the idea of using pinned_hits and hidden_hits while i'm live-curating a search, and then when i hit save to convert that into an override. Reason is that I could then have a button to show/hide hidden results in case the user later wants to undo any. My question is, once an override is in place, is there a way I could still edit the same collection on the fly again with pinned_hits and hidden_hits without it being overridden the override? Right now, I think I might need to clone the collection, delete overrides and then run the process again in a "staging" collection Thoughts?
k
We don't have a way to disable overrides but we can add a flag to do that. I will update this thread when we have that available on a RC build, likely by next week.
t
really? wow.
cool
k
@Toyin Akinmusuru How should I share a RC build with you -- do you use Docker or Linux binary?
t
linux binary
if it is RC does that mean it could come up in version 0.21.0?
k
Correct. We tend to batch changes and do releases once in a while. In the mean time, RC builds help bridge the gap in release cycle.
t
cool
k
@Toyin Akinmusuru This is available in 
0.21.0.rc14
build: https://dl.typesense.org/releases/0.21.0.rc14/typesense-server-0.21.0.rc14-amd64.deb Use via
?enable_overrides=false
Can you please try it out and let me know if it works well?
t
will do. thanks