|
6 months ago | |
---|---|---|
bin | 6 months ago | |
jcat | 1 year ago | |
.gitignore | 1 year ago | |
LICENSE | 1 year ago | |
Makefile | 1 year ago | |
README.md | 1 year ago | |
setup.py | 6 months ago |
Python implementation of catj
Origin: https://git.osuv.de/m/jcat
Mirror: https://gitlab.com/markuman/jcat
pip install jcat
~$ cat /tmp/test2.json
{
"mappings": {
"templates": [
{
"fields": {
"mapping": {
"norms": false,
"type": "text",
"fields": {
"keyword": {
"ignore_above": 256,
"type": "keyword"
}
}
}
}
}
]
}
}
~$ jcat
USAGE:
cat some.json | jcat
jcat some.json
~$ jcat /tmp/test2.json
.mappings.templates[0].fields.mapping.norms = False
.mappings.templates[0].fields.mapping.type = "text"
.mappings.templates[0].fields.mapping.fields.keyword.ignore_above = 256
.mappings.templates[0].fields.mapping.fields.keyword.type = "keyword"