Ranking & sorting private vs. public records

My index contains records that are private to specific users and records that are public. The private records contain the user’s ID as attribute. A user can view results that are either his/her or public.

Can I use the user ID as a tie-braking ranking criteria even though not all records are viewable by a single user?