Skip to content

Instantly share code, notes, and snippets.

@Phantoms
Created July 30, 2012 08:55
Show Gist options
  • Save Phantoms/3205722 to your computer and use it in GitHub Desktop.
Save Phantoms/3205722 to your computer and use it in GitHub Desktop.
{
:bool => {
:must => [
[0] {
:query_string => {
:query => "1",
:fields => [
[0] "site_id"
]
}
},
[1] {
:query_string => {
:query => "published",
:fields => [
[0] "state"
]
}
},
[2] {
:match_all => {}
},
[3] {
:mlt_field => {
:title => {
:like_text => "Land Rover",
:min_term_freq => 1,
:min_doc_freq => 1,
:percent_terms_to_match => 0.6
}
}
}
],
:must_not => [
[0] {
:query_string => {
:query => "2937465105810235",
:fields => [
[0] "id"
]
}
}
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment