public static class PostingsFormatProvider.Helper extends Object
Constructor and Description |
---|
Helper() |
Modifier and Type | Method and Description |
---|---|
static PostingsFormatProvider |
lookup(Settings indexSettings,
String name,
Map<String,PostingsFormatProvider.Factory> postingFormatFactories)
Looks up and creates
PostingsFormatProvider for the given name. |
public static PostingsFormatProvider lookup(@IndexSettings Settings indexSettings, String name, Map<String,PostingsFormatProvider.Factory> postingFormatFactories) throws ElasticsearchIllegalArgumentException
PostingsFormatProvider
for the given name.
The settings for the created PostingsFormatProvider
is taken from the given index settings.
All settings with the prefix
and the formats name as the key are passed to the factory.
indexSettings
- the index settings to configure the postings formatname
- the name of the postings format to lookuppostingFormatFactories
- the factory mapping to lookup the PostingsFormatProvider.Factory
to create the PostingsFormatProvider
PostingsFormatProvider
for the given name.ElasticsearchIllegalArgumentException
- if the no PostingsFormatProvider
for the given name parameter could be found.Copyright © 2009–2015. All rights reserved.