Can't make Raycast/Query-filter work

No matter what I try, none of my raycasts hit anything, when I raise the ePREFILTER (or postfilter) flag. From what I read in the documentation, there should be a hit, if any filterData-word is set (!0) and produces a bit-wise AND > 0 with the corresponding shape-word.

So I set both the query-filter and the shape-query-filter to (0,0,0,1). And nothing…

edit: ahh, nevermind. I tried to raise the prefilter-flag using &= instead of |= … I’m kinda new to bitwise operations, my bad. Can’t seem to delete the post, if a moderator is present, please feel free to do so.