Package org.mycore.solr
Class MCRSolrUtils
java.lang.Object
org.mycore.solr.MCRSolrUtils
- Author:
- Thomas Scheffler (yagee)
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
escapeSearchValue
(String value) Escapes characters in search values that need to be escaped for SOLR.static MCRConfigurationException
getCoreConfigMissingException
(String coreID) static boolean
Checks if the application uses nested documents.
-
Constructor Details
-
MCRSolrUtils
public MCRSolrUtils()
-
-
Method Details
-
escapeSearchValue
Escapes characters in search values that need to be escaped for SOLR.- Parameters:
value
- any value to look for in a field- Returns:
- null if value is null
- See Also:
-
useNestedDocuments
public static boolean useNestedDocuments()Checks if the application uses nested documents. If so, each reindex requires an extra deletion. Using nested documents slows the solr index performance.- Returns:
- true if nested documents are used, otherwise false
-
getCoreConfigMissingException
-