example for text filter invert
This commit is contained in:
parent
5065f6bf0f
commit
826c0d3da5
|
@ -61,7 +61,7 @@ Examples:
|
||||||
--mode records \
|
--mode records \
|
||||||
--suffix ]}$'\n' \
|
--suffix ]}$'\n' \
|
||||||
--facets '[ { "type": "text", "columnName": "name", "mode": "regex",
|
--facets '[ { "type": "text", "columnName": "name", "mode": "regex",
|
||||||
"caseSensitive": false, "query": "^Ben" } ]' \
|
"caseSensitive": false, "invert": false, "query": "^Ben" } ]' \
|
||||||
| jq
|
| jq
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
|
@ -34,7 +34,8 @@ Examples:
|
||||||
orcli export tsv "duplicates" --output "duplicates.tsv"
|
orcli export tsv "duplicates" --output "duplicates.tsv"
|
||||||
orcli export tsv "duplicates" --encoding "ISO-8859-1"
|
orcli export tsv "duplicates" --encoding "ISO-8859-1"
|
||||||
orcli export tsv "duplicates" --facets '[ { "type": "text", "columnName":
|
orcli export tsv "duplicates" --facets '[ { "type": "text", "columnName":
|
||||||
"name", "mode": "regex", "caseSensitive": false, "query": "^Ben" } ]'
|
"name", "mode": "regex", "caseSensitive": false, "invert": false, "query":
|
||||||
|
"^Ben" } ]'
|
||||||
orcli export tsv "duplicates" --facets '[{ "type": "list", "expression":
|
orcli export tsv "duplicates" --facets '[{ "type": "list", "expression":
|
||||||
"grel:filter([\"gender\",\"purchase\"],cn,cells[cn].value.find(/^F/).length()>0).length()>0",
|
"grel:filter([\"gender\",\"purchase\"],cn,cells[cn].value.find(/^F/).length()>0).length()>0",
|
||||||
"columnName": "", "selection": [{"v": {"v": true}}] }]'
|
"columnName": "", "selection": [{"v": {"v": true}}] }]'
|
||||||
|
|
4
orcli
4
orcli
|
@ -808,7 +808,7 @@ orcli_export_tsv_usage() {
|
||||||
printf " orcli export tsv \"duplicates\"\n"
|
printf " orcli export tsv \"duplicates\"\n"
|
||||||
printf " orcli export tsv \"duplicates\" --output \"duplicates.tsv\"\n"
|
printf " orcli export tsv \"duplicates\" --output \"duplicates.tsv\"\n"
|
||||||
printf " orcli export tsv \"duplicates\" --encoding \"ISO-8859-1\"\n"
|
printf " orcli export tsv \"duplicates\" --encoding \"ISO-8859-1\"\n"
|
||||||
printf " orcli export tsv \"duplicates\" --facets '[ { \"type\": \"text\", \"columnName\":\n \"name\", \"mode\": \"regex\", \"caseSensitive\": false, \"query\": \"^Ben\" } ]'\n"
|
printf " orcli export tsv \"duplicates\" --facets '[ { \"type\": \"text\", \"columnName\":\n \"name\", \"mode\": \"regex\", \"caseSensitive\": false, \"invert\": false, \"query\":\n \"^Ben\" } ]'\n"
|
||||||
printf " orcli export tsv \"duplicates\" --facets '[{ \"type\": \"list\", \"expression\":\n \"grel:filter([\\\\\"gender\\\\\",\\\\\"purchase\\\\\"],cn,cells[cn].value.find(/^F/).length()>0).length()>0\",\n \"columnName\": \"\", \"selection\": [{\"v\": {\"v\": true}}] }]'\n"
|
printf " orcli export tsv \"duplicates\" --facets '[{ \"type\": \"list\", \"expression\":\n \"grel:filter([\\\\\"gender\\\\\",\\\\\"purchase\\\\\"],cn,cells[cn].value.find(/^F/).length()>0).length()>0\",\n \"columnName\": \"\", \"selection\": [{\"v\": {\"v\": true}}] }]'\n"
|
||||||
echo
|
echo
|
||||||
|
|
||||||
|
@ -906,7 +906,7 @@ orcli_export_template_usage() {
|
||||||
printf " cat \"template.txt\" | orcli export template \"duplicates\"\n"
|
printf " cat \"template.txt\" | orcli export template \"duplicates\"\n"
|
||||||
printf " orcli export template \"duplicates\" \"https://example.com/template.txt\"\n"
|
printf " orcli export template \"duplicates\" \"https://example.com/template.txt\"\n"
|
||||||
printf " orcli export template \"duplicates\" \"template.txt\" --output \"duplicates.tsv\"\n"
|
printf " orcli export template \"duplicates\" \"template.txt\" --output \"duplicates.tsv\"\n"
|
||||||
printf " orcli export template \"duplicates\" \\\\\n <<< '{ \"name\" : {{jsonize(cells[\"name\"].value)}}, \"purchase\" :\n {{jsonize(cells[\"purchase\"].value)}} }' \\\\\n --prefix '{ \"events\" : [' \\\\\n --separator , \\\\\n --mode records \\\\\n --suffix ]}$'\\\n' \\\\\n --facets '[ { \"type\": \"text\", \"columnName\": \"name\", \"mode\": \"regex\",\n \"caseSensitive\": false, \"query\": \"^Ben\" } ]' \\\\\n | jq\n"
|
printf " orcli export template \"duplicates\" \\\\\n <<< '{ \"name\" : {{jsonize(cells[\"name\"].value)}}, \"purchase\" :\n {{jsonize(cells[\"purchase\"].value)}} }' \\\\\n --prefix '{ \"events\" : [' \\\\\n --separator , \\\\\n --mode records \\\\\n --suffix ]}$'\\\n' \\\\\n --facets '[ { \"type\": \"text\", \"columnName\": \"name\", \"mode\": \"regex\",\n \"caseSensitive\": false, \"invert\": false, \"query\": \"^Ben\" } ]' \\\\\n | jq\n"
|
||||||
echo
|
echo
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -277,7 +277,7 @@ commands:
|
||||||
- orcli export tsv "duplicates" --output "duplicates.tsv"
|
- orcli export tsv "duplicates" --output "duplicates.tsv"
|
||||||
- orcli export tsv "duplicates" --encoding "ISO-8859-1"
|
- orcli export tsv "duplicates" --encoding "ISO-8859-1"
|
||||||
- |-
|
- |-
|
||||||
orcli export tsv "duplicates" --facets '[ { "type": "text", "columnName": "name", "mode": "regex", "caseSensitive": false, "query": "^Ben" } ]'
|
orcli export tsv "duplicates" --facets '[ { "type": "text", "columnName": "name", "mode": "regex", "caseSensitive": false, "invert": false, "query": "^Ben" } ]'
|
||||||
- |-
|
- |-
|
||||||
orcli export tsv "duplicates" --facets '[{ "type": "list", "expression": "grel:filter([\\\\"gender\\\\",\\\\"purchase\\\\"],cn,cells[cn].value.find(/^F/).length()>0).length()>0", "columnName": "", "selection": [{"v": {"v": true}}] }]'
|
orcli export tsv "duplicates" --facets '[{ "type": "list", "expression": "grel:filter([\\\\"gender\\\\",\\\\"purchase\\\\"],cn,cells[cn].value.find(/^F/).length()>0).length()>0", "columnName": "", "selection": [{"v": {"v": true}}] }]'
|
||||||
|
|
||||||
|
@ -319,7 +319,7 @@ commands:
|
||||||
--separator , \\\\
|
--separator , \\\\
|
||||||
--mode records \\\\
|
--mode records \\\\
|
||||||
--suffix ]}$'\\\n' \\\\
|
--suffix ]}$'\\\n' \\\\
|
||||||
--facets '[ { "type": "text", "columnName": "name", "mode": "regex", "caseSensitive": false, "query": "^Ben" } ]' \\\\
|
--facets '[ { "type": "text", "columnName": "name", "mode": "regex", "caseSensitive": false, "invert": false, "query": "^Ben" } ]' \\\\
|
||||||
| jq
|
| jq
|
||||||
|
|
||||||
- name: run
|
- name: run
|
||||||
|
|
Loading…
Reference in New Issue