writer = new IndexWriter(index_directory, new DSAnalyzer(),
writer = new IndexWriter(index_directory, getAnalyzer(),
    private static IndexWriter openIndex(Context c, boolean wipe_existing)            throws IOException    {        IndexWriter writer;        String index_directory = ConfigurationManager.getProperty("search.dir");        writer = new IndexWriter(index_directory, new DSAnalyzer(),                wipe_existing);        /* Set maximum number of terms to index if present in dspace.cfg */        if (ConfigurationManager.getProperty("search.maxfieldlength") != null)        {            int maxfieldlength = ConfigurationManager                    .getIntProperty("search.maxfieldlength");            if (maxfieldlength == -1)            {                writer.maxFieldLength = Integer.MAX_VALUE;            }            else            {                writer.maxFieldLength = maxfieldlength;            }        }        return writer;    }