org.apache.lucene.index.StaticFiles Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of compass Show documentation
Show all versions of compass Show documentation
Compass Search Engine Framework
package org.apache.lucene.index;
import java.util.HashSet;
import java.util.Set;
import org.compass.core.lucene.engine.manager.DefaultLuceneSearchEngineIndexManager;
import org.compass.core.lucene.engine.spellcheck.DefaultLuceneSpellCheckManager;
/**
* @author kimchy
*/
public class StaticFiles {
private static final Set staticFiles;
static {
staticFiles = new HashSet();
staticFiles.add("segments.gen");
staticFiles.add(DefaultLuceneSearchEngineIndexManager.CLEAR_CACHE_NAME);
staticFiles.add(DefaultLuceneSpellCheckManager.SPELL_CHECK_VERSION_FILENAME);
}
public static boolean isStaticFile(String name) {
return staticFiles.contains(name);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy