Configuring Elasticsearch nodes to use

Set the key |Common|Elasticsearch|Nodes to a comma-separated list of Elasticsearch nodes (including the port), e.g.

"http://10.1.4.141:9200/,http://10.1.4.142:9200/"

Enabling Elasticsearch for a DigaSystem Table

See Database/Table Configuration

Changing the default index settings

Set the key |Common|Elastisearch|DefaultIndexSettings to change the default index settings, e.g. change the analyzer to simple.

{     "settings": {
             "analysis": {
                    "analyzer": {
                           "default": { "type": "simple" } } } }
}
JS

Changing the default index mapping

Set the key |Common|Elastisearch|DefaultIndexMapping to change the hard-coded default index mapping, e.g.

{      "mappings": {
         "entry": {
            "properties": {
               "Album": {
                  "type": "text",
                  "fields": {
                     "keyword": {
                        "type": "keyword",
                        "ignore_above": 256
                     }
                  }
               },
               "Amplification": {
                  "type": "text",
                  "fields": {
                     "keyword": {
                        "type": "keyword",
                        "ignore_above": 256
                     }
                  }
               },
               "AmplificationIn": {
                  "type": "text",
                  "fields": {
                     "keyword": {
                        "type": "keyword",
                        "ignore_above": 256
                     }
                  }
               },
               "AmplificationOut": {
                  "type": "text",
                  "fields": {
                     "keyword": {
                        "type": "keyword",
                        "ignore_above": 256
                     }
                  }
               },
               "ArchiveDate": {
                  "type": "date"
               },
               "Archived": {
                  "type": "integer"
               },
               "Archiving": {
                  "type": "integer"
               },
               "AudioFormat": {
                  "type": "text",
                  "fields": {
                     "keyword": {
                        "type": "keyword",
                        "ignore_above": 256
                     }
                  }
               },
               "AudioMode": {
                  "type": "text",
                  "fields": {
                     "keyword": {
                        "type": "keyword",
                        "ignore_above": 256
                     }
                  }
               },
               "Author": {
                  "type": "text",
                  "fields": {
                     "keyword": {
                        "type": "keyword",
                        "ignore_above": 256
                     }
                  }
               },
               "AvailDate": {
                  "type": "date"
               },
               "Bitrate": {
                  "type": "integer"
               },
               "BriefDesc": {
                  "type": "text",
                  "fields": {
                     "keyword": {
                        "type": "keyword",
                        "ignore_above": 256
                     }
                  }
               },
               "Broadcast": {
                  "type": "text",
                  "fields": {
                     "keyword": {
                        "type": "keyword",
                        "ignore_above": 256
                     }
                  }
               },
               "BroadcastDate": {
                  "type": "date"
               },
               "Broadcastings": {
                  "type": "long"
               },
               "CartPriority": {
                  "type": "long"
               },
               "ChangeDate": {
                  "type": "date"
               },
               "ChangeUser": {
                  "type": "text",
                  "fields": {
                     "keyword": {
                        "type": "keyword",
                        "ignore_above": 256
                     }
                  }
               },
               "Class": {
                  "type": "text",
                  "fields": {
                     "keyword": {
                        "type": "keyword",
                        "ignore_above": 256
                     }
                  }
               },
               "Composer": {
                  "type": "text",
                  "fields": {
                     "keyword": {
                        "type": "keyword",
                        "ignore_above": 256
                     }
                  }
               },
               "Correspondent": {
                  "type": "text",
                  "fields": {
                     "keyword": {
                        "type": "keyword",
                        "ignore_above": 256
                     }
                  }
               },
               "CostCenter": {
                  "type": "text",
                  "fields": {
                     "keyword": {
                        "type": "keyword",
                        "ignore_above": 256
                     }
                  }
               },
               "CreateDate": {
                  "type": "date"
               },
               "Creator": {
                  "type": "text",
                  "fields": {
                     "keyword": {
                        "type": "keyword",
                        "ignore_above": 256
                     }
                  }
               },
               "DeleteDate": {
                  "type": "date"
               },
               "Distribution": {
                  "type": "text",
                  "fields": {
                     "keyword": {
                        "type": "keyword",
                        "ignore_above": 256
                     }
                  }
               },
               "Donut": {
                  "type": "long"
               },
               "Duration": {
                  "type": "long"
               },
               "Editor": {
                  "type": "text",
                  "fields": {
                     "keyword": {
                        "type": "keyword",
                        "ignore_above": 256
                     }
                  }
               },
               "FadeIn": {
                  "type": "long"
               },
               "FadeOut": {
                  "type": "long"
               },
               "FileSize": {
                  "type": "long"
               },
               "Filename": {
                  "type": "text",
                  "fields": {
                     "keyword": {
                        "type": "keyword",
                        "ignore_above": 256
                     }
                  }
               },
               "Filename2": {
                  "type": "text",
                  "fields": {
                     "keyword": {
                        "type": "keyword",
                        "ignore_above": 256
                     }
                  }
               },
               "Filepart": {
                  "type": "text",
                  "fields": {
                     "keyword": {
                        "type": "keyword",
                        "ignore_above": 256
                     }
                  }
               },
               "FirstUseDate": {
                  "type": "date"
               },
               "FirstWords": {
                  "type": "text",
                  "fields": {
                     "keyword": {
                        "type": "keyword",
                        "ignore_above": 256
                     }
                  }
               },
               "FlagsEx": {
                  "type": "text",
                  "fields": {
                     "keyword": {
                        "type": "keyword",
                        "ignore_above": 256
                     }
                  }
               },
               "Forarchive": {
                  "type": "integer"
               },
               "ForeignMotive": {
                  "type": "text",
                  "fields": {
                     "keyword": {
                        "type": "keyword",
                        "ignore_above": 256
                     }
                  }
               },
               "GemaId": {
                  "type": "text",
                  "fields": {
                     "keyword": {
                        "type": "keyword",
                        "ignore_above": 256
                     }
                  }
               },
               "Generation": {
                  "type": "long"
               },
               "Generator": {
                  "type": "text",
                  "fields": {
                     "keyword": {
                        "type": "keyword",
                        "ignore_above": 256
                     }
                  }
               },
               "GenericTitle": {
                  "type": "text",
                  "fields": {
                     "keyword": {
                        "type": "keyword",
                        "ignore_above": 256
                     }
                  }
               },
               "GroupId": {
                  "type": "long"
               },
               "Growing": {
                  "type": "integer"
               },
               "Header": {
                  "type": "text",
                  "fields": {
                     "keyword": {
                        "type": "keyword",
                        "ignore_above": 256
                     }
                  }
               },
               "HookIn": {
                  "type": "long"
               },
               "HookOut": {
                  "type": "long"
               },
               "Identifier": {
                  "type": "long"
               },
               "Indexed": {
                  "type": "integer"
               },
               "Informat": {
                  "type": "text",
                  "fields": {
                     "keyword": {
                        "type": "keyword",
                        "ignore_above": 256
                     }
                  }
               },
               "Intro": {
                  "type": "long"
               },
               "Invalid": {
                  "type": "integer"
               },
               "Invisible": {
                  "type": "integer"
               },
               "KeyFrameExists": {
                  "type": "integer"
               },
               "Keywords": {
                  "type": "text",
                  "fields": {
                     "keyword": {
                        "type": "keyword",
                        "ignore_above": 256
                     }
                  }
               },
               "LastSendDate": {
                  "type": "date"
               },
               "LastUseDate": {
                  "type": "date"
               },
               "LastWords": {
                  "type": "text",
                  "fields": {
                     "keyword": {
                        "type": "keyword",
                        "ignore_above": 256
                     }
                  }
               },
               "LinkIn": {
                  "type": "long"
               },
               "LinkOut": {
                  "type": "long"
               },
               "Location": {
                  "type": "text",
                  "fields": {
                     "keyword": {
                        "type": "keyword",
                        "ignore_above": 256
                     }
                  }
               },
               "Loop": {
                  "type": "integer"
               },
               "LowResExists": {
                  "type": "integer"
               },
               "MarkIn": {
                  "type": "long"
               },
               "MarkOut": {
                  "type": "long"
               },
               "MediumCode": {
                  "type": "long"
               },
               "MediumName": {
                  "type": "text",
                  "fields": {
                     "keyword": {
                        "type": "keyword",
                        "ignore_above": 256
                     }
                  }
               },
               "MemberGroupId": {
                  "type": "long"
               },
               "MixerSource": {
                  "type": "text",
                  "fields": {
                     "keyword": {
                        "type": "keyword",
                        "ignore_above": 256
                     }
                  }
               },
               "Motive": {
                  "type": "text",
                  "fields": {
                     "keyword": {
                        "type": "keyword",
                        "ignore_above": 256
                     }
                  }
               },
               "MusicId": {
                  "type": "text",
                  "fields": {
                     "keyword": {
                        "type": "keyword",
                        "ignore_above": 256
                     }
                  }
               },
               "New": {
                  "type": "integer"
               },
               "NoDelete": {
                  "type": "integer"
               },
               "Number": {
                  "type": "long"
               },
               "Orderer": {
                  "type": "text",
                  "fields": {
                     "keyword": {
                        "type": "keyword",
                        "ignore_above": 256
                     }
                  }
               },
               "Outro": {
                  "type": "long"
               },
               "Outro2": {
                  "type": "long"
               },
               "Owner": {
                  "type": "text",
                  "fields": {
                     "keyword": {
                        "type": "keyword",
                        "ignore_above": 256
                     }
                  }
               },
               "Perfect": {
                  "type": "integer"
               },
               "Performer": {
                  "type": "text",
                  "fields": {
                     "keyword": {
                        "type": "keyword",
                        "ignore_above": 256
                     }
                  }
               },
               "Personal": {
                  "type": "text",
                  "fields": {
                     "keyword": {
                        "type": "keyword",
                        "ignore_above": 256
                     }
                  }
               },
               "PersonalRadio": {
                  "type": "integer"
               },
               "PlayOutGain": {
                  "type": "text",
                  "fields": {
                     "keyword": {
                        "type": "keyword",
                        "ignore_above": 256
                     }
                  }
               },
               "Pool": {
                  "type": "text",
                  "fields": {
                     "keyword": {
                        "type": "keyword",
                        "ignore_above": 256
                     }
                  }
               },
               "Presentation": {
                  "type": "text",
                  "fields": {
                     "keyword": {
                        "type": "keyword",
                        "ignore_above": 256
                     }
                  }
               },
               "Priority": {
                  "type": "text",
                  "fields": {
                     "keyword": {
                        "type": "keyword",
                        "ignore_above": 256
                     }
                  }
               },
               "Producer": {
                  "type": "text",
                  "fields": {
                     "keyword": {
                        "type": "keyword",
                        "ignore_above": 256
                     }
                  }
               },
               "Publisher": {
                  "type": "text",
                  "fields": {
                     "keyword": {
                        "type": "keyword",
                        "ignore_above": 256
                     }
                  }
               },
               "Ramp": {
                  "type": "long"
               },
               "Ready": {
                  "type": "integer"
               },
               "RecordDate": {
                  "type": "date"
               },
               "Recordplace": {
                  "type": "text",
                  "fields": {
                     "keyword": {
                        "type": "keyword",
                        "ignore_above": 256
                     }
                  }
               },
               "Registration": {
                  "type": "text",
                  "fields": {
                     "keyword": {
                        "type": "keyword",
                        "ignore_above": 256
                     }
                  }
               },
               "Remark": {
                  "type": "text",
                  "fields": {
                     "keyword": {
                        "type": "keyword",
                        "ignore_above": 256
                     }
                  }
               },
               "ReplFlags": {
                  "type": "long"
               },
               "ReplIdent": {
                  "type": "text",
                  "fields": {
                     "keyword": {
                        "type": "keyword",
                        "ignore_above": 256
                     }
                  }
               },
               "RequestDearchive": {
                  "type": "integer"
               },
               "Ressort": {
                  "type": "text",
                  "fields": {
                     "keyword": {
                        "type": "keyword",
                        "ignore_above": 256
                     }
                  }
               },
               "Royalties": {
                  "type": "integer"
               },
               "Samplerate": {
                  "type": "long"
               },
               "SharedAudio": {
                  "type": "integer"
               },
               "Singer": {
                  "type": "text",
                  "fields": {
                     "keyword": {
                        "type": "keyword",
                        "ignore_above": 256
                     }
                  }
               },
               "SoftDeleted": {
                  "type": "integer"
               },
               "SoundProcessing": {
                  "type": "text",
                  "fields": {
                     "keyword": {
                        "type": "keyword",
                        "ignore_above": 256
                     }
                  }
               },
               "Source": {
                  "type": "text",
                  "fields": {
                     "keyword": {
                        "type": "keyword",
                        "ignore_above": 256
                     }
                  }
               },
               "SpotLength": {
                  "type": "long"
               },
               "State": {
                  "type": "text",
                  "fields": {
                     "keyword": {
                        "type": "keyword",
                        "ignore_above": 256
                     }
                  }
               },
               "Stinger": {
                  "type": "text",
                  "fields": {
                     "keyword": {
                        "type": "keyword",
                        "ignore_above": 256
                     }
                  }
               },
               "Story": {
                  "type": "integer"
               },
               "SubRessort": {
                  "type": "text",
                  "fields": {
                     "keyword": {
                        "type": "keyword",
                        "ignore_above": 256
                     }
                  }
               },
               "Table": {
                  "type": "text",
                  "fields": {
                     "keyword": {
                        "type": "keyword",
                        "ignore_above": 256
                     }
                  }
               },
               "Tag": {
                  "type": "long"
               },
               "TextDuration": {
                  "type": "long"
               },
               "Title": {
                  "type": "text",
                  "fields": {
                     "keyword": {
                        "type": "keyword",
                        "ignore_above": 256
                     }
                  }
               },
               "Transmitted": {
                  "type": "integer"
               },
               "UseRestrictions": {
                  "type": "text",
                  "fields": {
                     "keyword": {
                        "type": "keyword",
                        "ignore_above": 256
                     }
                  }
               },
               "Vsat": {
                  "type": "integer"
               },
               "Weekday": {
                  "type": "integer"
               },
               "WithTextFile": {
                  "type": "integer"
               }
            }
         }
      }
}
JS