writer.optimize();
    public static void createIndex(Context c)        throws SQLException, IOException    {        IndexWriter writer = openIndex(c, true);        indexAllCommunities(c, writer);        indexAllCollections(c, writer);        indexAllItems(c, writer);        closeIndex(c, writer);    }