Class SimilarityService
- java.lang.Object
-
- org.elasticsearch.index.AbstractIndexComponent
-
- org.elasticsearch.index.similarity.SimilarityService
-
- All Implemented Interfaces:
IndexComponent
public final class SimilarityService extends AbstractIndexComponent
-
-
Field Summary
Fields Modifier and Type Field Description static java.util.Map<java.lang.String,TriFunction<Settings,Version,ScriptService,org.apache.lucene.search.similarities.Similarity>>
BUILT_IN
static java.lang.String
DEFAULT_SIMILARITY
-
Fields inherited from class org.elasticsearch.index.AbstractIndexComponent
deprecationLogger, indexSettings, logger
-
-
Constructor Summary
Constructors Constructor Description SimilarityService(IndexSettings indexSettings, ScriptService scriptService, java.util.Map<java.lang.String,TriFunction<Settings,Version,ScriptService,org.apache.lucene.search.similarities.Similarity>> similarities)
-
Method Summary
Modifier and Type Method Description SimilarityProvider
getSimilarity(java.lang.String name)
org.apache.lucene.search.similarities.Similarity
similarity(MapperService mapperService)
-
Methods inherited from class org.elasticsearch.index.AbstractIndexComponent
getIndexSettings, index
-
-
-
-
Field Detail
-
DEFAULT_SIMILARITY
public static final java.lang.String DEFAULT_SIMILARITY
- See Also:
- Constant Field Values
-
BUILT_IN
public static final java.util.Map<java.lang.String,TriFunction<Settings,Version,ScriptService,org.apache.lucene.search.similarities.Similarity>> BUILT_IN
-
-
Constructor Detail
-
SimilarityService
public SimilarityService(IndexSettings indexSettings, ScriptService scriptService, java.util.Map<java.lang.String,TriFunction<Settings,Version,ScriptService,org.apache.lucene.search.similarities.Similarity>> similarities)
-
-
Method Detail
-
similarity
public org.apache.lucene.search.similarities.Similarity similarity(MapperService mapperService)
-
getSimilarity
public SimilarityProvider getSimilarity(java.lang.String name)
-
-