There is now an issue for this, please rather see
https://github.com/elasticsearch/elasticsearch/issues/4911
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
> 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 [email protected].
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.