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