Binh,

how can I add explain:true in that one ?


On Sat, Feb 1, 2014 at 1:47 AM, Binh Ly <b...@hibalo.com> wrote:

> Should be roughly like this:
>
> {
>   "query": {
>     "custom_score": {
>       "query": {
>         "query_string": {
>           "query": "blah blah",
>           "fields": [
>             "text^30",
>             "ad",
>             "st",
>             "cn",
>             "co"
>           ],
>           "default_operator": "AND"
>         }
>       },
>       "script": "_score * (doc['po'].empty ? 1 : doc['po'].value == 0.0 ?
> 1 : doc['po'].value)"
>     }
>   }
> }
>
> --
> You received this message because you are subscribed to the Google Groups
> "elasticsearch" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to elasticsearch+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/elasticsearch/07ae02b5-39d9-410d-892e-8ff366de515c%40googlegroups.com
> .
>
> For more options, visit https://groups.google.com/groups/opt_out.
>

-- 
You received this message because you are subscribed to the Google Groups 
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to elasticsearch+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elasticsearch/CAAVTvp4tYv6S2otq3iGX6ssRg4p3QZPRUePJhZjLEyvQ84%3DMAg%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to