Simple query string with flags returns no results

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+unsubscribe@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.

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 daniellnill@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+unsubscribe@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+unsubscribe@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.

I'm not. Sorry, copy and paste fail.

On Tuesday, April 28, 2015 at 10:31:58 AM UTC-7, Roger de Cordova Farias
wrote:

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 <danie...@gmail.com <javascript:>>:

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 elasticsearc...@googlegroups.com <javascript:>.
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/2e675e28-e586-444b-a969-ec6aa98cccfb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.