Filtering with React InstantSearch

I am developing an app in React and have everything working as intended except for one search functionality. This search allows an admin user to invite other users to their organization. The search results (users) are being populated but I would like to filter out some of the results such as the current user, etc. How can I filter out the hit objects so I don’t return any results with the same primary key?

hi @jon3,

If you know the primary key and the primary key is an attribute indexed in Algolia, you can use the filters parameter of the <Configure /> widget in React InstantSearch:

        filters={'NOT primaryKey:1234'}