First pass of new config
This commit is contained in:
@@ -8,12 +8,12 @@
|
||||
If CURRENT_DT_FINAL_INDEXING.Rows.Count > 0 Then
|
||||
|
||||
'Jetzt finale Indexe setzen
|
||||
If LogErrorsOnly = False Then ClassLogger.Add(" >> working final indices for doc: " & WMObject.aName, False)
|
||||
If LOG_ERRORS_ONLY = False Then ClassLogger.Add(" >> working final indices for doc: " & WMObject.aName, False)
|
||||
For Each dr As DataRow In CURRENT_DT_FINAL_INDEXING.Rows
|
||||
Dim value As String = dr.Item("VALUE").ToString
|
||||
Dim INDEXNAME = dr.Item("INDEXNAME").ToString
|
||||
If value.ToUpper = "SQL-Command".ToUpper Then '###### Indexierung mit variablen SQL ###
|
||||
If LogErrorsOnly = False Then ClassLogger.Add(" >> indexing with dynamic sql...", False)
|
||||
If LOG_ERRORS_ONLY = False Then ClassLogger.Add(" >> indexing with dynamic sql...", False)
|
||||
'Dim SQL_COMMAND = dr.Item("SQL_COMMAND")
|
||||
'' Regulären Ausdruck zum Auslesen der Indexe definieren
|
||||
'Dim preg As String = "\[%{1}[a-zA-Z0-9\!\$\&\/\(\)\=\?\,\.\-\;\:_öÖüÜäÄ\#\'\+\*\~\{\}\@\€\<\>\ ]+]{1}"
|
||||
@@ -41,8 +41,8 @@
|
||||
sql_Statement = clsPatterns.ReplaceInternalValues(sql_Statement)
|
||||
sql_Statement = clsPatterns.ReplaceWindreamIndicies(sql_Statement, WMObject)
|
||||
|
||||
If LogErrorsOnly = False Then ClassLogger.Add(">>> sql after ReplaceAllValues: " & sql_Statement, False)
|
||||
Dim dynamic_value = ClassDatabase.Execute_Scalar(sql_Statement, MyConnectionString, True)
|
||||
If LOG_ERRORS_ONLY = False Then ClassLogger.Add(">>> sql after ReplaceAllValues: " & sql_Statement, False)
|
||||
Dim dynamic_value = ClassDatabase.Execute_Scalar(sql_Statement, CONNECTION_STRING, True)
|
||||
If Not IsNothing(dynamic_value) Then
|
||||
value = dynamic_value
|
||||
Else
|
||||
@@ -66,11 +66,11 @@
|
||||
result(0) = value
|
||||
|
||||
Dim oIndexType = WINDREAM.GetTypeOfIndex(INDEXNAME)
|
||||
If LogErrorsOnly = False Then ClassLogger.Add($" >> oIndexType {oIndexType.ToString}", False)
|
||||
If LOG_ERRORS_ONLY = False Then ClassLogger.Add($" >> oIndexType {oIndexType.ToString}", False)
|
||||
If oIndexType > 4000 And oIndexType < 5000 Then
|
||||
'Hier muss nun separat als Vektorfeld indexiert werden
|
||||
If Indexiere_VektorfeldPM(value, INDEXNAME, WMObject) = False Then
|
||||
If LogErrorsOnly = False Then ClassLogger.Add(" >> FINALER INDEX '" & INDEXNAME.Replace("[%VKT", "") & "' WURDE ERFOLGREICH GESETZT", False)
|
||||
If LOG_ERRORS_ONLY = False Then ClassLogger.Add(" >> FINALER INDEX '" & INDEXNAME.Replace("[%VKT", "") & "' WURDE ERFOLGREICH GESETZT", False)
|
||||
Else
|
||||
|
||||
MsgBox("Unexpected error in finalindexing vektorvalue - check the log", MsgBoxStyle.Critical)
|
||||
@@ -78,10 +78,10 @@
|
||||
|
||||
End If
|
||||
Else
|
||||
If LogErrorsOnly = False Then ClassLogger.Add(" >> now indexing..", False)
|
||||
If LOG_ERRORS_ONLY = False Then ClassLogger.Add(" >> now indexing..", False)
|
||||
If Indexiere_File(INDEXNAME, result, WMObject) = True Then
|
||||
If LogErrorsOnly = False Then ClassLogger.Add(" >> FINALER INDEX '" & INDEXNAME & "' WURDE ERFOLGREICH GESETZT", False)
|
||||
If LogErrorsOnly = False Then ClassLogger.Add("")
|
||||
If LOG_ERRORS_ONLY = False Then ClassLogger.Add(" >> FINALER INDEX '" & INDEXNAME & "' WURDE ERFOLGREICH GESETZT", False)
|
||||
If LOG_ERRORS_ONLY = False Then ClassLogger.Add("")
|
||||
'Nun das Logging
|
||||
If CURRENT_PROFILE_VEKTOR_LOG <> "" Then
|
||||
Dim logstr = Return_LOGString(value, "DDFINALINDEX", INDEXNAME)
|
||||
@@ -126,7 +126,7 @@
|
||||
'Das Array der Idnexwerte überprüfen
|
||||
If idxvalue Is Nothing = False Then
|
||||
If idxvalue.Length() > 1 Then
|
||||
If LogErrorsOnly = False Then ClassLogger.Add(" >> Indexing Index '" & idxxname & "' with Arrayvalue", False)
|
||||
If LOG_ERRORS_ONLY = False Then ClassLogger.Add(" >> Indexing Index '" & idxxname & "' with Arrayvalue", False)
|
||||
Dim anzahl As Integer = 0
|
||||
For Each indexvalue As String In idxvalue
|
||||
ReDim Preserve arrValue(anzahl)
|
||||
@@ -134,7 +134,7 @@
|
||||
anzahl += 1
|
||||
Next
|
||||
Else
|
||||
If LogErrorsOnly = False Then ClassLogger.Add(" >> Indexing Index '" & idxxname & "' with value '" & idxvalue(0) & "'", False)
|
||||
If LOG_ERRORS_ONLY = False Then ClassLogger.Add(" >> Indexing Index '" & idxxname & "' with value '" & idxvalue(0) & "'", False)
|
||||
ReDim Preserve arrValue(0)
|
||||
arrValue(0) = idxvalue(0).ToString
|
||||
End If
|
||||
|
||||
Reference in New Issue
Block a user