Skip to content

Instantly share code, notes, and snippets.

@clintongormley
Last active December 7, 2018 19:02
Show Gist options
  • Select an option

  • Save clintongormley/40a5543b692b9f60ad1f to your computer and use it in GitHub Desktop.

Select an option

Save clintongormley/40a5543b692b9f60ad1f to your computer and use it in GitHub Desktop.

Revisions

  1. clintongormley revised this gist May 22, 2014. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion example.json
    Original file line number Diff line number Diff line change
    @@ -14,7 +14,7 @@ curl -XGET "http://localhost:9200/_search" -d'
    "type": "child",
    "query": {
    "match": {
    "child.text": "TEXT"
    "child.text": "query string"
    }
    }
    }
  2. clintongormley created this gist May 22, 2014.
    25 changes: 25 additions & 0 deletions example.json
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,25 @@
    curl -XGET "http://localhost:9200/_search" -d'
    {
    "query": {
    "bool": {
    "should": [
    {
    "match": {
    "parent.text": "query string"
    }
    },
    {
    "has_child": {
    "score_mode": "avg",
    "type": "child",
    "query": {
    "match": {
    "child.text": "TEXT"
    }
    }
    }
    }
    ]
    }
    }
    }'