Skip to content

Instantly share code, notes, and snippets.

@szydan
Created May 15, 2025 13:48
Show Gist options
  • Save szydan/e17af0f837251cd9e0e1294810f3e263 to your computer and use it in GitHub Desktop.
Save szydan/e17af0f837251cd9e0e1294810f3e263 to your computer and use it in GitHub Desktop.

Revisions

  1. szydan created this gist May 15, 2025.
    21 changes: 21 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,21 @@
    GET .siren/_search
    {
    "_source": false,
    "query": {
    "bool": {
    "must": [
    { "exists": { "field": "search.indexPattern.fieldFormatMap.keyword" }},
    {
    "script": {
    "script": {
    "source": "return doc['search.indexPattern.fieldFormatMap.keyword'].value.length() > 50;",
    "lang": "painless"
    }
    }
    }

    ]
    }
    }
    }