Context
When using text search filters, particularly with the 'like' (contains) operator, users may encounter intermittent service interruption errors. This can occur when performing searches across their data.
Answer
The service interruption errors occur because the 'like' operator for text searching is less performant than using Key-Value (KV) search filters. To resolve this issue and improve search performance:
Replace the 'like' or 'contains' operator in your search query with KV search filters
Use the input_key and input_value parameters instead of the 'like' operator on inputs
For example, instead of using:
like(inputs, "%domain%")Use:
and(eq(input_key, "record.domain"), eq(input_value, "domain"))Using KV search filters will not only prevent the service interruption errors but will also provide faster search performance.