Yeah that's an interesting remark. I'm avoiding using double-quoted variable expansion to reduce the risk of regression with respect to special characters in Lucene syntax and for micro-optimization purposes. I agree that variable expansion is a bit more PHP-ish.