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 |
deprecationLogger, index, indexSettings, logger| Constructor and Description |
|---|
SimilarityLookupService(Index index,
IndexSettingsService indexSettingsService,
Map<String,SimilarityProvider.Factory> similarities) |
SimilarityLookupService(Index index,
Settings indexSettings) |
| Modifier and Type | Method and Description |
|---|---|
SimilarityProvider |
similarity(String name)
Returns the
SimilarityProvider with the given name |
index, indexSettingspublic static final String DEFAULT_SIMILARITY
@Inject public SimilarityLookupService(Index index, IndexSettingsService indexSettingsService, 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–2017. All rights reserved.