Class TurSolrUtils
java.lang.Object
com.viglet.turing.solr.TurSolrUtils
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic voidaddOrUpdateField(TurSolrFieldAction turSolrFieldAction, TurSEInstance turSEInstance, String coreName, String fieldName, TurSEFieldType turSEFieldType, boolean stored, boolean multiValued) static voidclearCore(TurSEInstance turSEInstance, String coreName) static booleancoreExists(TurSEInstance turSEInstance, String core) static voidcreateCollection(String solrUrl, String coreName, InputStream inputStream, int shards) static voidcreateCopyFieldByCore(TurSEInstance turSEInstance, String coreName, String fieldName, boolean multiValued) static voidcreateCore(String solrUrl, String coreName, String configSet) static TurSEResultcreateTurSEResultFromDocument(org.apache.solr.common.SolrDocument document) static voiddeleteCopyFieldByCore(TurSEInstance turSEInstance, String coreName, String fieldName) static voiddeleteCore(String solrUrl, String name) static voiddeleteField(TurSEInstance turSEInstance, String coreName, String fieldName, TurSEFieldType turSEFieldType) static booleanexistsField(TurSEInstance turSEInstance, String coreName, String fieldName) static intfirstRowPositionFromCurrentPage(TurSEParameters turSEParameters) static TurSolrFieldBeangetField(TurSEInstance turSEInstance, String coreName, String fieldName) static @NotNull StringgetSolrFieldType(TurSEFieldType turSEFieldType) static Stringstatic booleanisCreateCopyFieldByCore(TurSEInstance turSEInstance, String coreName, String fieldName, TurSEFieldType turSEFieldType) static booleanisDeleteCopyFieldByCore(TurSEInstance turSEInstance, String coreName, String fieldName, TurSEFieldType turSEFieldType) static intlastRowPositionFromCurrentPage(TurSEParameters turSEParameters) static List<TurSECoreInfo> listCores(TurSEInstance turSEInstance)
-
Field Details
-
STR_SUFFIX
- See Also:
-
SCHEMA_API_URL
- See Also:
-
-
Method Details
-
clearCore
-
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) -
deleteField
public static void deleteField(TurSEInstance turSEInstance, String coreName, String fieldName, TurSEFieldType turSEFieldType) -
isCreateCopyFieldByCore
public static boolean isCreateCopyFieldByCore(TurSEInstance turSEInstance, String coreName, String fieldName, TurSEFieldType turSEFieldType) -
isDeleteCopyFieldByCore
public static boolean isDeleteCopyFieldByCore(TurSEInstance turSEInstance, String coreName, String fieldName, TurSEFieldType turSEFieldType) -
deleteCopyFieldByCore
public static void deleteCopyFieldByCore(TurSEInstance turSEInstance, String coreName, String fieldName) -
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
public static TurSEResult createTurSEResultFromDocument(org.apache.solr.common.SolrDocument document) -
firstRowPositionFromCurrentPage
-
lastRowPositionFromCurrentPage
-
listCores
-
coreExists
-