It is possible to configure or alter the code to make YaCy return data or return a blank value within a time-limit? YaCy will typically manage to respond if just one word is given. It will always time-out if a search query has more than 3 words. This is of course a problem in of itself. I use YaCy as a back-end at https://searx.everdot.org/ even though it’s useless crap which provides zero value. That it always time-outs to it’s limit, which I’ve found it’s best to set low. It would be better if a respond-limit would be set in YaCy so it would either respond within a time-limit with what it’s got or return nothing. As of now it can wait minutes before responding if the query is 10 words long.
On a somewhat related note, I do recommend against using YaCy at https://linuxreviews.org/YaCy and I don’t like doing that. The truth is what it is. I would like to be able to actually recommend using it. And I will if the software merits it, which it doesn’t.