Hi guys, is there an easy way to exclude a document base on a certain criteria?
k
Kishore Nallan
05/09/2023, 3:36 AM
Check overrides/curation in the docs.
j
Jameshwart Lopez
05/09/2023, 3:37 AM
for filtering @Kishore Nallan
Jameshwart Lopez
05/09/2023, 3:38 AM
ah thanks man
j
John Sokol
10/03/2023, 7:00 PM
I’d like to exclude documents based on if a certain ID is present in an array field. I can include documents using filter_by, but it doesn’t look like there’s an explicit way to exclude. I read the overrides/curation docs - this is at the collection level. Is there a way to exclude at the search level?
John Sokol
10/03/2023, 8:16 PM
Found a solution! For someone’s reference, use the ! as an exclude/inverse operator: search_parameters[‘filter_by’] = f’exported_by_client_id:!={client_id}'