|
@@ -24,8 +24,6 @@ import org.apache.logging.log4j.message.ParameterizedMessage;
|
|
|
import org.apache.lucene.analysis.core.KeywordAnalyzer;
|
|
|
import org.apache.lucene.analysis.standard.StandardAnalyzer;
|
|
|
import org.apache.lucene.codecs.CodecUtil;
|
|
|
-import org.apache.lucene.codecs.DocValuesFormat;
|
|
|
-import org.apache.lucene.codecs.PostingsFormat;
|
|
|
import org.apache.lucene.document.LatLonDocValuesField;
|
|
|
import org.apache.lucene.document.NumericDocValuesField;
|
|
|
import org.apache.lucene.index.BinaryDocValues;
|
|
@@ -105,17 +103,8 @@ import java.util.List;
|
|
|
import java.util.Map;
|
|
|
|
|
|
public class Lucene {
|
|
|
- public static final String LATEST_DOC_VALUES_FORMAT = "Lucene70";
|
|
|
- public static final String LATEST_POSTINGS_FORMAT = "Lucene50";
|
|
|
public static final String LATEST_CODEC = "Lucene84";
|
|
|
|
|
|
- static {
|
|
|
- Deprecated annotation = PostingsFormat.forName(LATEST_POSTINGS_FORMAT).getClass().getAnnotation(Deprecated.class);
|
|
|
- assert annotation == null : "PostingsFromat " + LATEST_POSTINGS_FORMAT + " is deprecated" ;
|
|
|
- annotation = DocValuesFormat.forName(LATEST_DOC_VALUES_FORMAT).getClass().getAnnotation(Deprecated.class);
|
|
|
- assert annotation == null : "DocValuesFormat " + LATEST_DOC_VALUES_FORMAT + " is deprecated" ;
|
|
|
- }
|
|
|
-
|
|
|
public static final String SOFT_DELETES_FIELD = "__soft_deletes";
|
|
|
|
|
|
public static final NamedAnalyzer STANDARD_ANALYZER = new NamedAnalyzer("_standard", AnalyzerScope.GLOBAL, new StandardAnalyzer());
|