Skip to content

Instantly share code, notes, and snippets.

@blooberr
Created June 11, 2014 18:48
Show Gist options
  • Save blooberr/2ee5019a30f3065e5213 to your computer and use it in GitHub Desktop.
Save blooberr/2ee5019a30f3065e5213 to your computer and use it in GitHub Desktop.

Revisions

  1. blooberr created this gist Jun 11, 2014.
    10 changes: 10 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,10 @@
    results = @es.search(index: index_name,
    ignore_unavailable: true,
    body: {
    size: 0,
    query: {
    query_string: {
    query: search_phrase
    }
    }
    })