public class SimilarityLookupService extends AbstractIndexComponent
SimilarityProvider implementations by name.
The service instantiates the Providers through their Factories using configuration
values found with the SimilarityModule.SIMILARITY_SETTINGS_PREFIX prefix.| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_SIMILARITY |
componentSettings, index, indexSettings, logger| Constructor and Description |
|---|
SimilarityLookupService(Index index,
Settings indexSettings) |
SimilarityLookupService(Index index,
Settings indexSettings,
Map<String,SimilarityProvider.Factory> similarities) |
| Modifier and Type | Method and Description |
|---|---|
SimilarityProvider |
similarity(String name)
Returns the
SimilarityProvider with the given name |
index, nodeNamepublic static final String DEFAULT_SIMILARITY
@Inject public SimilarityLookupService(Index index, @IndexSettings Settings indexSettings, Map<String,SimilarityProvider.Factory> similarities)
public SimilarityProvider similarity(String name)
SimilarityProvider with the given namename - Name of the SimilarityProvider to findSimilarityProvider with the given name, or null if no Provider existsCopyright © 2009–2016. All rights reserved.