public class SolrLinkingDescriptor extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
SolrLinkingDescriptor.SolrLanguageConfigBuilder |
static class |
SolrLinkingDescriptor.SolrLinkingDescriptorBuilder |
| Modifier and Type | Method and Description |
|---|---|
static SolrLinkingDescriptor.SolrLinkingDescriptorBuilder |
createDefaultFor(String coreName,
String titleField,
String tagField)
Returns a builder already configured for the parsed
coreName using
id as documentId field. |
static SolrLinkingDescriptor.SolrLinkingDescriptorBuilder |
createFor(String coreName) |
String |
getCoreName()
The name of the Solr core this linking descriptor is configured for
|
LinkingConfig |
getLinkingConfiguration(String lang)
The configuration to be used for linking in the parsed language or
null if the parsed language is not supported. |
boolean |
hasDefaultLanguageConfig()
If a default language configuration is present
|
boolean |
hasLanguageConfig(String lang)
If a language specific configuration for the parsed language is present
|
Set<String> |
supportedLanguages()
Getter for the set of supported languages.
|
public static SolrLinkingDescriptor.SolrLinkingDescriptorBuilder createDefaultFor(String coreName, String titleField, String tagField)
coreName using
id as documentId field. It will also have a default (null)
language configuration with the parsed title and tag field. So for the most simple
configurations where a single field pair is used for all languages this
should be sufficient.idField - the id field of the Solr schematitleField - the Solr field that stores the title of the entitytagField - the Solr field used for tagging (needs to be configured accordingly)SolrLinkingDescriptor with the minimal configuration based on the parsed parameterspublic static SolrLinkingDescriptor.SolrLinkingDescriptorBuilder createFor(String coreName)
public String getCoreName()
public Set<String> supportedLanguages()
null value
indicated that a default configuration is present. This will be used
as fallback for all languages without a specific configuration.public boolean hasLanguageConfig(String lang)
lang - the languagepublic boolean hasDefaultLanguageConfig()
public LinkingConfig getLinkingConfiguration(String lang)
null if the parsed language is not supported.lang - the languageLinkingConfig or null if the parsed
language is not supportedCopyright © 2016–2017 Redlink GmbH. All rights reserved.