@Test
    void testTwoLiteralBoostFields() {
        Schema schema = new Schema("msb", MockApplicationPackage.createEmpty());
        RankProfileRegistry rankProfileRegistry = RankProfileRegistry.createRankProfileRegistryWithBuiltinRankProfiles(schema);
        SDDocumentType document = new SDDocumentType("msb");
        schema.addDocument(document);
        SDField field1 = document.addField("title", DataType.STRING);
        field1.parseIndexingScript(schema.getName(), "{ summary | index }");
        field1.setLiteralBoost(20);
        SDField field2 = document.addField("body", DataType.STRING);
        field2.parseIndexingScript(schema.getName(), "{ summary | index }");
        field2.setLiteralBoost(20);

        schema = ApplicationBuilder.buildFromRawSchema(schema, rankProfileRegistry, new QueryProfileRegistry());
        new DerivedConfiguration(schema, rankProfileRegistry);
        assertIndexing(List.of("clear_state | guard { input title | tokenize normalize stem:\"BEST\" | summary title | index title; }",
                        "clear_state | guard { input body | tokenize normalize stem:\"BEST\" | summary body | index body; }",
                        "clear_state | guard { input title | tokenize | index title_literal; }",
                        "clear_state | guard { input body | tokenize | index body_literal; }"),
                schema);
    }
Tests literal boosts in two fields going to the same index
config-model/src/test/java/com/yahoo/schema/derived/LiteralBoostTestCase.java