private TableSettings createTableSettings(Boolean extractValues) {

        final Column groupedUserId = Column.builder()
                .id("User")
                .name("User")
                .expression(ParamUtil.create("User"))
                .group(0)
                .build();

        final Column countColumn = Column.builder()
                .id("Count")
                .name("Count")
                .expression("count()")
                .format(Format.NUMBER)
                .build();

        List<Column> columns = Arrays.asList(groupedUserId, countColumn);
        final DocRef resultPipeline = commonIndexingTestHelper.getSearchResultPipeline();

        return TableSettings.builder()
                .addColumns(columns)
                .extractValues(extractValues)
                .extractionPipeline(resultPipeline)
                .build();
    }
Run a query that gets counts grouped by userid and assert the total count
stroom-app/src/test/java/stroom/search/manualtesting/TestGroupedCountsInteractiveSearch.java