private IndexFacts createIndexFacts() {
        SearchDefinition sd = new SearchDefinition("nalle");
        Index bamse = new Index(BAMSE);
        Index teddy = new Index(TEDDY);
        Index sarrBamse = new Index(SARR + "." + BAMSE);
        Index sarrTeddy = new Index(SARR + "." + TEDDY);
        Index defaultIndex = new Index("default");
        bamse.setLowercase(true);
        teddy.setLowercase(false);
        sarrBamse.setLowercase(true);
        sarrTeddy.setLowercase(true);
        defaultIndex.setLowercase(true);
        sd.addIndex(bamse);
        sd.addIndex(teddy);
        sd.addIndex(defaultIndex);
        sd.addIndex(sarrBamse);
        sd.addIndex(sarrTeddy);
        return new IndexFacts(new IndexModel(sd));
    }
Tests term lowercasing in the search chain.

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