Package com.viglet.turing.solr
Class TurSolrUtils
Object
TurSolrUtils
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic void
addOrUpdateField
(TurSolrFieldAction turSolrFieldAction, TurSEInstance turSEInstance, String coreName, String fieldName, TurSEFieldType turSEFieldType, boolean stored, boolean multiValued) static boolean
coreExists
(TurSEInstance turSEInstance, String core) static void
createCollection
(String solrUrl, String coreName, InputStream inputStream, int shards) static void
createCopyFieldByCore
(TurSEInstance turSEInstance, String coreName, String fieldName, boolean multiValued) static void
createCore
(String solrUrl, String coreName, String configSet) static TurSEResult
createTurSEResultFromDocument
(SolrDocument document) static void
deleteCore
(TurSEInstance turSEInstance, String coreName) static void
deleteCore
(String solrUrl, String name) static boolean
existsField
(TurSEInstance turSEInstance, String coreName, String fieldName) static int
firstRowPositionFromCurrentPage
(TurSEParameters turSEParameters) static TurSolrFieldBean
getField
(TurSEInstance turSEInstance, String coreName, String fieldName) static @NotNull String
getSolrFieldType
(TurSEFieldType turSEFieldType) static String
static boolean
isCreateCopyFieldByCore
(TurSEInstance turSEInstance, String coreName, String fieldName, TurSEFieldType turSEFieldType) static int
lastRowPositionFromCurrentPage
(TurSEParameters turSEParameters)
-
Field Details
-
STR_SUFFIX
- See Also:
-
SCHEMA_API_URL
- See Also:
-
-
Method Details
-
deleteCore
-
deleteCore
-
getField
public static TurSolrFieldBean getField(TurSEInstance turSEInstance, String coreName, String fieldName) -
existsField
-
addOrUpdateField
public static void addOrUpdateField(TurSolrFieldAction turSolrFieldAction, TurSEInstance turSEInstance, String coreName, String fieldName, TurSEFieldType turSEFieldType, boolean stored, boolean multiValued) -
isCreateCopyFieldByCore
public static boolean isCreateCopyFieldByCore(TurSEInstance turSEInstance, String coreName, String fieldName, TurSEFieldType turSEFieldType) -
createCopyFieldByCore
public static void createCopyFieldByCore(TurSEInstance turSEInstance, String coreName, String fieldName, boolean multiValued) -
getSolrFieldType
-
createCore
-
createCollection
public static void createCollection(String solrUrl, String coreName, InputStream inputStream, int shards) -
getValueFromQuery
-
createTurSEResultFromDocument
-
firstRowPositionFromCurrentPage
-
lastRowPositionFromCurrentPage
-
coreExists
-