private SearchDefinition createSearchDefinitionWithFields(String name, boolean literalBoost) {
        SearchDefinition type = new SearchDefinition(name);
        Index defaultIndex = new Index("default");
        defaultIndex.setLiteralBoost(literalBoost);
        type.addIndex(defaultIndex);
        Index absoluteIndex = new Index("absolute");
        absoluteIndex.setLiteralBoost(literalBoost);
        type.addIndex(absoluteIndex);
        return type;
    }
Tests the complete field match query transformer

@author Steinar Knutsen
container-search/src/test/java/com/yahoo/prelude/querytransform/test/LiteralBoostSearcherTestCase.java