org.hibernate.search.query.dsl.impl.Helper.getDocumentBuilder(QueryBuildingContext) is invoked very frequently by the DSL helpers and is not particularly efficient. Seems an easy win to cache the DocumentBuilder in a field of QueryBuildingContext.