Hi,
We are experiencing very slow response times from Swiftype. From our express app, we are using a very simple search query to Swiftype, and we get response times of 600-6000ms. This feels very unstable and slow. Do you have any ideas on what can be causing this? We are using the standard plan, but our guess is that the standard plan is not expected to be this unstable? We currently only have 260 crawled documents btw.
Here is the only thing we’re doing when requesting Swiftype:
try {
const { queryString, locale } = req.query
const client = new SiteSearchClient({
apiKey: process.env.SITE_SEARCH_API_KEY,
})
client.search(
{
engine: process.env.SITE_SEARCH_ENGINE_SLUG,
q: queryString,
filters: {
page: {
locale: locale,
},
},
},
(error, response) => {
if (response) {
res.send(response)
}
if (error) {
console.error(error)
returnErrorContentApi('Bad response.', prefix)
}
next()
}
)
} catch (error) {
console.error(error)
returnErrorContentApi('Bad response.', prefix)
}
Thanks in advance!