I have a collection of entities that have 2 properties: ‘kind’ and ‘unique_key’.
I want to search for a specific small set of entities with these 2 properties specified for each. For example:
entities = [
['skill','python_programming'],
['job_role','biomedical_scientist'],
['skill','machine_learning'],
]
From this list I build a nested filter using And within OR. So each item returned must have exact match for both ‘kind’ and ‘unique_key’ The filter below works some times, but others it returns many more results without exact matches. By definition the combination of kind and unique_key is always unique in the collection. Am I making some basic mistake in this filter? This is using V3 library in python. Many thanks in advance.
{'operands': [{'operands': [{'operator': 'Equal',
'path': 'kind',
'valueText': 'skill'},
{'operator': 'Equal',
'path': 'unique_key',
'valueText': 'python_programming'}],
'operator': 'And'},
{'operands': [{'operator': 'Equal',
'path': 'kind',
'valueText': 'job_role'},
{'operator': 'Equal',
'path': 'unique_key',
'valueText': 'biomedical_scientist'}],
'operator': 'And'},
{'operands': [{'operator': 'Equal',
'path': 'kind',
'valueText': 'skill'},
{'operator': 'Equal',
'path': 'unique_key',
'valueText': 'machine_learning'}],
'operator': 'And'}],
'operator': 'Or'}