Fix imports
This commit is contained in:
parent
1d42057f48
commit
40a80fc54f
@ -32,7 +32,6 @@ import org.apache.lucene.analysis.miscellaneous.ASCIIFoldingFilter;
|
||||
import org.apache.lucene.analysis.standard.StandardAnalyzer;
|
||||
import org.apache.lucene.document.Document;
|
||||
import org.apache.lucene.index.IndexableField;
|
||||
import org.apache.lucene.misc.SweetSpotSimilarity;
|
||||
import org.apache.lucene.search.IndexSearcher;
|
||||
import org.apache.lucene.search.similarities.BooleanSimilarity;
|
||||
import org.apache.lucene.search.similarities.ClassicSimilarity;
|
||||
@ -73,7 +72,6 @@ public class LuceneUtils {
|
||||
private static final Similarity luceneBM11PlusNGramSimilarityInstance = NGramSimilarity.bm11(BM25Model.PLUS);
|
||||
private static final Similarity luceneClassicSimilarityInstance = new ClassicSimilarity();
|
||||
private static final Similarity luceneClassicNGramSimilarityInstance = NGramSimilarity.classic();
|
||||
private static final Similarity luceneSweetSpotSimilarityInstance = new SweetSpotSimilarity();
|
||||
private static final Similarity luceneLTCSimilarityInstance = new LtcSimilarity();
|
||||
private static final Similarity luceneLDPSimilarityInstance = new LdpSimilarity();
|
||||
private static final Similarity luceneLDPNoLengthSimilarityInstance = new LdpSimilarity(0, 0.5f);
|
||||
@ -139,8 +137,6 @@ public class LuceneUtils {
|
||||
return luceneBM11PlusSimilarityInstance;
|
||||
case NGramBM11Plus:
|
||||
return luceneBM11PlusNGramSimilarityInstance;
|
||||
case SweetSpot:
|
||||
return luceneSweetSpotSimilarityInstance;
|
||||
case LTC:
|
||||
return luceneLTCSimilarityInstance;
|
||||
case LDP:
|
||||
|
@ -13,7 +13,6 @@ public enum TextFieldsSimilarity {
|
||||
NGramBM11Plus,
|
||||
Classic,
|
||||
NGramClassic,
|
||||
SweetSpot,
|
||||
LTC,
|
||||
LDP,
|
||||
LDPNoLength,
|
||||
|
@ -29,7 +29,6 @@ import java.util.concurrent.CompletionException;
|
||||
import java.util.stream.Collectors;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.restlet.engine.util.Pool;
|
||||
import reactor.core.publisher.Flux;
|
||||
import reactor.core.publisher.Mono;
|
||||
import reactor.core.scheduler.Schedulers;
|
||||
|
Loading…
Reference in New Issue
Block a user