public final class SimilarityService extends AbstractIndexComponent
Modifier and Type | Field and Description |
---|---|
static java.util.Map<java.lang.String,java.util.function.BiFunction<java.lang.String,Settings,SimilarityProvider>> |
BUILT_IN |
static java.lang.String |
DEFAULT_SIMILARITY |
deprecationLogger, indexSettings, logger
Constructor and Description |
---|
SimilarityService(IndexSettings indexSettings,
java.util.Map<java.lang.String,java.util.function.BiFunction<java.lang.String,Settings,SimilarityProvider>> similarities) |
Modifier and Type | Method and Description |
---|---|
SimilarityProvider |
getSimilarity(java.lang.String name) |
org.apache.lucene.search.similarities.Similarity |
similarity(MapperService mapperService) |
getIndexSettings, index
public static final java.lang.String DEFAULT_SIMILARITY
public static final java.util.Map<java.lang.String,java.util.function.BiFunction<java.lang.String,Settings,SimilarityProvider>> BUILT_IN
public SimilarityService(IndexSettings indexSettings, java.util.Map<java.lang.String,java.util.function.BiFunction<java.lang.String,Settings,SimilarityProvider>> similarities)
public org.apache.lucene.search.similarities.Similarity similarity(MapperService mapperService)
public SimilarityProvider getSimilarity(java.lang.String name)