I would like to exclude employees from employee collection with the hire date after 01/01/2020 and the status as active from the bonus collection. So I need to do a negative join with the employee collection and have 2 criteria. Here is my sample
join
q: bonus>0
fq: -{!join from = employeeid to = employeeid fromIndex = employee}(hiredate:["01/01/2020" to *] AND status:active)
I have tried the above query however it returns the following error
"org.apache.solr.search.SyntaxError: Cannot parse '(hiredate:["01/01/2020" to ]': Encountered \"\" at line 1, column 15.\nWas expecting one of:\n ...\n ...\n
...\n \"+\" ...\n \"-\" ...\n ...\n \"(\" ...\n \")\" ...\n \"\" ...\n \"^\" ...\n ...\n
...\n ...\n ...\n ...\n ...\n \"[\" ...\n \"{\" ...\n ...\n \"filter(\" ...\n ...\n ",
Thanks, Gaurav