@Test
    void testMixedIndexAndStoreOnly() {
        String services =
                "<services version='1.0'>" +
                        "  <admin version='2.0'><adminserver hostalias='node0' /></admin>" +
                        "  <content id='docstore' version=\"1.0\">" +
                        "    <redundancy>1</redundancy>" +
                        "    <documents>" +
                        "      <document type=\"index_me\" mode=\"index\"/>" +
                        "      <document type=\"store_me\" mode=\"store-only\"/>" +
                        "    </documents>" +
                        "    <group>" +
                        "      <node distribution-key=\"0\" hostalias=\"node0\"/>" +
                        "    </group>" +
                        "  </content>" +
                        "</services>";

        List<String> sds = ApplicationPackageUtils.generateSchemas("index_me", "store_me");
        VespaModel model = new VespaModelCreatorWithMockPkg(getHosts(), services, sds).create();
        ProtonConfig.Builder pb = new ProtonConfig.Builder();
        model.getConfig(pb, "docstore/search/cluster.docstore/0");
        ProtonConfig protonConfig = new ProtonConfig(pb);
        assertEquals(2, protonConfig.documentdb().size());
        assertEquals("index_me", protonConfig.documentdb(0).inputdoctypename());
        assertEquals("docstore/search/cluster.docstore/index_me", protonConfig.documentdb(0).configid());
        assertEquals("store_me", protonConfig.documentdb(1).inputdoctypename());
        assertEquals("docstore/search", protonConfig.documentdb(1).configid());
    }
Test for using the content model to create indexed search clusters.
config-model/src/test/java/com/yahoo/vespa/model/content/IndexedTest.java