private Query negate(final Query query) {
        // To enable SQL style functionality we have to tell Lucene to match all except the specified term.
        return new BooleanQuery.Builder()
                .add(new MatchAllDocsQuery(), Occur.SHOULD)
                .add(query, Occur.MUST_NOT)
                .build();
    }
Convert our query objects to a LUCENE query.
stroom-search/stroom-search-solr/src/main/java/stroom/search/solr/search/SearchExpressionQueryBuilder.java