@Override
public QueryTranslator createQueryTranslator(String queryIdentifier, String queryString, Map filters, SessionFactoryImplementor factory,
EntityGraphQueryHint entityGraphQueryHint) {
QueryParserService queryParser = factory.getServiceRegistry().getService( QueryParserService.class );
if ( queryParser != null ) {
return new OgmQueryTranslator( factory, queryParser, queryIdentifier, queryString, filters );
}
else {
return new FullTextSearchQueryTranslator( factory, queryIdentifier, queryString, filters );