actually... can I just... make the API not return ...
# community-help
t
actually... can I just... make the API not return
highlight
(singular)? the
highlights
has what I need, I don't understand why the singular one is there
k
The highlight object is the future proof option because highlights is deprecated. However we have a feature request open to make this behaviour possible in highlight object as well.
thankyou 1
t
how would I handle the case where the indexed item is
string[]
and the majority of the items have no matching tokens?
the response body ends up having a huge pile of stuff that I don't want, its unwanted bytes
what I'm pondering at the moment is to stand up a server next to Typesense, just to slim down responses, which feels kind of... silly, I guess, but I could do that if that's recommended?
k
Yeah we have to add a way to make the
highlight
object not return objects without a match when the result is produced. Unless we do that, the response size is going to be large because all items in the array are returned. Let me take a look to see if I can add that flag today. I will update this thread.
thankyou 1