Skip to content

Instantly share code, notes, and snippets.

@hexgnu
Created January 4, 2012 21:11
Show Gist options
  • Save hexgnu/1562158 to your computer and use it in GitHub Desktop.
Save hexgnu/1562158 to your computer and use it in GitHub Desktop.
query = {
:filtered => {
:query => {
"query_string" => {:query => "*:*"}
},
:filter => {
:and => [
{:field => {:network_id => "84 OR 4"}},
{:field => {:network_endpoint_label => ['messages', 'mentions', 'home', 'home_timeline'].join(" OR ")}}
]
}
}
}
beep = Tire.search "network/post", :query => query do
size 1
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment