When sending a SQL query against the Person Search API, LIKE does not appear to translate/execute correctly in the query. Example SQL query below:
SELECT * FROM person WHERE job_company_id IN ('andela','datadog','digitalocean','mongodbinc','squarespace','sprinklr','doubleverify-inc','clear-by-alclear-llc','mypizza','zetaglobal') AND job_title LIKE '%data%'
This query runs successfully but returns a 404 with 0 profiles. When dropping the leading % from the LIKE the query appears to execute correctly and return profiles.
Similarly, running the same original query translated into ElasticSearch works correctly and returns 378 profiles. Query below:
{
"query" : {
"bool" : {
"must" : [
{
"terms" : {
"job_company_id" : ["andela", "datadog", "digitalocean", "mongodbinc", "squarespace", "sprinklr", "doubleverify-inc", "clear-by-alclear-llc", "mypizza", "zetaglobal"]}},
{
"wildcard" : {
"job_title" : {
"wildcard" : "
data
"
}
}
}
]
}
}
}
Created by Case Corkery
·