Here are the steps I took to solve the above problem.
Step 1: Find all rows in Table A which need to be excluded
Step 2: Do somethig similar to the following code
post = Post.find(params[:id])
Sunspot.search(Post) do
without(post)
end
The without
clause will exclude the rows you don't want to appear in the resultset.
Hope this is of help to somebody