I'm all in on the flop too. You have the ace he would need for the nut flush assuming he even did hit his right off the flop. That might have been enough to get him to consider backing off this hand. You say he's novice so I'm sure his betting is talking right to you about what he has.

So I think you're beat but probably could have scared him out early.