Simple_query_string flags Does not seem to support "PHRASE" in ES 0.90.10

Hello,

I am using Elastic search "0.90.10", "lucene_version" : "4.6".

I am trying to use the new "simple_query_string" when I add to the flags
"PHRASE" I get "Unknown simple_query_string flag [PHRASE]]"

However If I add the "ALL" flag, it seems to work:

Here is a simple example of what I am doing:
{
"query": {
"filtered": {
"query": {
"simple_query_string": {
"query": "horse",
"fields": [
"sreferenceNumber^20",
"sTitle^2",
"sDescription"
],
"flags":"PHRASE",
"default_operator":"AND"

            }
        }
    }
}

}

If I try that same query with the Flags set to all I get results.

Error I am getting, is:
ElasticSearchIllegalArgumentException[Unknown simple_query_string flag
[PHRASE]];

From
http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/query-dsl-simple-query-string-query.html
It seems that it should be possible to send in the "PHRASE" flag.

Maybe you guys can help me in the right direction if I am doing some wrong.

Regards,

--
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/c507bb36-a6d8-4ac8-9e5b-0c51dedfb14f%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

There is now an issue for this, please rather see

On Monday, 27 January 2014 13:08:45 UTC+2, loneparadox wrote:

Hello,

I am using Elastic search "0.90.10", "lucene_version" : "4.6".

I am trying to use the new "simple_query_string" when I add to the flags
"PHRASE" I get "Unknown simple_query_string flag [PHRASE]]"

However If I add the "ALL" flag, it seems to work:

Here is a simple example of what I am doing:
{
"query": {
"filtered": {
"query": {
"simple_query_string": {
"query": "horse",
"fields": [
"sreferenceNumber^20",
"sTitle^2",
"sDescription"
],
"flags":"PHRASE",
"default_operator":"AND"

            }
        }
    }
}

}

If I try that same query with the Flags set to all I get results.

Error I am getting, is:
ElasticSearchIllegalArgumentException[Unknown simple_query_string flag
[PHRASE]];

From
Elasticsearch Platform — Find real-time answers at scale | Elastic
It seems that it should be possible to send in the "PHRASE" flag.

Maybe you guys can help me in the right direction if I am doing some wrong.

Regards,

--
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/21022ea7-7046-4400-a8a1-690155952644%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

In the meantime, you can double-quote phrases inside your query while this
is being fixed. So for example:

"query": ""Horse Racing""

--
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/b5b6a7a0-0697-4d76-afa7-0ccaf3a867e7%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.