My mapping is here:
PUT transakcije
{
"settings" : {
"index" : {
"number_of_shards" : 10,
"number_of_replicas" : 1
}
},
"mappings": {
"log_transakcije": {
"properties": {
"@timestamp": {
"type": "date"
},
"@version": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 256
}
}
},
"acronym": {
"type": "keyword",
"eager_global_ordinals": true
},
"beat": {
"properties": {
"hostname": {
"type": "keyword"
},
"name": {
"type": "keyword"
},
"version": {
"type": "keyword"
}
}
},
"bibl001c": {
"type": "keyword"
},
"biblLanguage101a": {
"type": "keyword"
},
"biblTargetAudienceCode100e": {
"type": "keyword"
},
"biblType001b": {
"type": "keyword"
},
"biblUDK675s": {
"type": "text"
},
"busStopId": {
"type": "keyword"
},
"cir": {
"type": "keyword"
},
"cobissId": {
"type": "keyword",
"eager_global_ordinals": true
},
"country": {
"type": "keyword"
},
"date": {
"type": "date"
},
"district": {
"type": "keyword"
},
"firstsignUpDate": {
"type": "date"
},
"gender": {
"type": "byte"
},
"holdStatus": {
"type": "keyword"
},
"host": {
"type": "keyword"
},
"input_type": {
"type": "keyword"
},
"inventoryNo": {
"type": "keyword"
},
"lastProlongDate": {
"type": "date"
},
"lastVisitDate": {
"type": "date"
},
"libraryCode": {
"type": "keyword"
},
"libraryDept": {
"type": "keyword"
},
"loanDate": {
"type": "date"
},
"materialType": {
"type": "keyword"
},
"membIdentificNumb": {
"type": "keyword"
},
"message": {
"type": "text"
},
"note": {
"type": "text"
},
"offset": {
"type": "long"
},
"parentDepartment": {
"type": "keyword"
},
"patronCategory": {
"type": "keyword"
},
"patronEducation": {
"type": "short"
},
"patronId": {
"type": "keyword"
},
"rPSPriority": {
"type": "byte"
},
"rPSStatus": {
"type": "byte"
},
"reservationDate": {
"type": "date"
},
"returnDate": {
"type": "date"
},
"rptPackageStatus": {
"type": "long"
},
"schoolDept": {
"type": "keyword"
},
"schoolName": {
"type": "keyword"
},
"schoolProgram": {
"type": "keyword"
},
"schoolType": {
"type": "byte"
},
"source": {
"type": "text"
},
"tags": {
"type": "keyword"
},
"transactionHostDepartment": {
"type": "keyword"
},
"type": {
"type": "long"
},
"user": {
"type": "text"
},
"visitTypeValid": {
"type": "byte"
},
"visitValid": {
"type": "byte"
}
}
}
}
}
Thanks for the advice, but I'm splitting those fields and store them separately.
I'm just keeping the incoming message, because in some cases I need to get the whole thing, because an after process was written earlier and depends on it.
So to fix my issue I just change the field type from text
to keyword
.
Got it, thanks.