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.
For more options, visit https://groups.google.com/d/optout.

Reply via email to