@Test
    void testSummaryNeedsQuery() {
        var schema = new Schema.Builder(SCHEMA)
                .add(new DocumentSummary.Builder("default").build())
                .add(new RankProfile.Builder("default").setHasRankFeatures(false)
                        .setHasSummaryFeatures(false)
                        .build());
        var backend = new IndexedBackend(new ClusterParams(CLUSTER_PARAMS.getSearcherName(), CLUSTER_PARAMS.getServerId(),
                                                           CLUSTER_PARAMS.getDefaultSummary(), CLUSTER_PARAMS.getDocumentdbInfoConfig(),
                                                           new SchemaInfo(List.of(schema.build()), List.of())),
                                         MockDispatcher.create(List.of(new Node(CLUSTER, 0, "host0", 0))));
        Query q = new Query("?query=foo");
        Result result = doSearch(backend, q, 0, 10);
        assertFalse(backend.summaryNeedsQuery(q));

        q = new Query("?query=select+*+from+source+where+title+contains+%22foobar%22+and++geoLocation%28myfieldname%2C+63.5%2C+10.5%2C+%22999+km%22%29%3B");
        q.getModel().setType(Query.Type.YQL);
        result = doSearch(backend, q, 0, 10);
        assertTrue(backend.summaryNeedsQuery(q));
    }
Tests the Fast searcher

@author bratseth
container-search/src/test/java/com/yahoo/prelude/fastsearch/IndexedBackendTestCase.java