DocSearchModul
This commit is contained in:
@@ -8,12 +8,12 @@
|
||||
If CURRENT_DT_FINAL_INDEXING.Rows.Count > 0 Then
|
||||
|
||||
'Jetzt finale Indexe setzen
|
||||
LOGGER.Debug(" >> working final indices for doc: " & WMObject.aName, False)
|
||||
LOGGER.Debug("working final indices for doc: " & WMObject.aName)
|
||||
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 ###
|
||||
LOGGER.Debug(" >> indexing with dynamic sql...", False)
|
||||
LOGGER.Debug("indexing with dynamic sql...")
|
||||
'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}"
|
||||
@@ -25,13 +25,13 @@
|
||||
'' alle Vorkommen innerhalbd er Namenkonvention durchlaufen
|
||||
'For Each element As System.Text.RegularExpressions.Match In elemente
|
||||
' Try
|
||||
' If LogErrorsOnly = False Then LOGGER.Info(" >> element in RegeX: " & element.Value, False)
|
||||
' If LogErrorsOnly = False Then LOGGER.Info(" >> element in RegeX: " & element.Value)
|
||||
' Dim WDINDEXNAME = element.Value.Substring(2, element.Value.Length - 3)
|
||||
' Dim wertWD = WMObject.GetVariableValue(WDINDEXNAME)
|
||||
' If Not IsNothing(wertWD) Then
|
||||
' SQL_COMMAND = SQL_COMMAND.ToString.Replace(element.Value, wertWD)
|
||||
' Else
|
||||
' LOGGER.Info(">>Attention: indexvalue is invalid", False)
|
||||
' LOGGER.Info(">>Attention: indexvalue is invalid")
|
||||
' End If
|
||||
' Catch ex As Exception
|
||||
' LOGGER.Info("Unexpected Error in Checking control values for Variable SQL Result - ERROR: " & ex.Message)
|
||||
@@ -41,7 +41,7 @@
|
||||
sql_Statement = clsPatterns.ReplaceInternalValues(sql_Statement)
|
||||
sql_Statement = clsPatterns.ReplaceWindreamIndicies(sql_Statement, WMObject)
|
||||
|
||||
LOGGER.Debug(">>> sql after ReplaceAllValues: " & sql_Statement, False)
|
||||
LOGGER.Debug(">>> sql after ReplaceAllValues: " & sql_Statement)
|
||||
Dim dynamic_value = ClassDatabase.Execute_Scalar(sql_Statement, CONNECTION_STRING, True)
|
||||
If Not IsNothing(dynamic_value) Then
|
||||
value = dynamic_value
|
||||
@@ -66,11 +66,11 @@
|
||||
result(0) = value
|
||||
|
||||
Dim oIndexType = WINDREAM.GetTypeOfIndex(INDEXNAME)
|
||||
LOGGER.Debug($" >> oIndexType {oIndexType.ToString}", False)
|
||||
LOGGER.Debug($"oIndexType {oIndexType.ToString}")
|
||||
If oIndexType > 4000 And oIndexType < 5000 Then
|
||||
'Hier muss nun separat als Vektorfeld indexiert werden
|
||||
If Indexiere_VektorfeldPM(value, INDEXNAME, WMObject) = False Then
|
||||
LOGGER.Debug(" >> FINALER INDEX '" & INDEXNAME.Replace("[%VKT", "") & "' WURDE ERFOLGREICH GESETZT", False)
|
||||
LOGGER.Debug("FINALER INDEX '" & INDEXNAME.Replace("[%VKT", "") & "' WURDE ERFOLGREICH GESETZT")
|
||||
Else
|
||||
|
||||
MsgBox("Unexpected error in finalindexing vektorvalue - check the log", MsgBoxStyle.Critical)
|
||||
@@ -78,9 +78,9 @@
|
||||
|
||||
End If
|
||||
Else
|
||||
LOGGER.Debug(" >> now indexing..", False)
|
||||
LOGGER.Debug("now indexing..")
|
||||
If Indexiere_File(INDEXNAME, result, WMObject) = True Then
|
||||
LOGGER.Debug(" >> FINALER INDEX '" & INDEXNAME & "' WURDE ERFOLGREICH GESETZT", False)
|
||||
LOGGER.Debug("FINALER INDEX '" & INDEXNAME & "' WURDE ERFOLGREICH GESETZT")
|
||||
LOGGER.Debug("")
|
||||
'Nun das Logging
|
||||
If CURRENT_PROFILE_VEKTOR_LOG <> "" Then
|
||||
@@ -127,7 +127,7 @@
|
||||
'Das Array der Idnexwerte überprüfen
|
||||
If idxvalue Is Nothing = False Then
|
||||
If idxvalue.Length() > 1 Then
|
||||
LOGGER.Debug(" >> Indexing Index '" & idxxname & "' with Arrayvalue", False)
|
||||
LOGGER.Debug("Indexing Index '" & idxxname & "' with Arrayvalue")
|
||||
Dim anzahl As Integer = 0
|
||||
For Each indexvalue As String In idxvalue
|
||||
ReDim Preserve arrValue(anzahl)
|
||||
@@ -135,7 +135,7 @@
|
||||
anzahl += 1
|
||||
Next
|
||||
Else
|
||||
LOGGER.Debug(" >> Indexing Index '" & idxxname & "' with value '" & idxvalue(0) & "'", False)
|
||||
LOGGER.Debug("Indexing Index '" & idxxname & "' with value '" & idxvalue(0) & "'")
|
||||
ReDim Preserve arrValue(0)
|
||||
arrValue(0) = idxvalue(0).ToString
|
||||
End If
|
||||
|
||||
Reference in New Issue
Block a user