@Override
    public String toField(Path<?> path) {
        if (path.getAnnotatedElement() != null) {
            Field fieldAnn = path.getAnnotatedElement().getAnnotation(Field.class);
            if (fieldAnn != null && fieldAnn.name().length() > 0) {
                return fieldAnn.name();
            }
        }
        return super.toField(path);
    }
Create a new SearchSerializer instance

@param lowerCase lowercase names
@param splitTerms split terms
querydsl-hibernate-search/src/main/java/com/querydsl/hibernate/search/SearchSerializer.java