public final class SolrFieldHelper extends Object
| Modifier and Type | Field and Description | 
|---|---|
private static int | 
__SORT_MAX_CHARS  | 
| Modifier | Constructor and Description | 
|---|---|
private  | 
SolrFieldHelper()  | 
| Modifier and Type | Method and Description | 
|---|---|
static String | 
getFieldSuffix(MetadataType type)
Get a field suffix from its type. 
 | 
static String | 
getFieldSuffix(MetadataType type,
              String language,
              boolean fullText)
Get a field suffix from its type. 
 | 
static String | 
getFulltextFieldSuffix(String language)
Get the wildcard field suffix 
 | 
static String | 
getIndexingFieldName(MetadataType type,
                    String fieldPath)
Get the Solr field name (without analyzing) 
 | 
static String | 
getIndexingFieldName(MetadataType type,
                    String fieldPath,
                    String language)
Get the Solr field's name (without analyzing) 
 | 
static String | 
getIndexingFieldName(MetadataType type,
                    String fieldPath,
                    String language,
                    boolean fullText)
Get the Solr field name 
 | 
static String | 
getJoinFieldName(String metadataPath)
Get the field name for join 
 | 
static String | 
getMetadataSortFieldName(MetadataType type,
                        String metadataPath)
Get the Solr field name for sorting 
 | 
static String | 
getSortFieldSuffix(MetadataType metaType)
Get the suffix for sorting 
 | 
static String | 
getSortValue(String string)
Get the sort value for a string. 
 | 
static String | 
getStringFieldSuffix(String language,
                    boolean fullText)
Get a field suffix from its type. 
 | 
static String | 
getStringIndexingFieldName(String fieldPath,
                          String language,
                          boolean fullText)
Get the Solr field name (without analyzing) 
 | 
static String | 
getWildcardFieldSuffix()
Get the wildcard field suffix 
 | 
private static final int __SORT_MAX_CHARS
private SolrFieldHelper()
public static String getStringIndexingFieldName(String fieldPath, String language, boolean fullText)
fieldPath - The path to metadatalanguage - The query language.fullText - true for a full-text query, false otherwise.public static String getIndexingFieldName(MetadataType type, String fieldPath)
type - The typefieldPath - The path to metadatapublic static String getIndexingFieldName(MetadataType type, String fieldPath, String language)
type - The typefieldPath - The path to metadatalanguage - The query language.public static String getIndexingFieldName(MetadataType type, String fieldPath, String language, boolean fullText)
type - The typefieldPath - The path to metadatalanguage - The query language.fullText - true if field should be analyzed.public static String getStringFieldSuffix(String language, boolean fullText)
language - The query language.fullText - true for a full-text query, false otherwise.public static String getWildcardFieldSuffix()
public static String getFulltextFieldSuffix(String language)
language - The query language.public static String getFieldSuffix(MetadataType type)
type - the field type.public static String getFieldSuffix(MetadataType type, String language, boolean fullText)
type - the field type.language - The search language.fullText - true if the field is indexed full-text, false otherwise.public static String getMetadataSortFieldName(MetadataType type, String metadataPath)
type - The typemetadataPath - The path to metadatapublic static String getSortFieldSuffix(MetadataType metaType)
metaType - The typepublic static String getJoinFieldName(String metadataPath)
metadataPath - The metadata path, separated by '/'public static String getSortValue(String string)
string - the string to index in a sort field.