I'm now constantly getting `Pinned hits are not in...
# community-help
b
I'm now constantly getting
Pinned hits are not in expected format.
error, has anyone else experienced this? Docker container version 28.0 -- No errors on the container logs..
j
Could you share a set of curl commands like this that replicates the issue: https://gist.github.com/jasonbosco/7c3432713216c378472f13e72246f46b
b
It looks like it was this line in my passed options causing the issue:
Copy code
'pinned_hits' => "{$searchTerm}:2",
f
Can you print the search term variable?
b
Could be any string (
abc123
.. or nothing ). When given a string, it happens randomly, however when empty it always returns the error.
f
If empty you'd essentially pass in either something undefined or an empty string, so that's expected. As for pinned hits, they should be an integer that maps to a record ID e.g 123:1, 135:2
b
Ah interesting, I understood it as the `search term`:1 .. since they are searching for a term and we want to the exact match pinned.. now I understand
🙌 1