Are you actually using a comma after the "firstname^1.3"? It is invalid
JSON in both cases

2015-04-28 14:15 GMT-03:00 Daniel Nill <danielln...@gmail.com>:

> curl -XPUT "http://0.0.0.0:9200/users"; -d '{
>   "first_name": "daniel",
>   "last_name": "nill"
> }'
>
>
> curl -XGET 'http://0.0.0.0:9200/users/_search"; -d '{
>   "query": {
>     "bool": {
>       "must": {
>         "simple_query_string": {
>
>           "query":"daniel nill",
>           "fields":[
>             "lastname^6.5",
>             "firstname^1.3",
>           ],
>
>           "default_operator":"and",
>           "flags":"AND|OR|NOT|PHRASE|PRECEDENCE"
>         }
>       }
>     }
>   }
> }'
>
> this returns no results
>
> However,
>
> curl -XGET 'http://0.0.0.0:9200/users/_search"; -d '{
>   "query": {
>     "bool": {
>       "must": {
>         "simple_query_string": {
>
>           "query":"daniel nill",
>           "fields":[
>             "lastname^6.5",
>             "firstname^1.3",
>           ],
>
>           "default_operator":"and"
>         }
>       }
>     }
>   }
> }'
>
> This returns results.
>
> Any idea what I'm missing?
>
> This is on 1.5.1
>
> --
> 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/83d32c16-80b7-4428-904b-4d5bc9055be0%40googlegroups.com
> <https://groups.google.com/d/msgid/elasticsearch/83d32c16-80b7-4428-904b-4d5bc9055be0%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CAJp2533kQ4uQR%2B9fGhwKqDi2P_cM-R6gNDcCheG098E2X_DoiQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to