Does `search_cutoff_ms` work in union searches? I'...
# community-help
ó
Does
search_cutoff_ms
work in union searches? I'm on 30.2.rc12 and I'm sending the search_cutoff_ms in all the searches but it's not working for me.
f
Yes, search_cutoff_ms does apply in union search on 30.2.rc12. But in union search it behaves like a deadline for the whole union request, shared across all the sub-searches, not a separate cutoff timer for each individual search object. There’s also a response quirk. The search_cutoff flag you get back from a union search can be misleading, so it can look like cutoff isn’t happening even when it is.
ó
I'm sending it as part of each search and also at the same level as union. It's not having any effect. I send 10000ms and the request still timeouts at 120seconds
Hmmm, I removed the highlight_full_fields and it started working without timeouts. I guess that calculation is, first not bounded, second somewhat buggy as taking that much time is really weird. I'm using a Stopword set also and I was seeing every word as highlighted for some weird reason.
f
The timeout issue may be linked to the client library you're using. Apart from that, highlighting shouldn't cause a timeout to occur, as it's a smaller part of the search process